From owner-freebsd-ports@FreeBSD.ORG Wed Feb 15 13:14:11 2006 Return-Path: X-Original-To: ports@freebsd.org 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 6534616A420; Wed, 15 Feb 2006 13:14:11 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED55A43D48; Wed, 15 Feb 2006 13:14:10 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id k1FDEAJs023084; Wed, 15 Feb 2006 05:14:10 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id k1FDEAj9023083; Wed, 15 Feb 2006 05:14:10 -0800 (PST) (envelope-from rizzo) Date: Wed, 15 Feb 2006 05:14:10 -0800 From: Luigi Rizzo To: Alexander Leidinger Message-ID: <20060215051410.A22956@xorpc.icir.org> References: <20060214112901.A74586@xorpc.icir.org> <43F2884E.1070006@FreeBSD.org> <20060214230933.B81035@xorpc.icir.org> <20060215110149.87695wiuas44g4co@netchild.homeip.net> <20060215024812.A20909@xorpc.icir.org> <20060215140409.aj8kd4jrgg48w0wo@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20060215140409.aj8kd4jrgg48w0wo@netchild.homeip.net>; from Alexander@Leidinger.net on Wed, Feb 15, 2006 at 02:04:09PM +0100 Cc: ports@freebsd.org, Doug Barton Subject: Re: please check your ports, pre-install vs pre-su-install X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 13:14:11 -0000 On Wed, Feb 15, 2006 at 02:04:09PM +0100, Alexander Leidinger wrote: > Luigi Rizzo wrote: ... > > The issue, as far as i can tell, is that we have two pre-install > > targets, one run before and one after the credentials switch, > > and the question was whether there is a real need to have both, > > or just the latter suffices. > > > > My position was that probably one can consider the pre-no-su-install > > step as part of the 'build' target, but maybe i am missing something ? > > An example of a pre-install target which needs root credentials and which > doesn't belong into the build target is "add user FOO" (you need to be root or the way more common "mkdir something" in a system's directory. We all agree that this is a very common case. > An example of a pre-install target which doesn't needs root credentials is a > target which gathers some information which the install script needs. Since this is a lot more questionable - there is no clear reason why you could not do this in pre-su-install. anyways, my initial point was to make maintainers aware of the pre-su-install target and check that their own ports use this feature (and install-as-used) properly. bye luigi