Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2004 09:28:32 +0200
From:      Volker Stolz <vs@FreeBSD.org>
To:        Oliver Fischer <plexus@snafu.de>
Cc:        ports@FreeBSD.org
Subject:   Re: setting up a ports infrastructure outside of /usr/ports
Message-ID:  <20040422072832.GA47895@i2.informatik.rwth-aachen.de>
In-Reply-To: <4086F18A.8010100@snafu.de>
References:  <4086F18A.8010100@snafu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd-ports, you wrote:
> 1. to have the ports directory in my home directory? I
>      think yes.

Yes. Only when specifying some dependencies via relative URLs
you may need to work around this (${.CURDIR}/../net/foo).

> 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?

PACKAGES=$HOME/tmp PKG_DBDIR=$HOME/var/db/pkg PREFIX=$HOME/jail make install -DINSTALL_AS_USER

However, many ports will fail on installing because they'd like
to run binaries (e.g. for registering with already installed aps)
which need root privileges. In that case, you can still install
them to a different PREFIX and with a different PKG_DBDIR as root.

I only used this for testing, though, I never tried to run stuff
in there.

Volker
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
Neu! Ändern Sie den Anfangstag Ihrer Woche



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