aboutsummaryrefslogtreecommitdiffstats
path: root/security/cyrus-sasl2-ldapdb
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2016-02-27 13:15:57 +0800
committerume <ume@FreeBSD.org>2016-02-27 13:15:57 +0800
commitf9d762c323aab457410cc10ced0ddd64a9706361 (patch)
treeb35e92edcec92b58617ae55bb043d37546925c16 /security/cyrus-sasl2-ldapdb
parenta26f953c76fe5c4c13b665cb886231e118df97f0 (diff)
downloadfreebsd-ports-gnome-f9d762c323aab457410cc10ced0ddd64a9706361.tar.gz
freebsd-ports-gnome-f9d762c323aab457410cc10ced0ddd64a9706361.tar.zst
freebsd-ports-gnome-f9d762c323aab457410cc10ced0ddd64a9706361.zip
Move the common part of the cyrus-sasl2 separated ports into
Makefile.common, to make further maintenance easier.
Diffstat (limited to 'security/cyrus-sasl2-ldapdb')
-rw-r--r--security/cyrus-sasl2-ldapdb/Makefile58
1 files changed, 3 insertions, 55 deletions
diff --git a/security/cyrus-sasl2-ldapdb/Makefile b/security/cyrus-sasl2-ldapdb/Makefile
index 6111aa8c1f05..366ab31d896b 100644
--- a/security/cyrus-sasl2-ldapdb/Makefile
+++ b/security/cyrus-sasl2-ldapdb/Makefile
@@ -1,72 +1,20 @@
# $FreeBSD$
-PORTNAME= ldapdb
-PORTVERSION= 2.1.26
+PKGNAMESUFFIX= -ldapdb
PORTREVISION= 5
-CATEGORIES= security ipv6
-MASTER_SITES= ftp://ftp.cyrusimap.org/cyrus-sasl/ \
- http://cyrusimap.org/releases/
-PKGNAMEPREFIX= cyrus-sasl-
-DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
-MAINTAINER= ume@FreeBSD.org
COMMENT= SASL LDAPDB auxprop plugin
-LICENSE= BSD4CLAUSE
-LICENSE_FILE= ${WRKSRC}/COPYING
-
-LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
-
-CYRUS_SASL2_DIR=${MASTERDIR}/../cyrus-sasl2
-DISTINFO_FILE= ${CYRUS_SASL2_DIR}/distinfo
-PATCHDIR= ${CYRUS_SASL2_DIR}/files
-INSTALL_WRKSRC= ${WRKSRC}/plugins
-
-USES= libtool
-USE_LDCONFIG= yes
-USE_OPENSSL= yes
-GNU_CONFIGURE= yes
-
+USE_OPENLDAP= yes
.if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
.endif
-USE_OPENLDAP= yes
-CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
- --with-plugindir=${PREFIX}/lib/sasl2 \
- --with-dbpath=${PREFIX}/etc/sasldb2 \
- --with-lib-subdir=lib \
- --includedir=${PREFIX}/include \
- --enable-static \
- --with-rc4=openssl
-CONFIGURE_ARGS+=--with-dblib=none \
- --disable-anon \
- --disable-cram \
- --disable-digest \
- --disable-gssapi \
- --disable-krb4 \
- --disable-ntlm \
- --disable-otp \
- --disable-plain \
- --disable-scram
CONFIGURE_ARGS+=--enable-ldapdb --with-ldap=${LOCALBASE}
-MAKE_ENV+= INSTALL_STRIP_FLAG=${STRIP}
PLIST_FILES= lib/sasl2/libldapdb.a \
lib/sasl2/libldapdb.so \
lib/sasl2/libldapdb.so.3 \
lib/sasl2/libldapdb.so.3.0.0
-.include <bsd.port.pre.mk>
-
-.if ${OPENSSLBASE} == /usr
-CONFIGURE_ARGS+=--with-openssl=yes
-.else
-CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
-.endif
-
-do-build:
- cd ${WRKSRC}/include && ${MAKE}
- cd ${WRKSRC}/plugins && ${MAKE}
-
-.include <bsd.port.post.mk>
+.include "${.CURDIR}/../../security/cyrus-sasl2/Makefile.common"