Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2003 10:56:48 -0400
From:      Marc Ramirez <marc.ramirez@bluecirclesoft.com>
To:        Aragon Gouveia <aragon@phat.za.net>
Cc:        questions@freebsd.org
Subject:   Re: port install to jail root from host system
Message-ID:  <20031001145648.GE60073@www.bluecirclesoft.com>
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
On Wed, Oct 01, 2003 at 02:48:29PM +0200, Aragon Gouveia wrote:
> Hi,
> 
> 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.

Just off the top of my head, certainly not guaranteed to be the
optimal solution, never tested, etc...

# assuming /jailfs is the root of your jail:
# install in /jailfs/bin, /jailfs/data, etc...

cd /usr/ports/www/apache13
make PREFIX=/jailfs install 

# now in your jail, you'll have /bin/apachectl, but it'll be looking
# for /jailfs/sbin/httpd, so create a symlink

ln -s / /jailfs/jailfs

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001145648.GE60073>