Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jan 2006 14:55:55 -0500
From:      Frank Laszlo <laszlof@vonostingroup.com>
To:        JK <jdkullmann@aliencamel.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Compiling Ports...
Message-ID:  <43BD79CB.9080605@vonostingroup.com>
In-Reply-To: <web-20422723@aliencamel.com>
References:  <43BD70ED.1000506@ntlworld.com>	<fb6605670601051141j70f31733g67f2e82e8354d4a4@mail.gmail.com> <web-20422723@aliencamel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
JK wrote:
> On Thu, 5 Jan 2006 14:41:50 -0500
>  "Michael P. Soulier" <msoulier@digitaltorque.ca> wrote:
>> On 1/5/06, Crispy Beef <crispy.beef@ntlworld.com> wrote:
>>> Am trying to get my head around the ports system, specifically
>>> custom options
>>> when compiling.  For example I would like to install apache 2.2
>>> under it's own
>>> dir in /usr/local, say /usr/local/apache22.  If I was rolling my own
>>> version
>>> using the configure script I would do:
>>>
>>> ./configure prefix="/usr/local/apache22"
>>
>> I believe the default prefix can be changed, but I'm unclear as to why
>> you would want to change it. The port installs a package that you can
>> then remove easily with the pkg tools. Why would you want to do this?
>
> But wait! I thought the pkg system maintained track of where things
> were installed even if directed somewhere else and a pkg_delete etc
> would still work.  No?
>
the pkgdb will record the location of PREFIX, so pkg_delete will still
remove it even if its changed.

cd /usr/ports/www/apache22
make PREFIX=/usr/local/apache22 install clean

Enjoy


__________________________________________________
Frank Laszlo
System Administrator
The VonOstin Group
Email:  laszlof@tvog.net
WWW:    http://www.vonostingroup.com
Mobile: 248-863-7584





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BD79CB.9080605>