Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2004 20:22:13 -0700
From:      "Michael C. Shultz" <ringworm@inbox.lv>
To:        freebsd-ports@freebsd.org
Subject:   Re: setting up a ports infrastructure outside of /usr/ports
Message-ID:  <200404212022.14217.ringworm@inbox.lv>
In-Reply-To: <4086F18A.8010100@snafu.de>
References:  <4086F18A.8010100@snafu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 21 April 2004 03:11 pm, Oliver Fischer wrote:
> Hello,
>
> I would like to ports some programs but before I will start, I would
> like to have a separate directory for it. So so my question is:
>
> Is it possible:
>
> 1. to have the ports directory in my home directory? I
>      think yes.
>
> 2. to build and to install a port as normal user to
>     a via PREFIX specified directory?
>
> 3. to use a different pkgdb directory than /var/db/pkg for
>     the ports build in this manner?
>
>
> Regards,
> 	Oliver Fischer
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

Here is how I do it:
------------------------------------------------
Here is how to handle locally installed ports if you plan to take advantage of 
some of FreeBSD's port system features: 

########################################################################
* Makefile excerpt from /usr/ports/local/sysutils/portmanager/Makefile #
########################################################################
PORTNAME=           portmanager
PORTVERSION=        0.1.0
CATEGORIES=         local/sysutils
VALID_CATEGORIES+=  ${CATEGORIES}     # for FreeBSD to accept our
                                       				 # local category
                

 Simply add a "local" directory to /usr/ports and install your local ports 
under that directory. Where a normal FreeBSD port may be in 
"sysutils/{portname} the example above would reside in 
"local/sysutils/portmanager". 
------------------------------------------------
The port still installs in the normal /var/db/pkg directory so "make install", 
and and "make deinstall" work normally. The is a note in portupgrade (if you 
use that ) about adding /usr/ports/local to their config files so their 
program will ignore your ports. I think the note is in the config file 
somewhere.

-Mike
 



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