Date: Thu, 29 Mar 2007 14:36:53 -0400 From: Lowell Gilbert <freebsd-ports-local@be-well.ilk.org> To: Vizion <vizion@vizion.occoxmail.com> Cc: ports@freebsd.org Subject: Re: joomla ports - installation- multiple virtual hosts Message-ID: <44ejn7zyka.fsf@be-well.ilk.org> In-Reply-To: <20070329160906.IYDV12099.dukecmmtao03.coxmail.com@dukecmmtao03> (vizion@vizion.occoxmail.com's message of "Thu\, 29 Mar 2007 9\:09\:06 -0700") References: <20070329160906.IYDV12099.dukecmmtao03.coxmail.com@dukecmmtao03>
next in thread | previous in thread | raw e-mail | index | archive | help
Vizion <vizion@vizion.occoxmail.com> writes: >>>> -----Original Message----- >>>>[mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Vizion >>>> Sent: Thursday, March 29, 2007 8:57 AM >>>> To: ports@freebsd.org >>>> Cc: freebsd-ports-local@be-well.ilk.org >>>> Subject: Re: joomla ports - installation- multiple virtual hosts >>>> >>>> Vizion <vizion@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 /) #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ejn7zyka.fsf>