From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 07:56:53 2003 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 AA16B16A4B3 for ; Wed, 1 Oct 2003 07:56:53 -0700 (PDT) Received: from www.bluecirclesoft.com (cpe-024-165-114-048.cinci.rr.com [24.165.114.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD5DB43F75 for ; Wed, 1 Oct 2003 07:56:52 -0700 (PDT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from www.bluecirclesoft.com (localhost [127.0.0.1]) h91EunFa034788; Wed, 1 Oct 2003 10:56:50 -0400 (EDT) (envelope-from mrami@bluecirclesoft.com) Received: (from mrami@localhost) by www.bluecirclesoft.com (8.12.9p1/8.12.9/Submit) id h91EunCC034775; Wed, 1 Oct 2003 10:56:49 -0400 (EDT) (envelope-from mrami) Date: Wed, 1 Oct 2003 10:56:48 -0400 From: Marc Ramirez To: Aragon Gouveia Message-ID: <20031001145648.GE60073@www.bluecirclesoft.com> References: <20031001124829.GA15390@phat.za.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031001124829.GA15390@phat.za.net> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: port install to jail root from host system 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, 01 Oct 2003 14:56:53 -0000 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)