splitting courier-authlib into master+slave ports

Yarema yds at CoolRat.org
Mon Apr 25 08:57:46 PDT 2005


--On Friday, April 22, 2005 00:37:25 -0400 Yarema <yds at CoolRat.org> wrote:

> --On Thursday, April 21, 2005 11:10 PM +0200 Oliver Lehmann
> <lehmann at 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
-------------- next part --------------
--- 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
-------------- next part --------------
--- Makefile.ext.orig	Mon Apr 25 11:32:15 2005
+++ Makefile.ext	Mon Apr 25 11:36:48 2005
@@ -70,7 +70,12 @@
 		AUTHDAEMONVAR=${AUTHDAEMONVAR}
 SUB_LIST:=	${PLIST_SUB}
 SUB_FILES+=	pkg-install pkg-deinstall
+
+.if defined(WITH_RCORDER)
+USE_RCORDER=	courier-authdaemond.sh
+.else
 USE_RC_SUBR=	courier-authdaemond.sh
+.endif
 
 .else
 BUILD_DEPENDS+=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base


More information about the freebsd-ports mailing list