Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2004 08:30:54 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Oliver Fischer <plexus@snafu.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: setting up a ports infrastructure outside of /usr/ports
Message-ID:  <20040422073054.GB26669@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <4086F18A.8010100@snafu.de>
References:  <4086F18A.8010100@snafu.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--3lcZGd9BuhuYXNfi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Apr 22, 2004 at 12:11:22AM +0200, Oliver Fischer wrote:
> Hello,
>=20
> I would like to ports some programs but before I will start, I would=20
> like to have a separate directory for it. So so my question is:
>=20
> Is it possible:
>=20
> 1. to have the ports directory in my home directory? I
>     think yes.
>=20
> 2. to build and to install a port as normal user to
>    a via PREFIX specified directory?
>=20
> 3. to use a different pkgdb directory than /var/db/pkg for
>    the ports build in this manner?

Sure.  That's all possible.  When I'm working on ports I just stick
the port directory in my home dir and set up a bunch of environment
variables so I don't trample over the official /var/db/pkg (or try to
-- I work on the development stuff under my own UID, not root).

I generally just source this into my tcsh session:

    # -*- csh -*-
    #
    # Set up environment for testing ports
   =20
    setenv WRKDIRPREFIX	${HOME}/tmp/ports
    setenv PKG_DBDIR	${HOME}/tmp/db/pkgs
    setenv PORT_DBDIR	${HOME}/tmp/db/ports
    setenv PREFIX		${HOME}/tmp/local
    setenv INSTALL_AS_USER	yes
    setenv NOCLEANDEPENDS	yes
   =20
    unsetenv JAVA_HOME

Not that this still expects bsd.port.mk and all of the makefiles to
live in /usr/ports/Mk -- as well as any dependency ports.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--3lcZGd9BuhuYXNfi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAh3SudtESqEQa7a0RApQ9AJ0UkzIvSAu4I33m9CLXuwxw/N0lMACcCXeP
b39tfJKCLh3NVj2wE1ByEnw=
=jI/y
-----END PGP SIGNATURE-----

--3lcZGd9BuhuYXNfi--



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