2006-10-28 07:19:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.69 2006/10/28 11:19:20 espie Exp $
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2001-09-28 13:56:09 -04:00
|
|
|
COMMENT= "Open source LDAP software (client)"
|
|
|
|
COMMENT-server= "Open source LDAP software (server)"
|
2000-10-04 17:22:24 -04:00
|
|
|
|
2006-10-04 15:13:16 -04:00
|
|
|
DISTNAME= openldap-2.3.27
|
2006-06-19 04:22:35 -04:00
|
|
|
FULLPKGNAME= ${DISTNAME:S/-/-client-/}
|
|
|
|
PKGNAME-server= ${DISTNAME:S/-/-server-/}
|
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
|
2005-01-27 18:43:02 -05:00
|
|
|
WANTLIB= c crypto ssl
|
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?=
|
|
|
|
|
2001-09-28 13:56:09 -04:00
|
|
|
MULTI_PACKAGES= -server
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
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}
|
2005-11-07 10:59:08 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
|
2005-09-26 01:55:03 -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}"
|
|
|
|
|
2001-09-28 13:56:09 -04:00
|
|
|
.if ${SUBPACKAGE} == "-server"
|
2005-11-07 10:59:08 -05:00
|
|
|
RUN_DEPENDS= openldap:${FULLPKGNAME}:databases/openldap
|
2005-01-27 18:43:02 -05:00
|
|
|
WANTLIB+= perl util wrap m pthread
|
2001-09-28 13:56:09 -04:00
|
|
|
.endif
|
|
|
|
|
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:
|
2004-02-16 20:23:03 -05:00
|
|
|
.if ${FLAVOR:L:Msasl}
|
2006-10-15 16:26:33 -04:00
|
|
|
perl -pi -e 's,KRB5_LIBS=,KRB5_LIBS="-lgssapi -lkrb5 -lasn1
|
|
|
|
-lcom_err",g' \
|
2005-11-07 10:59:08 -05:00
|
|
|
${WRKSRC}/configure
|
2004-02-16 20:23:03 -05:00
|
|
|
.endif
|
|
|
|
|
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
|
2006-10-04 15:13:16 -04:00
|
|
|
@rm -r ${DESTDIR}${SYSCONFDIR}/openldap
|
2000-10-04 17:22:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|