Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2005 11:57:44 -0400
From:      Yarema <yds@CoolRat.org>
To:        Oliver Lehmann <lehmann@ans-netz.de>
Cc:        josemi@freebsd.jazztel.es
Subject:   Re: splitting courier-authlib into master+slave ports
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> <FE915706A171A7D8FF1F0289@tuber.coolrat.org> <13A599297289B8FA39CA73DB@tuber.coolrat.org> <20050421231051.17229f02.lehmann@ans-netz.de> <895A5ED96F5ECDED176975AC@[192.168.1.73]>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========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 <yds@CoolRat.org> wrote:

> --On Thursday, April 21, 2005 11:10 PM +0200 Oliver Lehmann
> <lehmann@ans-netz.de> 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 <bsd.port.mk> 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==========--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7FED6BD2EB2A5924B2448D7B>