From owner-freebsd-questions@FreeBSD.ORG Wed Sep 17 15:55:44 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82427106566C for ; Wed, 17 Sep 2008 15:55:44 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 592608FC0C for ; Wed, 17 Sep 2008 15:55:44 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [192.168.10.102] ([74.56.107.65]) by VL-MO-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0K7C00EOVHGVIVF0@VL-MO-MR001.ip.videotron.ca> for freebsd-questions@freebsd.org; Wed, 17 Sep 2008 10:55:44 -0400 (EDT) Message-id: <48D11A72.5080301@optiksecurite.com> Date: Wed, 17 Sep 2008 10:55:46 -0400 From: FreeBSD User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) To: John Nielsen References: <48CFEC4B.1080009@optiksecurite.com> <200809161559.26614.lists@jnielsen.net> In-reply-to: <200809161559.26614.lists@jnielsen.net> Cc: freebsd-questions@freebsd.org Subject: Re: Multiple installation of one ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 15:55:44 -0000 John Nielsen a écrit : > On Tuesday 16 September 2008 01:26:35 pm FreeBSD wrote: > >> I've been asked by a customer to install Drupal on one server to manage >> a new site. No problem yet. But, he also asked if it would be possible >> to install it for other sites. >> >> I know that there is a warning if you want to install a port that is >> already installed, but is there a way to bypass this? I know I could >> install it from the tarball from the website, but I want to be able to >> use portupgrade and portaudit to deal with it. >> > > I've done this in the past with Gallery and it looks like Drupal should be > workable too. The thing to do is to make either a clone port or a slave > port of the original and tweak a few things. In particular you'll want to > add some sort of suffix to the port name and change the installation > directory. > > For example, you could make a directory called ports/www/drupal6-customer > and drop this in its Makefile: > > PKGNAMESUFFIX=-${CUSTNAME} > DRUPAL_BASE=drupal6-${CUSTNAME} > .include "../drupal6/Makefile" > > You could then do things like > # cd /usr/ports/www/drupal6-customer > # make CUSTNAME=foo install clean > # make CUSTNAME=bar install clean > which would (with any luck) create independent installations of drupal > under /usr/local/www/drupal6-foo and /usr/local/www/drupal6-bar. Or if > you didn't want to worry about defining CUSTNAME all the time (or the > desired name/location won't follow a predictable pattern) you could make > a different slave port for each installation and hard-code the two > values. I haven't tested any of this other than some quick verification > of variables using make -V. > > HTH. If you have specific questions about port mechanics the ports@ list > might be the best place to ask. See also the Porter's Handbook: > http://www.freebsd.org/doc/en/books/porters-handbook/ > > JN > > That's a pretty interesting idea...I'll keep it in the back of my head. Thanks, Martin