summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl2/Makefile
diff options
context:
space:
mode:
authorchris <chris@pkgsrc.org>2002-10-27 15:08:59 +0000
committerchris <chris@pkgsrc.org>2002-10-27 15:08:59 +0000
commitce6ee05b6022be3d98dafaab7307fc3aa5f0e8be (patch)
tree3843fdc6b627f0763070f618f6fcaa7039ccdf3c /security/cyrus-sasl2/Makefile
parent7d38a52534b9b0f86f13126dd76b5070f3d0b75e (diff)
downloadpkgsrc-ce6ee05b6022be3d98dafaab7307fc3aa5f0e8be.tar.gz
Initial import of cyrus-sasl 2.1.9.
This is the latest release of cyrus-sasl. It is needed for the 2.1.x versions of cyrus-imapd. SASL is a method for adding authentication support to connection-based protocols. To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions. If its use is negotiated, a security layer is inserted between the protocol and the connection.
Diffstat (limited to 'security/cyrus-sasl2/Makefile')
-rw-r--r--security/cyrus-sasl2/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile
new file mode 100644
index 00000000000..15d670fafb6
--- /dev/null
+++ b/security/cyrus-sasl2/Makefile
@@ -0,0 +1,94 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/10/27 15:09:00 chris Exp $
+
+DISTNAME= cyrus-sasl-2.1.9
+SVR4_PKGNAME= csasl
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
+ ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
+
+MAINTAINER= chris@netbsd.org
+HOMEPAGE= http://asg.web.cmu.edu/sasl/
+COMMENT= Simple Authentication and Security Layer
+
+USE_BUILDLINK2= YES
+AUTOMAKE_REQD= 1.4
+GNU_CONFIGURE= YES
+USE_GMAKE= YES
+USE_LIBTOOL= YES
+LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
+
+.include "../../mk/bsd.prefs.mk"
+
+# 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}
+
+HTMLDIR= ${PREFIX}/share/doc/html/cyrus-sasl
+SASLSOCKETDIR= /var/run/sasl
+FILES_SUBST+= SASLSOCKETDIR=${SASLSOCKETDIR}
+PLIST_SUBST+= SASLSOCKETDIR=${SASLSOCKETDIR}
+
+BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
+
+PLIST_SRC= ${.CURDIR}/PLIST.common
+
+CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR}
+CONFIGURE_ARGS+= --with-dblib=ndbm
+CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb
+CONFIGURE_ARGS+= --with-plugindir=${PREFIX}/lib/sasl2
+CONFIGURE_ARGS+= --with-rc4=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_DIR}
+
+# Authentication mechanisms
+CONFIGURE_ARGS+= --enable-anon # ANONYMOUS
+CONFIGURE_ARGS+= --enable-cram # CRAM-MD5
+CONFIGURE_ARGS+= --enable-digest # DIGEST-MD5
+CONFIGURE_ARGS+= --disable-login # --- no LOGIN
+CONFIGURE_ARGS+= --enable-plain # PLAIN
+CONFIGURE_ARGS+= --disable-scram # --- no SCRAM-MD5
+CONFIGURE_ARGS+= --disable-sia # --- no SIA
+CONFIGURE_ARGS+= --disable-srp # --- no SRP
+CONFIGURE_ARGS+= --disable-krb4 # --- no KERBEROS_V4
+CONFIGURE_ARGS+= --enable-otp # OTP
+
+.if defined(SASL_USE_GSSAPI) && ${SASL_USE_GSSAPI} == "YES"
+CONFIGURE_ARGS+= --enable-gssapi=/usr # GSSAPI
+PLIST_SRC+= ${.CURDIR}/PLIST.krb5
+.else
+CONFIGURE_ARGS+= --disable-gssapi # --- no GSSAPI
+.endif
+
+PLIST_SRC+= ${.CURDIR}/PLIST.plugins
+
+.if defined(USE_PAM)
+. include "../../security/PAM/buildlink.mk"
+BUILD_DEFS+= USE_PAM
+CONFIGURE_ARGS+= --with-pam=${BUILDLINK_DIR}
+.else
+CONFIGURE_ARGS+= --without-pam
+.endif
+
+PKG_GROUPS= ${CYRUS_GROUP}
+PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}::::${SH}
+RCD_SCRIPTS= saslauthd
+OWN_DIRS= ${PREFIX}/lib/sasl2
+
+post-extract:
+ ${CP} ${FILESDIR}/sasl-config.in ${WRKSRC}/plugins
+
+pre-configure:
+ cd ${WRKSRC} && ${AUTOHEADER}
+ cd ${WRKSRC} && ${AUTOMAKE} --gnu
+ cd ${WRKSRC} && ${AUTOCONF}
+
+post-install:
+ ${INSTALL_DATA_DIR} ${HTMLDIR}
+ cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt ${HTMLDIR}
+
+.include "../../security/openssl/buildlink2.mk"
+.include "../../mk/automake.mk"
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"