2008-02-15 07:34:20 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.83 2008/02/15 12:34:20 sthen 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
|
|
|
|
2008-01-09 06:06:08 -05:00
|
|
|
DISTNAME= openldap-2.3.39
|
|
|
|
FULLPKGNAME-main= ${DISTNAME:S/-/-client-/}
|
2008-02-13 04:45:54 -05:00
|
|
|
PKGNAME-server= ${DISTNAME:S/-/-server-/}p0
|
2007-01-13 08:37:33 -05:00
|
|
|
|
2006-10-28 07:19:20 -04:00
|
|
|
SHARED_LIBS += lber 9.1 # .2.15
|
|
|
|
SHARED_LIBS += ldap 9.1 # .2.15
|
|
|
|
SHARED_LIBS += ldap_r 9.1 # .2.15
|
|
|
|
SHARED_LIBS += lber-2.3 9.1 # .2.15
|
|
|
|
SHARED_LIBS += ldap-2.3 9.1 # .2.15
|
|
|
|
SHARED_LIBS += ldap_r-2.3 9.1 # .2.15
|
2000-10-04 17:22:24 -04:00
|
|
|
CATEGORIES= databases net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.openldap.org/
|
|
|
|
|
2005-11-07 10:59:08 -05:00
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2006-10-29 05:37:59 -05:00
|
|
|
WANTLIB= c crypto ssl asn1 com_err gssapi krb5
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
|
2006-04-08 16:28:36 -04:00
|
|
|
ftp://mirror.aarnet.edu.au/pub/openldap/openldap-release/ \
|
2000-10-04 17:22:24 -04:00
|
|
|
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/ \
|
|
|
|
http://www.unibase.cz/ldapcz/Programy/Free/OpenLDAP/openldap-release/ \
|
2006-04-08 16:28:36 -04:00
|
|
|
ftp://ftp.ntua.gr/mirror/OpenLDAP/openldap-release/
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
2001-02-18 17:22:30 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
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" \
|
2004-10-18 02:44:18 -04:00
|
|
|
--enable-ipv6
|
|
|
|
|
|
|
|
# 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
|
2006-10-15 16:26:33 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-dnssrv \
|
2000-10-04 17:22:24 -04:00
|
|
|
--enable-ldap \
|
2003-12-26 05:44:10 -05:00
|
|
|
--enable-ldbm \
|
|
|
|
--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 \
|
|
|
|
--enable-shell
|
2002-01-16 04:03:33 -05:00
|
|
|
|
2004-10-18 02:44:18 -04:00
|
|
|
# slurpd modules
|
2006-10-15 16:26:33 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-slurpd
|
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
|
|
|
|
|
2005-11-07 10:59:08 -05:00
|
|
|
FLAVORS= bdb
|
2000-10-04 17:22:24 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2006-11-25 11:50:24 -05:00
|
|
|
MULTI_PACKAGES= -main -server
|
2001-09-28 13:56:09 -04:00
|
|
|
|
2003-12-26 05:44:10 -05:00
|
|
|
LIB_DEPENDS+= sasl2::security/cyrus-sasl2
|
2002-09-13 19:06:06 -04:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/sasl
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2004-02-17 02:22:17 -05:00
|
|
|
.if ${FLAVOR:L:Mbdb}
|
2008-02-15 07:34:20 -05:00
|
|
|
BROKEN= OpenLDAP 2.3 is incompatible with Berkeley DB 4.6
|
2005-11-07 10:59:08 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
|
2007-10-25 17:05:33 -04:00
|
|
|
LIB_DEPENDS+= lib/db4/db.>=4:db-4.*:databases/db/v4
|
2003-12-26 05:44:10 -05:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/db4
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/db4
|
2004-02-17 02:22:17 -05:00
|
|
|
LIBS+= -ldb
|
2003-12-26 05:44:10 -05:00
|
|
|
.else
|
2005-11-07 10:59:08 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-bdb --disable-hdb
|
2002-09-13 19:06:06 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
|
2005-11-07 10:59:08 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
|
2002-09-13 19:06:06 -04:00
|
|
|
LIBS="${LIBS}"
|
|
|
|
|
2006-11-25 11:50:24 -05:00
|
|
|
RUN_DEPENDS-server= :${FULLPKGNAME-main}:databases/openldap
|
|
|
|
WANTLIB-server= ${WANTLIB} perl util wrap m pthread
|
|
|
|
|
2005-11-12 12:22:58 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
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
|
|
|
|
2006-02-07 23:54:48 -05:00
|
|
|
pre-configure:
|
2006-10-29 05:37:59 -05:00
|
|
|
perl -pi -e 's,KRB5_LIBS=,KRB5_LIBS="-lgssapi -lkrb5 -lasn1 \
|
|
|
|
-lcom_err",g' ${WRKSRC}/configure
|
2007-02-14 05:17:26 -05:00
|
|
|
.if ${FLAVOR} != "bdb"
|
|
|
|
perl -pi -e 's,database bdb,database ldbm,' \
|
|
|
|
${WRKSRC}/servers/slapd/slapd.conf
|
|
|
|
.endif
|
2004-02-16 20:23:03 -05:00
|
|
|
|
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
|
2006-10-04 15:13:16 -04:00
|
|
|
@rm -r ${DESTDIR}${SYSCONFDIR}/openldap
|
2007-01-23 07:57:32 -05:00
|
|
|
@rm -r ${DESTDIR}/var/openldap-data ${DESTDIR}/var/openldap-slurp
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|