From owner-freebsd-rc@FreeBSD.ORG Sat Dec 17 01:31:07 2005 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 389DF16A420 for ; Sat, 17 Dec 2005 01:31:07 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id D1A0643D5C for ; Sat, 17 Dec 2005 01:31:05 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 24450 invoked from network); 17 Dec 2005 01:31:00 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 17 Dec 2005 01:31:00 -0000 Received: (qmail 25115 invoked by uid 89); 17 Dec 2005 01:10:40 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 17 Dec 2005 01:10:40 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id CA497B80C; Sat, 17 Dec 2005 03:10:25 +0200 (EET) Date: Sat, 17 Dec 2005 03:10:24 +0200 From: Ion-Mihai Tetcu To: Doug Barton Message-ID: <20051217031024.60912c94@it.buh.tecnik93.com> In-Reply-To: <43A35FA5.4050202@FreeBSD.org> References: <43A33C0E.9050100@FreeBSD.org> <20051217000418.GC851@zaphod.nitro.dk> <43A35FA5.4050202@FreeBSD.org> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.8; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org, "Simon L. Nielsen" Subject: Re: Should etc/rc.d/ike move to ports? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2005 01:31:07 -0000 On Fri, 16 Dec 2005 16:45:25 -0800 Doug Barton wrote: > Simon L. Nielsen wrote: > > On 2005.12.16 14:13:34 -0800, Doug Barton wrote: > > > >> Because it was previously not possible to run scripts for ports in > >> the base rcorder, and because the rc.d/ike script needed to run > >> well before localpkg, it was imported into the base, and lives > >> currently in /etc/rc.d. However, now that I am about to MFC the > >> code that runs ports scripts in the base rcorder, I'm wondering if > >> we shouldn't add the rc.d script to the port, and remove it from > >> HEAD and RELENG_6 after my MFC. I would of course be glad to assist > >> with any details related to the move. [ ... ] > Ok, sounds like you're on top of this then. The preferred way to do > this currently would be to add the script to the files directory, and > the following to the port Makefile: > > USE_RC_SUBR= ike.sh > > There is already some cool stuff in the ports infrastructure to > handle these scripts. Take a look at databases/mysql323-server if you > want an example. The current infrastructure already handles things > like subbing out PREFIX, etc. for you. In the near future the ports > infrastructure will be updated to then install that file as just ike > on systems that are past the MFC date of the local_startup changes, > and as ike.sh on older systems so it will still work. Better use: USE_RC_SUBR= ike and put the script in files/ike.in Currently this will perform some substitutions on the script (PREFEIX, etc.) and install it as ike.sh After pav@'s PR gets commited it will install w/o .sh on rc.d sistems (HEAD for now), which is, AFAIK what we want in the long run (so we can differentiate between (non-)sourced scipts based on extension. -- IOnut - Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" BOFH excuse #150: Arcserve crashed the server again