summaryrefslogtreecommitdiffstats
path: root/net/openldap22/Makefile
diff options
context:
space:
mode:
authormharo <mharo@FreeBSD.org>2000-04-02 03:27:54 +0000
committermharo <mharo@FreeBSD.org>2000-04-02 03:27:54 +0000
commit98f9647fe2691ea62a81cf0d00b5bd1b573d2281 (patch)
treeb3d43c5370e59ab349afa52a8cc1325b9ee53880 /net/openldap22/Makefile
parentf58993a90fcc074c0ea09afd5bf327294c71a975 (diff)
downloadFreeBSD-ports-98f9647fe2691ea62a81cf0d00b5bd1b573d2281.zip
FreeBSD-ports-98f9647fe2691ea62a81cf0d00b5bd1b573d2281.tar.gz
OpenLDAP to optionally build with BerkleyDB2 and tcp_wrappers
PR: 17136 Submitted by: yds@dppl.com
Diffstat (limited to 'net/openldap22/Makefile')
-rw-r--r--net/openldap22/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/openldap22/Makefile b/net/openldap22/Makefile
index fed582a..b1b97ce 100644
--- a/net/openldap22/Makefile
+++ b/net/openldap22/Makefile
@@ -21,8 +21,19 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ulmo@earthling.net
+.if defined(WITH_DB2)
+BUILD_DEPENDS= ${PREFIX}/lib/libdb2.a:${PORTSDIR}/databases/db/
+CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include/db2 -D_THREAD_SAFE" \
+ LDFLAGS=-L${PREFIX}/lib
+.endif
+
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX} --localstatedir=/var/run
+CONFIGURE_ARGS= --localstatedir=/var/run --enable-shared --enable-dns
+
+# Include tcp-wrapper support
+.if exists(/usr/include/tcpd.h)
+CONFIGURE_ARGS+= --enable-wrappers
+.endif
.include <bsd.port.pre.mk>
.include "${FILESDIR}/manpages"
OpenPOWER on IntegriCloud