From owner-freebsd-stable@FreeBSD.ORG Fri Dec 23 19:14:02 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D070F16A423 for ; Fri, 23 Dec 2005 19:14:02 +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 0A2E243D53 for ; Fri, 23 Dec 2005 19:14:00 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 5106 invoked from network); 23 Dec 2005 19:13:54 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 23 Dec 2005 19:13:54 -0000 Received: (qmail 2550 invoked by uid 89); 23 Dec 2005 19:13:55 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 23 Dec 2005 19:13:55 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 7D671B80E; Fri, 23 Dec 2005 21:13:57 +0200 (EET) Date: Fri, 23 Dec 2005 21:13:56 +0200 From: Ion-Mihai Tetcu To: Florent Thoumie Message-ID: <20051223211356.029c86c5@it.buh.tecnik93.com> In-Reply-To: <200512231928.21444.flz@xbsd.org> References: <43A910F8.5090009@FreeBSD.org> <200512231538.21356.flz@xbsd.org> <20051223195207.6f2e6148@it.buh.tecnik93.com> <200512231928.21444.flz@xbsd.org> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jose, Doug Barton , freebsd-stable@freebsd.org, Rodriguez , freebsd-ports@freebsd.org Subject: Re: HEADS UP: MFC of local_startup changes to rc.d complete X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 19:14:03 -0000 On Fri, 23 Dec 2005 19:28:19 +0100 Florent Thoumie wrote: > On Friday 23 December 2005 18:52, Ion-Mihai Tetcu wrote: > > On Fri, 23 Dec 2005 15:38:15 +0100 > > > > Florent Thoumie wrote: > > > On Friday 23 December 2005 15:19, Jose M Rodriguez wrote: > > > > I'm not sure this is the way to go, but ... > > > > > > > > Can someone put a document on what is the desired model? I > > > > think we have too much little pieces of disperse notes about > > > > this. > > > > > > > > Also, some working notes about ports and RELENG_4/RELENG_5 src > > > > issues will be of interest. > > > > > > > > Hope this can be tweak in time for 6.1 (Jan). > > > > > > Convert your old script to rcNG scripts and use > > > USE_RC_SUBR= script.sh. Ensure that the rcorder preamble contains > > > meaningful keywords (PROVIDES, REQUIRES, BEFORE, ...) for all > > > your rcNG scripts. bsd.port.mk should do the rest. > > > > You should actually convert your old script to a ``rc.d'' script, > > that's how they are called now. > > rcNG was the word for "using rc.subr". From the beginning > these rc.subr-powered scripts have been using the rcorder preamble > and have always been rc.d script actually. Since we're talking about > the same thing, I'm not sure words are really important. Well, I was corrected by dougb@ For me a rc.d script is one that on: 1. has the right keywords, ... (ie. is rcNG) 2. has the right extension depending if it must be sourced or not (on a a system which has local_startup scripts in the base rcorder - HEAD and 6-STABLE for now). > > Also, if your script is rc.d compatible you should use: > > USE_RC_SUBR=script (without .sh) > > For now it doesn't matter because bsd.port.mk install all > > USE_RC_SUBR scripts with .sh extension, but see below > > Using the .sh extension prevents from conflicts in ${WRKDIR} This is indeed a problem; perhaps we should hack bsd.port.mk to avoid this. > and you know what kind of file it is in ${FILESDIR}. Anyway, what is This is easy to fix, no ? > the difference between adding .sh suffix in some cases and removing > it in some cases ? If you are asking what is the difference between how it is/will be treated by rc.subr the answer is in the quote from Brooks which you removed. An interesting discussion is in http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/90070 and a solution is tested (http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/90150). I think naming a script without .sh make it easy to see it's rc.d ready. -- IOnut - Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" BOFH excuse #386: The Internet is being scanned for viruses