2011-09-21 10:07:47 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.108 2011/09/21 14:07:47 pea Exp $
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2007-09-15 16:34:00 -04:00
|
|
|
COMMENT-main= Open source LDAP software (client)
|
|
|
|
COMMENT-server= Open source LDAP software (server)
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2011-09-21 10:07:47 -04:00
|
|
|
DISTNAME= openldap-2.4.26
|
2010-10-09 05:26:02 -04:00
|
|
|
PKGNAME-main= ${DISTNAME:S/-/-client-/}
|
|
|
|
PKGNAME-server= ${DISTNAME:S/-/-server-/}
|
2011-01-07 05:24:30 -05:00
|
|
|
|
2011-09-21 10:07:47 -04:00
|
|
|
SHARED_LIBS += lber 11.0 # .9.1
|
|
|
|
SHARED_LIBS += ldap 11.1 # .9.1
|
|
|
|
SHARED_LIBS += ldap_r 11.1 # .9.1
|
|
|
|
SHARED_LIBS += lber-2.4 11.0 # .9.1
|
|
|
|
SHARED_LIBS += ldap-2.4 11.1 # .9.1
|
|
|
|
SHARED_LIBS += ldap_r-2.4 11.1 # .9.1
|
2000-10-04 17:22:24 -04:00
|
|
|
CATEGORIES= databases net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.openldap.org/
|
|
|
|
|
2011-09-21 10:07:47 -04:00
|
|
|
# OpenLDAP Public License
|
2000-10-04 17:22:24 -04: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
|
|
|
|
|
|
|
WANTLIB += c crypto ssl asn1 com_err gssapi krb5 sasl2
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2011-05-20 04:08:04 -04: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 17:22:24 -04:00
|
|
|
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
2011-05-02 07:43:37 -04:00
|
|
|
AUTOCONF_VERSION= 2.65
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2011-01-07 05:24:30 -05:00
|
|
|
USE_GROFF= Yes
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2006-10-15 16:26:33 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2003-12-26 05:44:10 -05:00
|
|
|
--localstatedir="/var" \
|
2011-01-07 05:24:30 -05:00
|
|
|
--enable-ipv6 \
|
|
|
|
--with-tls=openssl
|
2004-10-18 02:44:18 -04:00
|
|
|
|
|
|
|
# slapd options
|
2006-10-15 16:26:33 -04: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
|
2011-01-07 05:24:30 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-bdb \
|
|
|
|
--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 \
|
2011-05-02 07:43:37 -04:00
|
|
|
--enable-overlays
|
2004-10-18 02:44:18 -04:00
|
|
|
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build
|
2001-09-26 20:32:36 -04:00
|
|
|
|
2003-12-26 05:44:10 -05:00
|
|
|
REGRESS_TARGET= test
|
|
|
|
|
2006-11-25 11:50:24 -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
|
2010-11-06 18:50:02 -04:00
|
|
|
WANTLIB += sasl2
|
|
|
|
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 \
|
2011-09-12 17:02:23 -04:00
|
|
|
databases/db/v4
|
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
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
RUN_DEPENDS-server= ${BASE_PKGPATH}
|
2011-01-07 05:24:30 -05:00
|
|
|
WANTLIB-server += ${WANTLIB} perl util wrap m pthread icudata icuuc
|
|
|
|
WANTLIB-server += stdc++ lib/db4/db>=4
|
2006-11-25 11:50:24 -05:00
|
|
|
|
2010-10-27 08:54:44 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2005-11-12 12:22:58 -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>
|