From owner-freebsd-questions@FreeBSD.ORG Sat Oct 4 10:31:44 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 53E5316A4B3 for ; Sat, 4 Oct 2003 10:31:44 -0700 (PDT) Received: from smtp.volant.org (gate.volant.org [207.111.218.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3175743F85 for ; Sat, 4 Oct 2003 10:31:43 -0700 (PDT) (envelope-from patl+freebsd@volant.org) Received: from 64-144-229-193.client.dsl.net ([64.144.229.193] helo=[192.168.0.13]) by smtp.volant.org with asmtp (TLSv1:AES256-SHA:256) (Exim 4.22) id 1A5qFQ-0005tF-JS; Sat, 04 Oct 2003 10:31:16 -0700 Date: Sat, 04 Oct 2003 10:31:15 -0700 From: Pat Lashley To: Felix 'buebo' Kakrow , Aragon Gouveia Message-ID: <1464544336.1065288675@mccaffrey.phoenix.volant.org> In-Reply-To: <3F7AD2CA.1020505@buebo.de> References: <20031001124829.GA15390@phat.za.net> <3F7AD2CA.1020505@buebo.de> X-Mailer: Mulberry/3.1.0b6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Scan-Signature: 8fd9a3af4f629c7c9b4bb2cac554421e2ac9ff0d X-Spam-Score: -1.3 (-) X-Spam-Score-Int: -13 X-Spam-Report: -1.3/5.0 This mail has matched the spam-filter tests listed below. See http://spamassassin.org/tag/ for details about the specific tests reported. In general, the higher the number of total points, the more likely that it actually is spam. (The 'required' number of points listed below is the arbitrary number above which the message is normally considered spam.) Content analysis details: (-1.30 points total, 5 required)header IN_REP_TO (-0.5 points) Has a In-Reply-To header quoted email text REPLY_WITH_QUOTES (-0.5 points) Reply with quoted text AWL (0.7 points) AWL: Auto-whitelist adjustment 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: Sat, 04 Oct 2003 17:31:44 -0000 --On Wednesday, October 01, 2003 15:12:42 +0200 Felix 'buebo' Kakrow 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? >> > > In this situation I like it to mount the /usr/ports via nullfs in my Jail > Directory and build the Port directly in the Jail. However you'll have to > have a more or less complete system (at least gcc + all needet build > dependencies) in the Jail. As a plus you don't have to worry about > package registrations and stuff like this, but I'm just another newbie so > probally somebody will come up with another and better way ;) Another option is to build and package the port(s) outside the jail. Then nullfs mount /usr/ports in the jail directory and install the port(s) from the package(s). The downside of this approach is that the port needs to be installed on the host system to build the package. If you have multiple virtual host jails which are basicly identical in configuration; you might want to consider setting up one to build the packages in instead of building them on the host system. (And then install from packages in the other jails.) -Pat