From owner-freebsd-ports@FreeBSD.ORG Fri Mar 30 14:11:47 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 C1B0616A400 for ; Fri, 30 Mar 2007 14:11:47 +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 56B5513C457 for ; Fri, 30 Mar 2007 14:11:47 +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 <20070330141143.LHYH12099.dukecmmtao03.coxmail.com@dukecmmtao03>; Fri, 30 Mar 2007 10:11:43 -0400 X-Mailer: Openwave WebEngine, version 2.8.16 (webedge20-101-1106-20040809) From: Vizion Organization: vizion Communications To: Scot Hetzel Date: Fri, 30 Mar 2007 7:11:42 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20070330141143.LHYH12099.dukecmmtao03.coxmail.com@dukecmmtao03> Cc: ports@freebsd.org Subject: Re: ports installation location 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 14:11:47 -0000 > -----Original Message----- > From: owner-freebsd-ports@freebsd.org > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Scot Hetzel > Sent: Thursday, March 29, 2007 9:29 AM > To: Vizion > Cc: ports@freebsd.org; include@npf.pt.freebsd.org > Subject: Re: ports installation location > > On 3/29/07, Vizion 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 "s@www/joomla@%%JOOMLA_DIR%%@" 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?? Thanks again david