diff options
author | jlam <jlam> | 2003-03-19 21:02:00 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-03-19 21:02:00 +0000 |
commit | ac554897f900e8a52ffa9f09900e24b38706798e (patch) | |
tree | 3d79f7f0b09ccea7dee48ff4592dfcaa4cab968f /security | |
parent | 7a4812cb57e28eb9f89f5b8be18fd9fb845dd86b (diff) | |
download | pkgsrc-ac554897f900e8a52ffa9f09900e24b38706798e.tar.gz |
Rearrange some of the Makefile logic so that we can create Cyrus SASL
plugin packages.
Diffstat (limited to 'security')
-rw-r--r-- | security/cyrus-sasl/Makefile | 80 | ||||
-rw-r--r-- | security/cyrus-sasl/Makefile.common | 62 |
2 files changed, 79 insertions, 63 deletions
diff --git a/security/cyrus-sasl/Makefile b/security/cyrus-sasl/Makefile index bb008470eb5..22c27b12443 100644 --- a/security/cyrus-sasl/Makefile +++ b/security/cyrus-sasl/Makefile @@ -1,89 +1,43 @@ -# $NetBSD: Makefile,v 1.38 2003/01/28 22:04:04 jlam Exp $ +# $NetBSD: Makefile,v 1.39 2003/03/19 21:02:00 jlam Exp $ -DISTNAME= cyrus-sasl-1.5.27 -SVR4_PKGNAME= csasl -PKGREVISION= 4 -CATEGORIES= security -MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ - ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/ +.include "Makefile.common" -MAINTAINER= jlam@netbsd.org -HOMEPAGE= http://asg.web.cmu.edu/sasl/ -COMMENT= Simple Authentication and Security Layer +SVR4_PKGNAME= csasl +PKGREVISION= 4 +COMMENT= Simple Authentication and Security Layer -USE_BUILDLINK2= YES -USE_PKGINSTALL= YES -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-pwcheck=${SASLSOCKETDIR} -CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR} -CONFIGURE_ARGS+= --with-dblib=ndbm -CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb -CONFIGURE_ARGS+= --with-plugindir=${PREFIX}/lib/sasl -CONFIGURE_ARGS+= --with-rc4=${BUILDLINK_PREFIX.openssl} +PLIST_SRC+= ${.CURDIR}/PLIST.common # 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-x509 # --- no X.509 -CONFIGURE_ARGS+= --disable-krb4 # --- no KERBEROS_V4 +.if defined(USE_PAM) +. include "../../security/PAM/buildlink2.mk" +BUILD_DEFS+= USE_PAM +CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.pam} +.endif + +CONFIGURE_ARGS+= --enable-digest # DIGEST-MD5 +CONFIGURE_ARGS+= --with-rc4=${SSLBASE} +.include "../../security/openssl/buildlink2.mk" .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/buildlink2.mk" -BUILD_DEFS+= USE_PAM -CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.pam} -.else -CONFIGURE_ARGS+= --without-pam -.endif - +USE_PKGINSTALL= YES PKG_GROUPS= ${CYRUS_GROUP} PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}::::${SH} RCD_SCRIPTS= sasl_pwcheck saslauthd OWN_DIRS= ${PREFIX}/lib/sasl -post-extract: - cd ${WRKSRC}; ${RM} -f include/md5.h - ${CP} ${FILESDIR}/sasl-config.in ${WRKSRC}/plugins - post-install: ${INSTALL_DATA_DIR} ${HTMLDIR} cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt ${HTMLDIR} -.include "../../security/openssl/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/security/cyrus-sasl/Makefile.common b/security/cyrus-sasl/Makefile.common new file mode 100644 index 00000000000..1a99fac0313 --- /dev/null +++ b/security/cyrus-sasl/Makefile.common @@ -0,0 +1,62 @@ +# $NetBSD: Makefile.common,v 1.1 2003/03/19 21:02:00 jlam Exp $ + +DISTNAME= cyrus-sasl-1.5.27 +CATEGORIES= security +MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ + ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/ + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://asg.web.cmu.edu/sasl/ + +PLUGIN_DEPENDS= cyrus-sasl>=1.5.27 + +DISTINFO_FILE= ${.CURDIR}/../cyrus-sasl/distinfo +FILESDIR= ${.CURDIR}/../cyrus-sasl/files +PATCHDIR= ${.CURDIR}/../cyrus-sasl/patches + +USE_BUILDLINK2= YES +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 +PLUGINDIR= ${PREFIX}/lib/sasl +SASLSOCKETDIR= /var/run/sasl +FILES_SUBST+= SASLSOCKETDIR=${SASLSOCKETDIR} +PLIST_SUBST+= SASLSOCKETDIR=${SASLSOCKETDIR} + +BUILD_DEFS+= CYRUS_USER CYRUS_GROUP + +CONFIGURE_ARGS+= --with-pwcheck=${SASLSOCKETDIR} +CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR} +CONFIGURE_ARGS+= --with-dblib=ndbm +CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb +CONFIGURE_ARGS+= --with-plugindir=${PLUGINDIR} + +# Authentication mechanisms +CONFIGURE_ARGS+= --disable-anon # ANONYMOUS +CONFIGURE_ARGS+= --disable-cram # CRAM-MD5 +CONFIGURE_ARGS+= --disable-digest # DIGEST-MD5 +CONFIGURE_ARGS+= --disable-login # LOGIN +CONFIGURE_ARGS+= --disable-plain # PLAIN +CONFIGURE_ARGS+= --disable-scram # SCRAM-MD5 +CONFIGURE_ARGS+= --disable-sia # SIA +CONFIGURE_ARGS+= --disable-srp # SRP +CONFIGURE_ARGS+= --disable-x509 # X.509 +CONFIGURE_ARGS+= --disable-krb4 # KERBEROS_V4 +CONFIGURE_ARGS+= --disable-gssapi # GSSAPI +CONFIGURE_ARGS+= --without-pam + +post-extract: + cd ${WRKSRC}; ${RM} -f include/md5.h + ${CP} ${FILESDIR}/sasl-config.in ${WRKSRC}/plugins |