2005-05-17 18:44:39 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldapdb
|
2012-12-10 16:10:02 +01:00
|
|
|
PORTVERSION= 2.1.26
|
2009-05-15 03:17:58 +02:00
|
|
|
#PORTREVISION= 0
|
2005-05-17 18:44:39 +02:00
|
|
|
CATEGORIES= security ipv6
|
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/ \
|
|
|
|
ftp://ftp.westbend.net/pub/cyrus-mail/%SUBDIR%/ \
|
2006-10-07 12:26:49 +02:00
|
|
|
http://www.transit.hanse.de/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/%SUBDIR%/
|
2005-05-17 18:44:39 +02:00
|
|
|
MASTER_SITE_SUBDIR= . OLD-VERSIONS/sasl
|
|
|
|
PKGNAMEPREFIX= cyrus-sasl-
|
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
|
|
|
COMMENT= SASL LDAPDB auxprop plugin
|
|
|
|
|
2011-09-24 11:13:35 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2012-12-10 16:10:02 +01:00
|
|
|
LIB_DEPENDS= sasl2:${PORTSDIR}/security/cyrus-sasl2
|
2005-05-17 18:44:39 +02:00
|
|
|
|
|
|
|
CYRUS_SASL2_DIR=${MASTERDIR}/../cyrus-sasl2
|
2010-10-28 23:00:21 +02:00
|
|
|
DISTINFO_FILE= ${CYRUS_SASL2_DIR}/distinfo
|
2005-05-17 18:44:39 +02:00
|
|
|
PATCHDIR= ${CYRUS_SASL2_DIR}/files
|
2011-09-24 11:13:35 +02:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/plugins
|
2005-05-17 18:44:39 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-05-17 18:44:39 +02:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2005-05-17 18:44:39 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
GNU_CONFIGURE= 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 \
|
|
|
|
--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 \
|
2011-09-24 11:13:35 +02:00
|
|
|
--disable-plain \
|
|
|
|
--disable-scram
|
2005-05-17 18:44:39 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-ldapdb --with-ldap=${LOCALBASE}
|
|
|
|
|
|
|
|
PLIST_FILES= lib/sasl2/libldapdb.a \
|
2007-02-04 01:12:31 +01:00
|
|
|
lib/sasl2/libldapdb.la \
|
2005-05-17 18:44:39 +02:00
|
|
|
lib/sasl2/libldapdb.so \
|
2012-12-10 16:10:02 +01:00
|
|
|
lib/sasl2/libldapdb.so.3
|
2005-05-17 18:44:39 +02:00
|
|
|
|
|
|
|
.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>
|