Compiling Ports...

Frank Laszlo laszlof at vonostingroup.com
Thu Jan 5 11:56:06 PST 2006


JK wrote:
> On Thu, 5 Jan 2006 14:41:50 -0500
>  "Michael P. Soulier" <msoulier at digitaltorque.ca> wrote:
>> On 1/5/06, Crispy Beef <crispy.beef at 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 at tvog.net
WWW:    http://www.vonostingroup.com
Mobile: 248-863-7584




More information about the freebsd-questions mailing list