aboutsummaryrefslogtreecommitdiff
path: root/security/cyrus-sasl2/Makefile
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-05-16 10:46:04 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-05-16 10:46:04 +0000
commitc109d236035d692e3abd215e7ac283679ba270e3 (patch)
treeeadf7b19d2fd2d223b827aba40160039ece27b37 /security/cyrus-sasl2/Makefile
parent162367685d9f93ba988bb71e2fc32b039e8160b2 (diff)
downloadports-c109d236035d692e3abd215e7ac283679ba270e3.tar.gz
ports-c109d236035d692e3abd215e7ac283679ba270e3.zip
Notes
Diffstat (limited to 'security/cyrus-sasl2/Makefile')
-rw-r--r--security/cyrus-sasl2/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile
index be2bc1036042..8b1f746cdf25 100644
--- a/security/cyrus-sasl2/Makefile
+++ b/security/cyrus-sasl2/Makefile
@@ -48,7 +48,6 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--mandir=${MANPREFIX}/man \
--enable-static \
--enable-login \
- --with-saslauthd \
--enable-auth-sasldb \
--with-rc4=openssl
@@ -57,6 +56,7 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
TOUCH="${TOUCH}" \
MKDIR="${MKDIR}" \
REALCURDIR="${.CURDIR}" \
+ WITHOUT_SASLAUTHD="${WITHOUT_SASLAUTHD}" \
WITH_DB3="${WITH_DB3}" \
WITH_DB4="${WITH_DB4}" \
WITH_DB41="${WITH_DB41}" \
@@ -88,6 +88,13 @@ NTLM= "@comment "
CONFIGURE_ARGS+= --enable-ntlm
.endif
+.if defined(WITHOUT_SASLAUTHD)
+CONFIGURE_ARGS+= --without-saslauthd
+SASLAUTHD= "@comment "
+.else
+CONFIGURE_ARGS+= --with-saslauthd
+.endif
+
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a)
CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME}
.elif !defined(WITHOUT_GSSAPI) && defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
@@ -151,6 +158,7 @@ HTDOCS= advanced appconvert gssapi index install macosx mechanisms \
options plugprog programming readme sysadmin upgrading
PLIST_SUB= PREFIX=${PREFIX} \
+ SASLAUTHD=${SASLAUTHD} \
OTP=${OTP} \
CRAM=${CRAM} \
DIGEST=${DIGEST} \
@@ -195,16 +203,17 @@ post-install:
${MAN8PREFIX}/man/man8/saslpasswd2.8
${INSTALL_MAN} ${WRKSRC}/utils/sasldblistusers2.8 \
${MAN8PREFIX}/man/man8/sasldblistusers2.8
+.if !defined(WITHOUT_SASLAUTHD)
${GZIP_CMD} ${MAN8PREFIX}/man/cat8/saslauthd.8
@${SED} -e "s;%%PREFIX%%;${PREFIX};g" ${PWCHECK_SUB} \
${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
+.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/html
- @${MKDIR} ${DOCSDIR}/saslauthd
.for file in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
@@ -214,9 +223,12 @@ post-install:
.for file in ${HTDOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${file}.html ${DOCSDIR}/html
.endfor
+.if !defined(WITHOUT_SASLAUTHD)
+ @${MKDIR} ${DOCSDIR}/saslauthd
.for file in ${SASLAUTHD_DOCS}
@${INSTALL_DATA} ${WRKSRC}/saslauthd/${file} ${DOCSDIR}/saslauthd
.endfor
+.endif
@${INSTALL_DATA} ${FILESDIR}/Sendmail.README ${DOCSDIR}
.endif
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL