From owner-freebsd-ports@FreeBSD.ORG Fri Mar 30 11:33:26 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B9FE16A401 for ; Fri, 30 Mar 2007 11:33:26 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03.coxmail.com (dukecmmtao03.coxmail.com [68.99.120.70]) by mx1.freebsd.org (Postfix) with ESMTP id A516813C459 for ; Fri, 30 Mar 2007 11:33:25 +0000 (UTC) (envelope-from vizion@vizion.occoxmail.com) Received: from dukecmmtao03 ([172.18.22.59]) by dukecmmtao03.coxmail.com (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with SMTP id <20070330113325.DDHO12099.dukecmmtao03.coxmail.com@dukecmmtao03> for ; Fri, 30 Mar 2007 07:33:25 -0400 X-Mailer: Openwave WebEngine, version 2.8.16 (webedge20-101-1106-20040809) From: Vizion Organization: vizion Communications To: Date: Fri, 30 Mar 2007 4:33:24 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20070330113325.DDHO12099.dukecmmtao03.coxmail.com@dukecmmtao03> Cc: Subject: Re: joomla ports - installation- multiple virtual hosts X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2007 11:33:26 -0000 > -----Original Message----- > From: owner-freebsd-ports@freebsd.org > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Wesley Shields > Sent: Thursday, March 29, 2007 12:03 PM > To: ports@freebsd.org > Cc: Vizion > Subject: Re: joomla ports - installation- multiple virtual hosts > > On Thu, Mar 29, 2007 at 02:36:53PM -0400, Lowell Gilbert wrote: > > Vizion 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 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. 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: > > Unless I'm missing something he's talking about installing > into virtual > hosts as defined by his web server, not into jails. > > > # 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 /) > > # > > You don't want to use DESTDIR for this either (again, unless > I'm missing > something). What you want to do is to do what an earlier > post suggested > and re-work the port such that you can install it with a given PREFIX > and have the pkg be recorded separately for that install. You'll want > to tweak the pkg-plist and something which gets put into the pkg-name > (PKGNAMESUFFIX as Scot suggested will work). This way the plist has > recorded that it installed into your virtual host as opposed to it's > normal location, and the package will have a different name from other > joomla installs. > > Of course upgrading will be difficult if you go that route. > > Honestly, you're better off doing this in a slave port (or multiple > slave ports if you want). > > -- WXS Thanks very much. What do you mean by a slave port?? david BTW I ghave put forward a suggestion which was originally made under the title of this thread. On reflection I changed it to Subject: Ports - proposal - To handle Multiple instances in usr ports. because I felt it better to keep them separate.