From owner-freebsd-ports@FreeBSD.ORG Thu Mar 29 16:56:33 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 35BAC16A407 for ; Thu, 29 Mar 2007 16:56:33 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 930A013C458 for ; Thu, 29 Mar 2007 16:56:32 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so293075wra for ; Thu, 29 Mar 2007 09:56:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HWNSUEVQwEdq6R3NmfRwVwYlrY5GguXnG0X6VClDajMk+D88eLiCXFQs3CYS2Ep5RULDD0oLMR9liTA0LeT4exTlmmXspbKpfa1wg59CiCjAnoz8r9qlS5R1W7AkbYepYgXLalQs+VubBi0mQR13eTGsu+7FmA9sHWrn6G/YZ80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=X//8/RhRa0h8tGsHfq3Vh21H4ufWIF+7Yv8PYP6wfklyF6BrqdMouDERuYEtl+b8y2In+722XelSRhJjKyJymoFpyJ9wMmiS8al1hHdP5AQU/SDMagXB8kB1T7yu9p8rnJPxtPC1hDBInLZC2XeawjQRI6LrR/UH/GipB9BHZoI= Received: by 10.100.177.16 with SMTP id z16mr564581ane.1175185732248; Thu, 29 Mar 2007 09:28:52 -0700 (PDT) Received: by 10.100.109.18 with HTTP; Thu, 29 Mar 2007 09:28:52 -0700 (PDT) Message-ID: <790a9fff0703290928w6d83fc88y47d5741e161b8aa@mail.gmail.com> Date: Thu, 29 Mar 2007 11:28:52 -0500 From: "Scot Hetzel" To: Vizion In-Reply-To: <20070329145814.BVGN12099.dukecmmtao03.coxmail.com@dukecmmtao03> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070329145814.BVGN12099.dukecmmtao03.coxmail.com@dukecmmtao03> Cc: ports@freebsd.org, include@npf.pt.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: Thu, 29 Mar 2007 16:56:33 -0000 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" -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.