diff options
author | wiz <wiz@pkgsrc.org> | 2006-04-13 21:32:40 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-04-13 21:32:40 +0000 |
commit | 5c20b924a99d0ed3fee15f2b5d0dc260246a0187 (patch) | |
tree | 5d03024f73b0793214a0255cf6144c1dfd8ff6be /security/cyrus-sasl/Makefile | |
parent | ec34a0d8c3c8f6a435fb10e575d6c40f0b86c3b7 (diff) | |
download | pkgsrc-5c20b924a99d0ed3fee15f2b5d0dc260246a0187.tar.gz |
Add current contents of security/cyrus-sasl2, starting its move
to security/cyrus-sasl (to make PKGNAME match directory name).
Diffstat (limited to 'security/cyrus-sasl/Makefile')
-rw-r--r-- | security/cyrus-sasl/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/security/cyrus-sasl/Makefile b/security/cyrus-sasl/Makefile new file mode 100644 index 00000000000..dd926aa4c63 --- /dev/null +++ b/security/cyrus-sasl/Makefile @@ -0,0 +1,71 @@ +# $NetBSD: Makefile,v 1.50 2006/04/13 21:32:40 wiz Exp $ + +.include "Makefile.common" + +PKGREVISION= 3 +SVR4_PKGNAME= csasl +COMMENT= Simple Authentication and Security Layer + +.if exists(/usr/include/ndbm.h) +SASL_DBTYPE?= ndbm +.else +SASL_DBTYPE?= berkeley +.endif +BUILD_DEFS+= SASL_DBTYPE + +.if ${SASL_DBTYPE} == "berkeley" +USE_DB185= no +. include "../../mk/bdb.buildlink3.mk" +.endif + +CONFIGURE_ARGS+= --with-dblib=${SASL_DBTYPE:Q} +CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb + +# Support using Cyrus saslauthd (security/cyrus-saslauthd) for plaintext +# password authentication. +# +SASLSOCKETDIR?= ${VARBASE}/run/saslauthd +CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR:Q} +BUILD_DEFS+= SASLSOCKETDIR + +# Support using the Courier authdaemond (security/courier-authlib) for +# plaintext password authentication. +# +AUTHDAEMONVAR?= ${VARBASE}/authdaemon +CONFIGURE_ARGS+= --with-authdaemond=${AUTHDAEMONVAR}/socket +BUILD_DEFS+= AUTHDAEMONVAR + +# Support using APOP against a POP server for plaintext password +# authentication. +# +CONFIGURE_ARGS+= --enable-checkapop + +.if exists(/dev/urandom) +SASL_ENTROPY_SOURCE?= /dev/urandom +.endif +.if defined(SASL_ENTROPY_SOURCE) +CONFIGURE_ARGS+= --with-devrandom=${SASL_ENTROPY_SOURCE:Q} +.endif +BUILD_DEFS+= SASL_ENTROPY_SOURCE + +# CYRUS_USER username of the Cyrus administrator +# CYRUS_GROUP group of the Cyrus administrator +# +CYRUS_USER?= cyrus +CYRUS_GROUP?= mail +FILES_SUBST+= CYRUS_USER=${CYRUS_USER:Q} +FILES_SUBST+= ROOT_USER=${ROOT_USER:Q} +BUILD_DEFS+= CYRUS_USER CYRUS_GROUP + +PKG_GROUPS= ${CYRUS_GROUP} +PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}::::${SH} + +MESSAGE_SUBST+= _PLUGINDIR=${_PLUGINDIR:Q} + +post-install: + ${INSTALL_DATA_DIR} ${DOCDIR} + cd ${WRKSRC}/doc; for file in *.fig *.html *.txt; do \ + ${INSTALL_DATA} $$file ${DOCDIR}; \ + done + +.include "../../mk/bsd.pkg.mk" |