Date: Wed, 1 Oct 2003 14:20:07 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Aragon Gouveia <aragon@phat.za.net> Cc: questions@freebsd.org Subject: Re: port install to jail root from host system Message-ID: <20031001132007.GB11691@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20031001124829.GA15390@phat.za.net> References: <20031001124829.GA15390@phat.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Oct 01, 2003 at 02:48:29PM +0200, Aragon Gouveia wrote:
> I've compiled a port as normal (apache13 in this case). I'd like to run
> 'make install' now and tell it to install the package to the base of the
> root filesystem of a jail from the jail's host. Possibly also to skip
> registering it in the host's package database.
>
> Does anyone know an easy way to do this with the ports system?
>
> I realise apache is dependant on various libraries that may not be in the
> jail, but these dependancies I will resolve manually.
It actually works quite well if you use mount_null(8) to re-mount your
/usr/ports tree inside the jail, and set the WRKDIRPREFIX environment
variable to something like /usr/obj so that you don't actually write
into the /usr/ports tree while compiling.
A line something like:
/usr/ports /jail/192.168.0.2/usr/ports null rw 0 0
in /etc/fstab in the host system should do the trick nicely.
That way, you can just ssh(1) into your jailed system and manage
ports/packages exactly as you do in the host system. This will also
avoid, in a trivially simple way, problems caused by corrupting the
/var/db/pkg database in the host system.
Cheers,
Matthew
--
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/etSHdtESqEQa7a0RAt+sAJ4srgBf+b8Mezw0/zY7ls9kra5N6QCfVA2Z
bzWKwQaNtXdfVcl/TlX1yqw=
=dUC3
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001132007.GB11691>
