ports/66521: add new make flag for cyrus-sasl2 ports
Krzysztof Stryjek
wtp+cyrus at wtp3.org
Tue May 11 12:30:21 UTC 2004
>Number: 66521
>Category: ports
>Synopsis: add new make flag for cyrus-sasl2 ports
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue May 11 05:30:19 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Krzysztof Stryjek
>Release: FreeBSD 4.9-STABLE i386
>Organization:
private
>Environment:
System: FreeBSD kryptos.mud.pl 4.9-STABLE FreeBSD 4.9-STABLE #3: Tue Feb 24 16:33:39 CET 2004 toor at kryptos.mud.pl:/usr/obj/usr/src/sys/POOH i386
>Description:
cyrus-sals2 is very useful port for making authentication. It is wide
used with postfix. So it's very useful to change it's default running
directory to on of postfix subdirectories (vide:
http://ezine.daemonnews.org/200306/postfix-sasl.html).
>How-To-Repeat:
well, follow
http://prioris.mini.pw.edu.pl/~gregory/articles/errata.html
(i don't know why, but during writing this PR server at
prioris.mini.pw.edu.pl did not respond).
>Fix:
Here are patches for cyrus-sal2 ports Makefiles:
cyrus-sasl2:
------------------------------------------- cut here -----------------------------
--- Makefile.orig Sat May 8 04:07:41 2004
+++ Makefile Tue May 11 11:47:48 2004
@@ -51,8 +51,7 @@
--enable-static \
--enable-auth-sasldb \
--with-openssl=${OPENSSLBASE} \
- --with-rc4=openssl \
- --with-saslauthd
+ --with-rc4=openssl
.if defined(WITH_BDB_VER)
.if ${WITH_BDB_VER} == 3
@@ -176,6 +175,12 @@
CONFIGURE_ARGS+=--disable-krb4
EBONES= "@comment "
.endif
+
+.if !defined(SASLAUTHD_RUNPATH)
+SASLAUTHD_RUNPATH=/var/state/saslauthd
+.endif
+
+CONFIGURE_ARGS+= --with-saslauthd=${SASLAUTHD_RUNPATH}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \
OPENSSLINC=${OPENSSLINC} \
------------------------------------------- cut here -----------------------------
cyrus-sasl2-saslauthd:
------------------------------------------- cut here -----------------------------
--- Makefile.orig Sat May 8 04:07:41 2004
+++ Makefile Tue May 11 11:45:12 2004
@@ -41,8 +41,7 @@
--enable-login \
--enable-auth-sasldb \
--with-openssl=${OPENSSLBASE} \
- --with-rc4=openssl \
- --with-saslauthd
+ --with-rc4=openssl
.if defined(WITH_BDB_VER)
.if ${WITH_BDB_VER} == 3
@@ -106,6 +105,12 @@
CONFIGURE_ARGS+=--disable-krb4
.endif
+.if !defined(SASLAUTHD_RUNPATH)
+SASLAUTHD_RUNPATH=/var/state/saslauthd
+.endif
+
+CONFIGURE_ARGS+= --with-saslauthd=${SASLAUTHD_RUNPATH}
+
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \
OPENSSLINC=${OPENSSLINC} \
OPENSSLLIB=${OPENSSLLIB} \
@@ -131,8 +136,8 @@
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/saslauthd.sh > ${PREFIX}/etc/rc.d/saslauthd.sh
@${CHMOD} 755 ${PREFIX}/etc/rc.d/saslauthd.sh
- ${MKDIR} -m 770 /var/state/saslauthd
- ${CHOWN} ${CYRUS_USER}:mail /var/state/saslauthd
+ ${MKDIR} -m 770 ${SASLAUTHD_RUNPATH}
+ ${CHOWN} ${CYRUS_USER}:mail ${SASLAUTHD_RUNPATH}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/saslauthd
.for file in ${DOCS}
------------------------------------------- cut here -----------------------------
I think it's better solution, that patching Makefiles before every building.
Greetings from Poland
wtp + cyrus (at) bsdguru (dot) org
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list