From owner-freebsd-questions@FreeBSD.ORG Wed Feb 18 03:19:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 722E016A4CE for ; Wed, 18 Feb 2004 03:19:16 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6A9943D3F for ; Wed, 18 Feb 2004 03:19:15 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i1IBJ8oH068303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Feb 2004 11:19:08 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1IBJ8Jr068302; Wed, 18 Feb 2004 11:19:08 GMT (envelope-from matthew) Date: Wed, 18 Feb 2004 11:19:08 +0000 From: Matthew Seaman To: Maarten Message-ID: <20040218111908.GD67139@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Maarten , freebsd-questions@freebsd.org References: <1482073403.20040217235306@unsavoury.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SFyWQ0h3ruR435lw" Content-Disposition: inline In-Reply-To: <1482073403.20040217235306@unsavoury.net> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 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-questions@freebsd.org Subject: Re: Installing stuff somewhere else X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 11:19:16 -0000 --SFyWQ0h3ruR435lw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 17, 2004 at 11:53:06PM +0100, Maarten wrote: > what if I have a compilehost on which I build FreeBSD(5) images, and I wa= nt to build certain ports, but would like them installed in $imagedir/usr/l= ocal/whatever instead of /usr/local/whatever? > I'm aware of pkg_add's "-p" option, but that still happily keeps its admi= nistration under /var/db/pkg for instance, when I would like it under $imag= edir/car/db/pkg. You can make pkg_add keep it's administrative files in a different location by setting PKG_DBDIR in your environment. =20 > Also, what is the smartest way to have 'make installworld' install under = something other than / ?=20 Actually, this is a live topic on the freebsd-ports@... list at the moment. There's a movement to add some patches first developed in 2001 to add a 'DESTDIR' variable to the ports system, which is complementary to the 'PREFIX' variable. Changing 'PREFIX' will install the port into a different location, but it will also cause the port to set everything up assuming that it is going to be accessed =66rom that location. DESTDIR is different -- it will let you install ports/packages to a different location than the location you'll be accessing them from -- eg. installing a port from outside a jail to be accessed from inside it, or installing on a partition which will be NFS exported and mounted on client machines. See ports/28155 and the thread starting at http://lists.freebsd.org/pipermail/freebsd-ports/2004-February/thread.html#= 9159 Until then, the best route seems to be logging into the jail(8) and installing the ports/packages from there. 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 --SFyWQ0h3ruR435lw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAM0osdtESqEQa7a0RAkSIAJ99Na5wShQauB1A1fbUnAQ1dfJUTgCeIHIJ MEP+Al3J9F1KwFUu6pPCxHg= =7emg -----END PGP SIGNATURE----- --SFyWQ0h3ruR435lw--