From owner-freebsd-current@FreeBSD.ORG Sat Jul 31 02:22:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98D5C16A4CE for ; Sat, 31 Jul 2004 02:22:23 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42F8443D53 for ; Sat, 31 Jul 2004 02:22:23 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by mproxy.gmail.com with SMTP id 79so74928rnl for ; Fri, 30 Jul 2004 19:21:18 -0700 (PDT) Received: by 10.38.79.46 with SMTP id c46mr91372rnb; Thu, 29 Jul 2004 07:18:23 -0700 (PDT) Message-ID: <790a9fff040729071745b541d3@mail.gmail.com> Date: Thu, 29 Jul 2004 09:17:52 -0500 From: Scot Hetzel To: Oliver Eikemeier In-Reply-To: <4108B7C5.5000802@fillmore-labs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4108B7C5.5000802@fillmore-labs.com> cc: current@freebsd.org Subject: Re: RFC: Alternate patch to have true new-style rc.d ports scripts(without touching localpkg) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 02:22:23 -0000 On Thu, 29 Jul 2004 10:39:33 +0200, Oliver Eikemeier wrote: > The bsd.port.mk integration might be something like > > RC_SCRIPTS= apache > > which will install `apache' or `apache.sh' depending on OSVERSION. A > variable RC_SUFX is set that could be used in pkg-message or other > places when necessary. > You read my bsd.port.mk :-). I have already created the above in my bsd.port.mk in the begining of the year. Except that I have it setup as: RC_SCRIPTS= script1 script2:0000 script3:0001 Then depending on OSVERSION the scripts are installed as: etc/rc.d/script1.sh etc/rc.d/0000.script2.sh etc/rc.d/0001.script3.sh or on FreeBSD 5.x + etc/rc.d/script1{.sh,} etc/rc.d/script2{.sh,} etc/rc.d/script3{.sh,} Currently, I have the removal of ".sh" set for FreeBSD 6.x in my bsd.port.mk. Scot