joomla ports - installation- multiple virtual hosts

Lowell Gilbert freebsd-ports-local at be-well.ilk.org
Thu Mar 29 18:36:55 UTC 2007


Vizion <vizion at vizion.occoxmail.com> writes:
>>>> -----Original Message-----
>>>>[mailto:owner-freebsd-ports at freebsd.org] On Behalf Of Vizion
>>>> Sent: Thursday, March 29, 2007 8:57 AM
>>>> To: ports at freebsd.org
>>>> Cc: freebsd-ports-local at be-well.ilk.org
>>>> Subject: Re: joomla ports - installation- multiple virtual hosts
>>>> 
>>>> Vizion <vizion at vizion.occoxmail.com> writes:
>>>> Just wonder if anyone is able to suggest a way of modify  the Makefile
>>> so as ro be able to install joomla,from /ports/www/joomla/, into a
>>> chosen directory for a number of virtual hosts.
>  
>>> Maybe I'm confused (I did bang my head yesterday), but isn't that
>>> exactly what ports(7) defines PREFIX for?  I.e., you should be able 
>>> to set it in the environment without changing the Makefile.
>>> 
>> I believe you - but I know nothing about it. Does that mean 
>> using Prefix I can tell the port to install multiple 
>> instances of joomla each one going into a different path - 
>> one under each virtual host root?

Yes, I think that's exactly what it means.  

>> Maybe I am missing something too- unfortunately my head 
>> doesn't need banging for that to happen.<chuckles> If so 
>> could you give me an example of the command?

The idea was just to set the PREFIX variable in your shell environment
before installing to the jail.  The precise syntax depends on your
shell, but it's just like setting any other variable.

> One further thought.. how would the installation of multiple instances affect the pkgdb?

Oh, right.  That would be a problem.  My suggestion doesn't handle it
at a high enough level.  It looks like ports support DESTDIR, just
like the world-building did when you installed the base system into
the jails.  The comment from the relevant port makefile is:

# DESTDIR		- The path to the environment we are installing to.  Define
#				  this if you want to install packages into a jail
#				  or into an another FreeBSD environment mounted
#				  elsewhere than /.  ${PREFIX} is relative to
#				  ${DESTDIR}.  E.g. setting DESTDIR=/bla PREFIX=/opt will
#				  result packages installed under /bla/opt and registered
#				  under /bla/var/db/pkg.
#				  Default: not set (means /)
#



More information about the freebsd-ports mailing list