From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 14:59:01 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AEEE16A4CF for ; Thu, 17 Jun 2004 14:59:01 +0000 (GMT) Received: from isbox.insidesystems.net (isbox.insidesystems.net [209.123.232.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F6AA43D2D for ; Thu, 17 Jun 2004 14:59:01 +0000 (GMT) (envelope-from kevin@insidesystems.net) Received: from [68.86.192.177] (helo=[10.0.1.2]) by isbox.insidesystems.net with asmtp (Exim 4.34; FreeBSD) id 1BayLB-000Ch1-9e for ports@freebsd.org; Thu, 17 Jun 2004 10:58:09 -0400 Mime-Version: 1.0 (Apple Message framework v618) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD Ports From: Kevin Way Date: Thu, 17 Jun 2004 07:58:08 -0700 X-Mailer: Apple Mail (2.618) Subject: A proper way to install ports into a jail, from the host machine X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 14:59:01 -0000 As it stands, many ports can be installed into a jail from the host machine by setting: PKG_DBDIR, PORT_DBDIR, X11BASE, LOCALBASE, LINUXBASE, MANPREFIX, PREFIX, LDCONFIG, and __MAKE_CONF. As far as I know, this leaves two problems. The first problem is that scripts which check for and create users (and change ownership on files/directories) aren't currently setup to do so with respect to a jailed environment. The second problem is that it's all quite obscure. As such, I'm wondering if there would be support for the addition of a JAILBASE variable, which would correctly set the aforementioned variables, and more importantly would handle user/group/file ownership issues correctly with respect to the jail. Kevin Way InsideSystems