2012-05-09 09:37:21 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.115 2012/05/09 09:37:21 pea Exp $
|
2000-10-04 21:22:24 +00:00
|
|
|
|
2007-09-15 20:34:00 +00:00
|
|
|
COMMENT-main= Open source LDAP software (client)
|
|
|
|
COMMENT-server= Open source LDAP software (server)
|
2000-10-04 21:22:24 +00:00
|
|
|
|
2012-05-09 09:37:21 +00:00
|
|
|
DISTNAME= openldap-2.4.31
|
2010-10-09 09:26:02 +00:00
|
|
|
PKGNAME-main= ${DISTNAME:S/-/-client-/}
|
|
|
|
PKGNAME-server= ${DISTNAME:S/-/-server-/}
|
2011-01-07 10:24:30 +00:00
|
|
|
|
2011-10-29 11:54:04 +00:00
|
|
|
|
2012-03-09 09:48:32 +00: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 21:22:24 +00:00
|
|
|
CATEGORIES= databases net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.openldap.org/
|
|
|
|
|
2011-09-21 14:07:47 +00:00
|
|
|
# OpenLDAP Public License
|
2000-10-04 21:22:24 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2012-05-05 14:41:30 +00:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2000-10-04 21:22:24 +00:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2011-01-07 10:24:30 +00:00
|
|
|
|
2012-05-05 14:41:30 +00:00
|
|
|
WANTLIB += c crypto ssl asn1 com_err gssapi krb5 sasl2
|
2000-10-04 21:22:24 +00:00
|
|
|
|
2011-05-20 08:08:04 +00:00
|
|
|
MASTER_SITES= http://mirror.switch.ch/ftp/mirror/OpenLDAP/openldap-release/ \
|
|
|
|
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 21:22:24 +00:00
|
|
|
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2012-03-29 13:38:12 +00:00
|
|
|
SEPARATE_BUILD= Yes
|
2011-05-02 11:43:37 +00:00
|
|
|
AUTOCONF_VERSION= 2.65
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2011-01-07 10:24:30 +00:00
|
|
|
USE_GROFF= Yes
|
2000-10-04 21:22:24 +00:00
|
|
|
|
2006-10-15 20:26:33 +00:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2011-01-07 10:24:30 +00:00
|
|
|
--enable-ipv6 \
|
|
|
|
--with-tls=openssl
|
2004-10-18 06:44:18 +00:00
|
|
|
|
|
|
|
# slapd options
|
2006-10-15 20:26:33 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-slapd \
|
2000-10-04 21:22:24 +00:00
|
|
|
--enable-cleartext \
|
|
|
|
--enable-crypt \
|
2004-10-18 06:44:18 +00:00
|
|
|
--enable-rewrite \
|
2005-11-07 15:59:08 +00:00
|
|
|
--enable-wrappers \
|
2005-11-12 17:22:58 +00:00
|
|
|
--with-cyrus-sasl \
|
2005-11-07 15:59:08 +00:00
|
|
|
--enable-spasswd
|
2003-12-26 10:44:10 +00:00
|
|
|
|
|
|
|
# slapd modules
|
2011-01-07 10:24:30 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-bdb \
|
|
|
|
--enable-dnssrv \
|
|
|
|
--enable-hdb \
|
2000-10-04 21:22:24 +00:00
|
|
|
--enable-ldap \
|
2003-12-26 10:44:10 +00:00
|
|
|
--enable-meta \
|
|
|
|
--enable-monitor \
|
|
|
|
--enable-null \
|
2002-06-09 21:18:53 +00:00
|
|
|
--enable-passwd \
|
2003-12-26 10:44:10 +00:00
|
|
|
--enable-perl \
|
2011-01-07 10:24:30 +00:00
|
|
|
--enable-shell \
|
2012-03-09 09:48:32 +00:00
|
|
|
--enable-overlays \
|
|
|
|
--disable-mdb
|
2004-10-18 06:44:18 +00:00
|
|
|
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build
|
2001-09-27 00:32:36 +00:00
|
|
|
|
2003-12-26 10:44:10 +00:00
|
|
|
REGRESS_TARGET= test
|
|
|
|
|
2006-11-25 16:50:24 +00:00
|
|
|
MULTI_PACKAGES= -main -server
|
2001-09-28 17:56:09 +00:00
|
|
|
|
2010-11-15 00:22:45 +00:00
|
|
|
LIB_DEPENDS += security/cyrus-sasl2
|
2010-11-06 22:50:02 +00:00
|
|
|
WANTLIB += sasl2
|
|
|
|
CPPFLAGS += -I${LOCALBASE}/include/sasl
|
2000-10-04 21:22:24 +00:00
|
|
|
|
2011-01-07 10:24:30 +00:00
|
|
|
LIB_DEPENDS-server = ${LIB_DEPENDS-main} \
|
|
|
|
textproc/icu4c \
|
2012-01-29 13:46:18 +00:00
|
|
|
databases/db/v4,no_java,no_tcl
|
2012-05-05 14:41:30 +00:00
|
|
|
|
2011-01-07 10:24:30 +00:00
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include/sasl -I${LOCALBASE}/include/db4 -I${LOCALBASE}/include" \
|
2011-09-21 14:07:47 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib/db4 -L${LOCALBASE}/lib"
|
2002-09-13 23:06:06 +00:00
|
|
|
|
2010-11-15 00:22:45 +00:00
|
|
|
RUN_DEPENDS-server= ${BASE_PKGPATH}
|
2012-05-05 14:41:30 +00:00
|
|
|
WANTLIB-server += ${WANTLIB} perl util wrap m pthread icudata icuuc
|
|
|
|
WANTLIB-server += stdc++ lib/db4/db>=4
|
2006-11-25 16:50:24 +00:00
|
|
|
|
2010-10-27 12:54:44 +00:00
|
|
|
USE_LIBTOOL= Yes
|
2005-11-12 17:22:58 +00:00
|
|
|
|
2000-10-04 21:22:24 +00:00
|
|
|
pre-build:
|
2001-03-12 15:13:14 +00:00
|
|
|
@cd ${WRKBUILD}; ${MAKE_PROGRAM} depend
|
2000-10-04 21:22:24 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openldap
|
2003-05-11 18:46:33 +00:00
|
|
|
${INSTALL_DATA} ${DESTDIR}${SYSCONFDIR}/openldap/*.conf \
|
2000-10-04 21:22:24 +00:00
|
|
|
${PREFIX}/share/examples/openldap
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openldap/schema
|
2003-05-11 18:46:33 +00:00
|
|
|
${INSTALL_DATA} ${DESTDIR}${SYSCONFDIR}/openldap/schema/*.schema \
|
2000-10-04 21:22:24 +00:00
|
|
|
${PREFIX}/share/examples/openldap/schema
|
2007-01-23 12:57:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/servers/slapd/DB_CONFIG \
|
|
|
|
${PREFIX}/share/examples/openldap
|
2011-01-07 10:24:30 +00:00
|
|
|
@rm -rf ${DESTDIR}${SYSCONFDIR}/openldap
|
2000-10-04 21:22:24 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|