2012-12-07 07:19:27 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.119 2012/12/07 12:19:27 sthen Exp $
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
COMMENT-main = open-source LDAP software (client)
|
|
|
|
COMMENT-server = open-source LDAP software (server)
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
DISTNAME = openldap-2.4.31
|
|
|
|
PKGNAME-main = ${DISTNAME:S/-/-client-/}
|
|
|
|
PKGNAME-server = ${DISTNAME:S/-/-server-/}
|
2011-01-07 05:24:30 -05:00
|
|
|
|
2012-10-20 04:36:13 -04:00
|
|
|
# overwrite -main pkgname/path to strip FLAVOR, aci only affects the server
|
2012-12-07 07:11:28 -05:00
|
|
|
FULLPKGNAME-main = ${DISTNAME:S/-/-client-/}
|
|
|
|
FULLPKGPATH-main = databases/openldap,-main
|
2012-10-20 04:36:13 -04:00
|
|
|
|
2012-12-07 07:19:27 -05:00
|
|
|
REVISION-server = 2
|
2012-12-07 07:11:28 -05:00
|
|
|
REVISION-main = 0
|
2011-10-29 07:54:04 -04:00
|
|
|
|
2012-03-09 04:48:32 -05:00
|
|
|
SHARED_LIBS += lber 12.0 # .10.1
|
|
|
|
SHARED_LIBS += ldap 12.0 # .10.1
|
|
|
|
SHARED_LIBS += ldap_r 12.0 # .10.1
|
|
|
|
SHARED_LIBS += lber-2.4 12.0 # .10.1
|
|
|
|
SHARED_LIBS += ldap-2.4 12.0 # .10.1
|
|
|
|
SHARED_LIBS += ldap_r-2.4 12.0 # .10.1
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
CATEGORIES = databases net
|
|
|
|
|
|
|
|
HOMEPAGE = http://www.openldap.org/
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2011-09-21 10:07:47 -04:00
|
|
|
# OpenLDAP Public License
|
2012-12-07 07:11:28 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2011-01-07 05:24:30 -05:00
|
|
|
|
2012-05-05 10:41:30 -04:00
|
|
|
WANTLIB += c crypto ssl asn1 com_err gssapi krb5 sasl2
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
MASTER_SITES = http://mirror.switch.ch/ftp/mirror/OpenLDAP/openldap-release/ \
|
2011-05-20 04:08:04 -04:00
|
|
|
http://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/ \
|
|
|
|
http://mirror.aarnet.edu.au/pub/openldap/openldap-release/ \
|
|
|
|
ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ \
|
|
|
|
http://ftp.ntua.gr/mirror/OpenLDAP/openldap-release/
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
EXTRACT_SUFX = .tgz
|
|
|
|
|
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
AUTOCONF_VERSION = 2.65
|
|
|
|
CONFIGURE_STYLE = autoconf
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
USE_LIBTOOL = Yes
|
|
|
|
USE_GROFF = Yes
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
FLAVOR ?=
|
|
|
|
FLAVORS = aci
|
2012-10-20 04:36:13 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
|
2011-01-07 05:24:30 -05:00
|
|
|
--enable-ipv6 \
|
|
|
|
--with-tls=openssl
|
2004-10-18 02:44:18 -04:00
|
|
|
|
|
|
|
# slapd options
|
2012-12-07 07:11:28 -05:00
|
|
|
CONFIGURE_ARGS += --enable-slapd \
|
2000-10-04 17:22:24 -04:00
|
|
|
--enable-cleartext \
|
|
|
|
--enable-crypt \
|
2004-10-18 02:44:18 -04:00
|
|
|
--enable-rewrite \
|
2005-11-07 10:59:08 -05:00
|
|
|
--enable-wrappers \
|
2005-11-12 12:22:58 -05:00
|
|
|
--with-cyrus-sasl \
|
2005-11-07 10:59:08 -05:00
|
|
|
--enable-spasswd
|
2003-12-26 05:44:10 -05:00
|
|
|
|
|
|
|
# slapd modules
|
2012-12-07 07:11:28 -05:00
|
|
|
CONFIGURE_ARGS += --enable-bdb \
|
2011-01-07 05:24:30 -05:00
|
|
|
--enable-dnssrv \
|
|
|
|
--enable-hdb \
|
2000-10-04 17:22:24 -04:00
|
|
|
--enable-ldap \
|
2003-12-26 05:44:10 -05:00
|
|
|
--enable-meta \
|
|
|
|
--enable-monitor \
|
|
|
|
--enable-null \
|
2002-06-09 17:18:53 -04:00
|
|
|
--enable-passwd \
|
2003-12-26 05:44:10 -05:00
|
|
|
--enable-perl \
|
2011-01-07 05:24:30 -05:00
|
|
|
--enable-shell \
|
2012-03-09 04:48:32 -05:00
|
|
|
--enable-overlays \
|
|
|
|
--disable-mdb
|
2004-10-18 02:44:18 -04:00
|
|
|
|
2012-10-20 04:36:13 -04:00
|
|
|
.if ${FLAVOR:Maci}
|
2012-12-07 07:11:28 -05:00
|
|
|
CONFIGURE_ARGS += --enable-aci
|
2012-10-20 04:36:13 -04:00
|
|
|
.endif
|
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC} ${WRKSRC}/build
|
2001-09-26 20:32:36 -04:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
REGRESS_TARGET = test
|
2003-12-26 05:44:10 -05:00
|
|
|
|
2012-12-07 07:11:28 -05:00
|
|
|
MULTI_PACKAGES = -main -server
|
2001-09-28 13:56:09 -04:00
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS += security/cyrus-sasl2
|
2012-10-20 04:36:13 -04:00
|
|
|
WANTLIB += pthread sasl2
|
2010-11-06 18:50:02 -04:00
|
|
|
CPPFLAGS += -I${LOCALBASE}/include/sasl
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2011-01-07 05:24:30 -05:00
|
|
|
LIB_DEPENDS-server = ${LIB_DEPENDS-main} \
|
|
|
|
textproc/icu4c \
|
2012-01-29 08:46:18 -05:00
|
|
|
databases/db/v4,no_java,no_tcl
|
2012-05-05 10:41:30 -04:00
|
|
|
|
2011-01-07 05:24:30 -05:00
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include/sasl -I${LOCALBASE}/include/db4 -I${LOCALBASE}/include" \
|
2011-09-21 10:07:47 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib/db4 -L${LOCALBASE}/lib"
|
2002-09-13 19:06:06 -04:00
|
|
|
|
2012-12-07 07:19:27 -05:00
|
|
|
RUN_DEPENDS-server = databases/openldap,-main
|
2012-10-20 04:36:13 -04:00
|
|
|
WANTLIB-server += ${WANTLIB} perl util wrap m icudata icuuc
|
2012-05-05 10:41:30 -04:00
|
|
|
WANTLIB-server += stdc++ lib/db4/db>=4
|
2006-11-25 11:50:24 -05:00
|
|
|
|
2000-10-04 17:22:24 -04:00
|
|
|
pre-build:
|
2001-03-12 10:13:14 -05:00
|
|
|
@cd ${WRKBUILD}; ${MAKE_PROGRAM} depend
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openldap
|
2003-05-11 14:46:33 -04:00
|
|
|
${INSTALL_DATA} ${DESTDIR}${SYSCONFDIR}/openldap/*.conf \
|
2000-10-04 17:22:24 -04:00
|
|
|
${PREFIX}/share/examples/openldap
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openldap/schema
|
2003-05-11 14:46:33 -04:00
|
|
|
${INSTALL_DATA} ${DESTDIR}${SYSCONFDIR}/openldap/schema/*.schema \
|
2000-10-04 17:22:24 -04:00
|
|
|
${PREFIX}/share/examples/openldap/schema
|
2007-01-23 07:57:32 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/servers/slapd/DB_CONFIG \
|
|
|
|
${PREFIX}/share/examples/openldap
|
2011-01-07 05:24:30 -05:00
|
|
|
@rm -rf ${DESTDIR}${SYSCONFDIR}/openldap
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|