On 3/30/07, Vizion <[EMAIL PROTECTED]> wrote:

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Scot Hetzel
> Sent: Thursday, March 29, 2007 9:29 AM
> To: Vizion
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: ports installation location
>
> On 3/29/07, Vizion <[EMAIL PROTECTED]> wrote:
> > How does one specify a non-standard location for installing a port?
> >
> > For example I want to have multiple instances of www/joomla
> installed for multiple virtual hosts. How can I best go about this?
> >
>
> I haven't tried this, but looking at the ports Makefile, it looks like
> you can install it to multiple locations as follows:
>
> cd /usr/ports/www/joomla
> sed -i'' -e "[EMAIL PROTECTED]/[EMAIL PROTECTED]@" pkg-plist
> make PKGNAMESUFFIX=_vh1 JOOMLA_DIR=www/joomla_vh1 install
>
> The sed is required to fix the pkg-plist, as it hardcodes the install
> directory to www/joomla (PR sent).
>
> > How about upgrades?
>
> You would have to upgrade it manually, by first deleting the port, and
> then using the same make comand that you used to install it.
>
> To use port management tools (portmaster, portupgrade, ...), you would
> need to create a port for each virtual host as following:
>
>  - create www/joomla_vh1 directory
>  - create www/joomla_vh1/Makefile
>
>  # port for virtual host: X
>  #
>   PKGNAMESUFFIX= _vh1
>
>   MASTERDIR= ${.CURDIR}/../joomla
>
>   JOOMLA_DIR= www/joomla${PKGNAMESUFFIX}
>
>   .include "${MASTERDIR}/Makefile"
>
>
> --

Thank you Scot for your, as usual, on target contribution.
I see what you mean about the pkg-plist and the use of sed to change that.

I have hit a snag.

All my virtual hosts are on a seperate path which is, incidentally, a separate 
physical device.

The install failed.
my make command was

make PKGNAMESUFFIX=_vh1 JOOMLA_DIR=/usr2/virtualhosts/my_virtualhost install
The prime cause of failure seemed to be that it was looking for
/usr/local//usr2/virtualhosts/virtualhostname

What do I need to change??

Since your not installing under the default PREFIX, you need to
specify the PREFIX to where the port should be installed.

make PKGNAMESUFFIX=_vh1 PREFIX=/usr2/virtualhosts
JOOMLA_DIR=virtualhostname/joomla install

Scot

--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to