From owner-freebsd-ports@FreeBSD.ORG Mon Apr 25 15:57:46 2005 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 263D116A4CE for ; Mon, 25 Apr 2005 15:57:46 +0000 (GMT) Received: from dppl.com (sapas.dppl.com [216.182.10.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DD3B43D46 for ; Mon, 25 Apr 2005 15:57:45 +0000 (GMT) (envelope-from yds@CoolRat.org) Received: from [192.168.1.69] (pcp0011284575pcs.union01.nj.comcast.net [69.248.144.22]) (AUTH: PLAIN yds, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by dppl.com with esmtp; Mon, 25 Apr 2005 11:57:44 -0400 Date: Mon, 25 Apr 2005 11:57:44 -0400 From: Yarema To: Oliver Lehmann Message-ID: <7FED6BD2EB2A5924B2448D7B@tuber.coolrat.org> In-Reply-To: <895A5ED96F5ECDED176975AC@[192.168.1.73]> References: <20050414111426.775f6afd.lehmann@ans-netz.de> <200504191258.53327.freebsd@redesjm.local> <20050419173039.4725638a.lehmann@ans-netz.de> <200504191827.05896.ports@dino.sk> <20050420121254.34c59e53.lehmann@ans-netz.de> <9F0C7E4FBA18BFD0B3946DFE@tuber.coolrat.org> <20050420205646.5c7b72df.lehmann@ans-netz.de> <13A599297289B8FA39CA73DB@tuber.coolrat.org> <20050421231051.17229f02.lehmann@ans-netz.de> <895A5ED96F5ECDED176975AC@[192.168.1.73]> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="==========2B17E83D6255D9BA68BB==========" cc: ports@FreeBSD.org cc: ports@dino.sk cc: josemi@freebsd.jazztel.es Subject: Re: splitting courier-authlib into master+slave ports 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: Mon, 25 Apr 2005 15:57:46 -0000 --==========2B17E83D6255D9BA68BB========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline --On Friday, April 22, 2005 00:37:25 -0400 Yarema wrote: > --On Thursday, April 21, 2005 11:10 PM +0200 Oliver Lehmann > wrote: > >> Hi once more >> >> Yarema wrote: >> >>> Note that "USE_RCORDER= courier-authdaemond.sh" will process >>> 'files/courier-authdaemond.sh.in' and not >>> 'files/courier-authdaemond.sh', that's just how deals >>> with it. >>> >> >> Just a small note: >> USE_RC_SUBR= courier-authdaemond.sh is what we want. >> USE_RCORDER=... installes the file in /etd/rc.d instead of ${PREFIX}/etc/ >> rc.d > > It's not what we all want.. I for one want USE_RCORDER so that in > courier.sh of the courier port I can: > ># PROVIDE: courier mail ># REQUIRE: DAEMON courier_authdaemond ># KEYWORD: FreeBSD shutdown > > and have the system run courier_authdaemond before it runs courier. > > USE_RC_SUBR= startup scripts installed in ${PREFIX}/etc/rc.d/ do not > honor the REQUIRE: and BEFORE: ordering. > > USE_RCORDER= scripts installed in /etd/rc.d/ do honor those. That's what > USE_RCORDER= is for. > > courier-imap and sqwebmail could stand to benefit from such startup > ordering as well. Oliver, I have a small patch against the latest you posted to handle the above issue: Makefile.opt.diff: - AUTH_VCHKPW "Vpopmail/vchkpw support" off + AUTH_VCHKPW "Vpopmail/vchkpw support" off \ + WITH_RCORDER "start authdaemond early in the boot process" off Makefile.ext.diff: + +.if defined(WITH_RCORDER) +USE_RCORDER= courier-authdaemond.sh +.else USE_RC_SUBR= courier-authdaemond.sh +.endif WITH_RCORDER is chosen to be the same as what net/openldap-server and others use to accomplish the same thing. This allows users like myself who prefer the startup order to be sorted early in the boot process by rcorder(8) to enable this without having to manually move the startup scripts to /etc/rc.d/ yet leaves things as they are by default for anyone who does not like their /etc/rc.d/ being molested by ports. The diffs are attached to avoid cut'n'paste errors. -- Yarema http://yds.CoolRat.org --==========2B17E83D6255D9BA68BB========== Content-Type: text/plain; charset=us-ascii; name="Makefile.opt.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Makefile.opt.diff"; size=400 --- Makefile.opt.orig Mon Apr 25 11:06:59 2005 +++ Makefile.opt Mon Apr 25 11:40:31 2005 @@ -21,4 +21,5 @@ AUTH_PGSQL "PostgreSQL support" off \ AUTH_USERDB "Userdb support (bdb)" off \ AUTH_USERGDBM "Userdb support (gdbm)" off \ - AUTH_VCHKPW "Vpopmail/vchkpw support" off + AUTH_VCHKPW "Vpopmail/vchkpw support" off \ + WITH_RCORDER "start authdaemond early in the boot process" off --==========2B17E83D6255D9BA68BB========== Content-Type: text/plain; charset=iso-8859-1; name="Makefile.ext.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Makefile.ext.diff"; size=410 --- Makefile.ext.orig Mon Apr 25 11:32:15 2005 +++ Makefile.ext Mon Apr 25 11:36:48 2005 @@ -70,7 +70,12 @@ AUTHDAEMONVAR=3D${AUTHDAEMONVAR} SUB_LIST:=3D ${PLIST_SUB} SUB_FILES+=3D pkg-install pkg-deinstall + +.if defined(WITH_RCORDER) +USE_RCORDER=3D courier-authdaemond.sh +.else USE_RC_SUBR=3D courier-authdaemond.sh +.endif =20 .else BUILD_DEPENDS+=3D courierauthconfig:${PORTSDIR}/security/courier-authlib-ba= se --==========2B17E83D6255D9BA68BB==========--