Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2008 10:55:46 -0400
From:      FreeBSD <freebsd@optiksecurite.com>
To:        John Nielsen <lists@jnielsen.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Multiple installation of one ports
Message-ID:  <48D11A72.5080301@optiksecurite.com>
In-Reply-To: <200809161559.26614.lists@jnielsen.net>
References:  <48CFEC4B.1080009@optiksecurite.com> <200809161559.26614.lists@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D11A72.5080301>