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
pgp00000.pgp
Description: PGP signature
