pkgsrc/security/cyrus-sasl2/Makefile.common

85 lines
2.6 KiB
Text
Raw Normal View History

# $NetBSD: Makefile.common,v 1.12 2004/01/27 00:53:10 heinz Exp $
#
2004-01-08 23:13:14 +01:00
# This Makefile fragment should be included _below_ any SASL_PLUGIN
# definition and _above_ any CONFIGURE_ARGS definitions.
DISTNAME= cyrus-sasl-2.1.15
CATEGORIES= security
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
2003-07-18 00:50:55 +02:00
MAINTAINER= chris@NetBSD.org
HOMEPAGE= http://asg.web.cmu.edu/sasl/
DISTINFO_FILE= ${.CURDIR}/../cyrus-sasl2/distinfo
FILESDIR= ${.CURDIR}/../cyrus-sasl2/files
PATCHDIR= ${.CURDIR}/../cyrus-sasl2/patches
2004-01-08 23:13:14 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
.include "../../mk/bsd.prefs.mk"
.if defined(SASL_PLUGIN) && !empty(SASL_PLUGIN:M[yY][eE][sS])
2004-01-08 23:13:14 +01:00
. include "../../security/cyrus-sasl2/buildlink3.mk"
. if defined(DEFAULT_VIEW.cyrus-sasl)
DEFAULT_VIEW.${PKGBASE}= ${DEFAULT_VIEW.cyrus-sasl}
. endif
.endif
2004-01-08 23:13:14 +01:00
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
MAKE_ENV+= SHLIBTOOL="${PKGSHLIBTOOL}"
# 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}
2003-12-15 15:10:49 +01:00
FILES_SUBST+= ROOT_USER=${ROOT_USER}
PLUGINDIR= ${PREFIX}/lib/sasl2
2004-01-08 23:13:14 +01:00
_PLUGINDIR= ${VIEWBASE}/lib/sasl2
HTMLDIR= ${PREFIX}/share/doc/html/cyrus-sasl
# /var/run/saslauthd matches the default value in configure.
SASLSOCKETDIR= /var/run/saslauthd
BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR}
CONFIGURE_ARGS+= --with-dblib=ndbm
CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb
2004-01-08 23:13:14 +01:00
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-ntlm # NTLM
CONFIGURE_ARGS+= --disable-plain # PLAIN
CONFIGURE_ARGS+= --disable-scram # SCRAM-MD5
CONFIGURE_ARGS+= --disable-sia # SIA
CONFIGURE_ARGS+= --disable-srp # SRP
CONFIGURE_ARGS+= --disable-krb4 # KERBEROS_V4
CONFIGURE_ARGS+= --disable-gssapi # GSSAPI
CONFIGURE_ARGS+= --disable-otp # OTP
CONFIGURE_ARGS+= --without-pam
# clean up a bit to help package maintainer produce patch files
post-extract:
${_PKG_SILENT}${_PKG_DEBUG} \
${FIND} ${WRKSRC} -type f -name "*.orig" -print | ${XARGS} ${RM} -f
# Left here as reference for patch makers...
#pre-configure:
# cd ${WRKSRC}; \
# ${ACLOCAL} -I cmulocal -I config; \
# ${AUTOHEADER}; \
# ${AUTOMAKE} -a --gnu -i ; \
# ${AUTOCONF}