summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-09 20:40:05 +0000
committerjlam <jlam>2004-01-09 20:40:05 +0000
commitcc4afc6f926dd6665003451b9527a529003e9cbe (patch)
tree6c25b779a3d2fac35e6dace95aba88d0481ea3c8 /security
parenta4c264ab6dbf83ef55e33f090976ba879e4c4147 (diff)
downloadpkgsrc-cc4afc6f926dd6665003451b9527a529003e9cbe.tar.gz
Don't install the LDAP_SASLAUTHD documentation file unless we are building
with support for LDAP.
Diffstat (limited to 'security')
-rw-r--r--security/cyrus-saslauthd/Makefile6
-rw-r--r--security/cyrus-saslauthd/PLIST.ldap3
2 files changed, 8 insertions, 1 deletions
diff --git a/security/cyrus-saslauthd/Makefile b/security/cyrus-saslauthd/Makefile
index a58b9688b8d..15d23708548 100644
--- a/security/cyrus-saslauthd/Makefile
+++ b/security/cyrus-saslauthd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/01/09 19:44:10 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2004/01/09 20:40:05 jlam Exp $
DISTNAME= cyrus-sasl-2.1.17
PKGNAME= ${DISTNAME:S/sasl/saslauthd/}
@@ -19,6 +19,7 @@ EXTRACT_ELEMENTS+= ${DISTNAME}/include/hmac-md5.h
USE_BUILDLINK3= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+PLIST_SRC= ${PKGDIR}/PLIST
BUILD_DEFS+= USE_PAM USE_LDAP SASL_USE_GSSAPI
@@ -37,6 +38,7 @@ CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.pam}
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap}
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
+PLIST_SRC+= ${PKGDIR}/PLIST.ldap
.endif
.if defined(SASL_USE_GSSAPI) && !empty(SASL_USE_GSSAPI:M[yY][eE][sS])
@@ -60,9 +62,11 @@ post-build:
${MV} -f $$f.new $$f; \
done
+.if defined(USE_LDAP)
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cyrus-saslauthd
${INSTALL_DATA} ${WRKSRC}/LDAP_SASLAUTHD \
${PREFIX}/share/examples/cyrus-saslauthd
+.endif
.include "../../mk/bsd.pkg.mk"
diff --git a/security/cyrus-saslauthd/PLIST.ldap b/security/cyrus-saslauthd/PLIST.ldap
new file mode 100644
index 00000000000..d8b6d358013
--- /dev/null
+++ b/security/cyrus-saslauthd/PLIST.ldap
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.ldap,v 1.1 2004/01/09 20:40:05 jlam Exp $
+share/examples/cyrus-saslauthd/LDAP_SASLAUTHD
+@dirrm share/examples/cyrus-saslauthd