Date: Wed, 18 Feb 2004 11:19:08 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Maarten <mdv@unsavoury.net> Cc: freebsd-questions@freebsd.org Subject: Re: Installing stuff somewhere else Message-ID: <20040218111908.GD67139@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <1482073403.20040217235306@unsavoury.net> References: <1482073403.20040217235306@unsavoury.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040218111908.GD67139>