openbsd-ports/databases/openldap/Makefile

120 lines
3.1 KiB
Makefile
Raw Normal View History

2006-10-28 07:19:20 -04:00
# $OpenBSD: Makefile,v 1.69 2006/10/28 11:19:20 espie Exp $
COMMENT= "Open source LDAP software (client)"
COMMENT-server= "Open source LDAP software (server)"
DISTNAME= openldap-2.3.27
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
CATEGORIES= databases net
HOMEPAGE= http://www.openldap.org/
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
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
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/ \
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/ \
ftp://mirror.aarnet.edu.au/pub/openldap/openldap-release/ \
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/ \
http://www.unibase.cz/ldapcz/Programy/Free/OpenLDAP/openldap-release/ \
ftp://ftp.ntua.gr/mirror/OpenLDAP/openldap-release/
EXTRACT_SUFX= .tgz
SEPARATE_BUILD= concurrent
2001-02-18 17:22:30 -05:00
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--localstatedir="/var" \
2004-10-18 02:44:18 -04:00
--enable-ipv6
# slapd options
CONFIGURE_ARGS+= --enable-slapd \
--enable-cleartext \
--enable-crypt \
2004-10-18 02:44:18 -04:00
--enable-rewrite \
--enable-wrappers \
--with-cyrus-sasl \
--enable-spasswd
# slapd modules
CONFIGURE_ARGS+= --enable-dnssrv \
--enable-ldap \
--enable-ldbm \
--enable-meta \
--enable-monitor \
--enable-null \
--enable-passwd \
--enable-perl \
--enable-shell
2004-10-18 02:44:18 -04:00
# slurpd modules
CONFIGURE_ARGS+= --enable-slurpd
2004-10-18 02:44:18 -04:00
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/build
REGRESS_TARGET= test
FLAVORS= bdb
FLAVOR?=
MULTI_PACKAGES= -server
SUBPACKAGE?=
LIB_DEPENDS+= sasl2::security/cyrus-sasl2
CPPFLAGS+= -I${LOCALBASE}/include/sasl
2004-02-17 02:22:17 -05:00
.if ${FLAVOR:L:Mbdb}
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
CPPFLAGS+= -I${LOCALBASE}/include/db4
LDFLAGS+= -L${LOCALBASE}/lib/db4
2004-02-17 02:22:17 -05:00
LIBS+= -ldb
.else
CONFIGURE_ARGS+= --disable-bdb --disable-hdb
.endif
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
LIBS="${LIBS}"
.if ${SUBPACKAGE} == "-server"
RUN_DEPENDS= openldap:${FULLPKGNAME}:databases/openldap
2005-01-27 18:43:02 -05:00
WANTLIB+= perl util wrap m pthread
.endif
USE_LIBTOOL= Yes
pre-build:
@cd ${WRKBUILD}; ${MAKE_PROGRAM} depend
pre-configure:
2004-02-16 20:23:03 -05:00
.if ${FLAVOR:L:Msasl}
perl -pi -e 's,KRB5_LIBS=,KRB5_LIBS="-lgssapi -lkrb5 -lasn1
-lcom_err",g' \
${WRKSRC}/configure
2004-02-16 20:23:03 -05:00
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openldap
${INSTALL_DATA} ${DESTDIR}${SYSCONFDIR}/openldap/*.conf \
${PREFIX}/share/examples/openldap
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openldap/schema
${INSTALL_DATA} ${DESTDIR}${SYSCONFDIR}/openldap/schema/*.schema \
${PREFIX}/share/examples/openldap/schema
@rm -r ${DESTDIR}${SYSCONFDIR}/openldap
.include <bsd.port.mk>