2004-08-04 21:41:06 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.23 2004/08/04 19:41:07 jlam Exp $
|
2004-02-14 15:43:51 +01:00
|
|
|
#
|
|
|
|
# This file is currently included by:
|
|
|
|
#
|
|
|
|
# security/cyrus-sasl2/Makefile
|
|
|
|
# security/cy2-login/Makefile
|
|
|
|
# security/cy2-ntlm/Makefile
|
2004-08-04 21:41:06 +02:00
|
|
|
# security/cy2-sql/Makefile
|
2003-03-19 23:25:05 +01:00
|
|
|
#
|
2004-01-08 23:13:14 +01:00
|
|
|
# This Makefile fragment should be included _below_ any SASL_PLUGIN
|
2003-03-19 23:25:05 +01:00
|
|
|
# definition and _above_ any CONFIGURE_ARGS definitions.
|
|
|
|
|
2004-08-04 21:41:06 +02:00
|
|
|
DISTNAME= cyrus-sasl-2.1.19
|
2003-03-19 23:25:05 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
|
|
|
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
|
|
|
|
|
2004-08-04 01:40:23 +02:00
|
|
|
MAINTAINER= jlam@NetBSD.org
|
2003-03-19 23:25:05 +01:00
|
|
|
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"
|
|
|
|
|
2003-03-19 23:25:05 +01:00
|
|
|
.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
|
2003-03-19 23:25:05 +01:00
|
|
|
.endif
|
|
|
|
|
2004-03-29 07:47:30 +02:00
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-05-16 19:07:22 +02:00
|
|
|
USE_GNU_TOOLS+= make
|
2004-02-14 04:16:58 +01:00
|
|
|
|
2004-03-29 07:47:30 +02:00
|
|
|
USE_LIBTOOL= yes
|
2004-02-12 14:34:29 +01:00
|
|
|
MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q}
|
2003-03-19 23:25:05 +01:00
|
|
|
|
|
|
|
# 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}
|
2004-03-29 07:47:30 +02:00
|
|
|
BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
|
2003-03-19 23:25:05 +01:00
|
|
|
|
|
|
|
PLUGINDIR= ${PREFIX}/lib/sasl2
|
2004-01-08 23:13:14 +01:00
|
|
|
_PLUGINDIR= ${VIEWBASE}/lib/sasl2
|
|
|
|
|
|
|
|
HTMLDIR= ${PREFIX}/share/doc/html/cyrus-sasl
|
2004-07-07 00:38:32 +02:00
|
|
|
SASLSOCKETDIR?= ${VARBASE}/run/saslauthd
|
2004-03-29 07:47:30 +02:00
|
|
|
BUILD_DEFS+= SASLSOCKETDIR
|
2003-03-19 23:25:05 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR}
|
2004-01-08 23:13:14 +01:00
|
|
|
CONFIGURE_ARGS+= --with-plugindir=${_PLUGINDIR}
|
2003-03-19 23:25:05 +01:00
|
|
|
|
|
|
|
# Authentication mechanisms
|
|
|
|
CONFIGURE_ARGS+= --disable-anon # ANONYMOUS
|
2004-02-14 08:45:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-checkapop # CHECKAPOP
|
2003-03-19 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-cram # CRAM-MD5
|
|
|
|
CONFIGURE_ARGS+= --disable-digest # DIGEST-MD5
|
2004-02-14 08:45:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-gssapi # GSSAPI
|
|
|
|
CONFIGURE_ARGS+= --disable-krb4 # KERBEROS_V4
|
2003-03-19 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-login # LOGIN
|
|
|
|
CONFIGURE_ARGS+= --disable-ntlm # NTLM
|
2004-02-14 08:45:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-otp # OTP
|
2003-03-19 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-plain # PLAIN
|
2004-02-14 08:45:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-sql # SQL
|
2003-03-19 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-srp # SRP
|
2004-02-14 08:45:36 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-srp-setpass
|
2004-03-29 07:47:30 +02:00
|
|
|
CONFIGURE_ARGS+= --with-dblib=none
|
2003-03-19 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --without-pam
|
|
|
|
|
|
|
|
# clean up a bit to help package maintainer produce patch files
|
|
|
|
post-extract:
|
2004-03-29 07:47:30 +02:00
|
|
|
${_PKG_SILENT}${_PKG_DEBUG} \
|
2004-01-27 01:53:10 +01:00
|
|
|
${FIND} ${WRKSRC} -type f -name "*.orig" -print | ${XARGS} ${RM} -f
|
2003-03-19 23:25:05 +01:00
|
|
|
|
|
|
|
# Left here as reference for patch makers...
|
|
|
|
#pre-configure:
|
2004-03-29 07:47:30 +02:00
|
|
|
# cd ${WRKSRC}; \
|
|
|
|
# ${ACLOCAL} -I cmulocal -I config; \
|
|
|
|
# ${AUTOHEADER}; \
|
|
|
|
# ${AUTOMAKE} -a --gnu -i ; \
|
2003-03-19 23:25:05 +01:00
|
|
|
# ${AUTOCONF}
|
2004-03-29 07:47:30 +02:00
|
|
|
#
|
|
|
|
#.include "../../mk/automake.mk"
|
2004-02-14 04:16:58 +01:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC}; for file in plugins/Makefile; do \
|
|
|
|
${SED} -e "s|^\(LIBTOOL =\).*|\1 \$$(SHLIBTOOL)|g" \
|
|
|
|
$$file > $$file.new; \
|
|
|
|
${MV} -f $$file.new $$file; \
|
|
|
|
done
|