From owner-freebsd-ports@FreeBSD.ORG Tue Nov 9 04:08:40 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 19CAB16A4CE; Tue, 9 Nov 2004 04:08:40 +0000 (GMT) Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35DFF43D31; Tue, 9 Nov 2004 04:08:39 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mailout2.barnet.com.au (Postfix, from userid 27) id 8399370742E; Tue, 9 Nov 2004 15:08:37 +1100 (EST) X-Viruscan-Id: <419042C500004A6876A8A7@BarNet> Received: from mail2-auth.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id 1CC2870742D; Tue, 9 Nov 2004 15:08:37 +1100 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id 58BC3707428; Tue, 9 Nov 2004 15:08:36 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id F29EB60E3; Tue, 9 Nov 2004 15:08:34 +1100 (EST) Date: Tue, 9 Nov 2004 15:08:34 +1100 From: Edwin Groothuis To: ports@freebsd.org Message-ID: <20041109040834.GA8940@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i cc: hetzels@westbend.net cc: eik@FreeBSD.org Subject: rc.subr extensions 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: Tue, 09 Nov 2004 04:08:40 -0000 Hi, In ports/73691[1], I have submitted a patch for bsd.port.mk to make it easier for porters to use the rc.subr framework. The suggested changes are: - define RC_FILES, which contain a list of all the files to be stored in /usr/local/etc/rc.d. This file may contain macros like %%LOCALBASE%% and %%RC_SUBR%%. - define RC_SUBST, which contain a list of all variables to be replaced. For example LOCALBASE with ${LOCALBASE}. - add three new targets: - patch-rc, which patches the original RC_FILES to one with the macros translated. - install-rc, which installs the RC_FILES to /usr/local/etc/rc.d. - add-plist-rc, which adds the RC_FILES to the pkg-plist. This way it will be easier for porters to incorperate the rc.d files into the Makefile/bsd.port.mk framework. I'm sure I have missed a couple of things, so if you have played with rc.subr and missed some features, tell me about it and lets see how we can add them. Edwin [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports%2F73691 -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/