From owner-freebsd-ports@FreeBSD.ORG Thu Apr 22 00:31:00 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0F8616A4CE for ; Thu, 22 Apr 2004 00:31:00 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5223E43D5D for ; Thu, 22 Apr 2004 00:30:59 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i3M7UscA027142 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Apr 2004 08:30:54 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3M7UsR2027141; Thu, 22 Apr 2004 08:30:54 +0100 (BST) (envelope-from matthew) Date: Thu, 22 Apr 2004 08:30:54 +0100 From: Matthew Seaman To: Oliver Fischer Message-ID: <20040422073054.GB26669@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Oliver Fischer , freebsd-ports@freebsd.org References: <4086F18A.8010100@snafu.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3lcZGd9BuhuYXNfi" Content-Disposition: inline In-Reply-To: <4086F18A.8010100@snafu.de> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040420, clamav-milter version 0.70k X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-ports@freebsd.org Subject: Re: setting up a ports infrastructure outside of /usr/ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 07:31:00 -0000 --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--