summaryrefslogtreecommitdiff
path: root/net/openldap20-server
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-05-02 10:14:50 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-05-02 10:14:50 +0000
commit960b47687c497a9cf522e49edf293fbd6ed01c63 (patch)
treede7114d0381998b2e271ef211ed4d2135ea33ddf /net/openldap20-server
parentFix plist. (diff)
Make sure that the conditional check on libdb4 actually happens.
Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Notes
Notes: svn path=/head/; revision=80008
Diffstat (limited to 'net/openldap20-server')
-rw-r--r--net/openldap20-server/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/openldap20-server/Makefile b/net/openldap20-server/Makefile
index b837fa924728..e6950a3f242e 100644
--- a/net/openldap20-server/Makefile
+++ b/net/openldap20-server/Makefile
@@ -30,14 +30,6 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Open source LDAP client and server software
-.if exists(${LOCALBASE}/lib/libdb4.so)
-DB_CFLAGS= -I${LOCALBASE}/include/db4
-LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
-.else
-DB_CFLAGS= -I${LOCALBASE}/include/db3
-LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
-.endif
-
USE_AUTOCONF_VER=213
USE_LIBTOOL= yes
USE_OPENSSL= yes
@@ -98,6 +90,14 @@ BINS= bin/ldapadd \
.include <bsd.port.pre.mk>
.include "${FILESDIR}/manpages"
+.if exists(${LOCALBASE}/lib/libdb4.so)
+DB_CFLAGS= -I${LOCALBASE}/include/db4
+LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4
+.else
+DB_CFLAGS= -I${LOCALBASE}/include/db3
+LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's@%LOCALSTATEDIR%/slapd[.]pid@/var/run/slapd.pid@g; \
s@%LOCALSTATEDIR%/slapd[.]args@/var/run/slapd.args@g' ${WRKSRC}/servers/slapd/slapd.conf