diff options
-rw-r--r-- | net/openldap20-server/Makefile | 16 | ||||
-rw-r--r-- | net/openldap20/Makefile | 16 |
2 files changed, 16 insertions, 16 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 diff --git a/net/openldap20/Makefile b/net/openldap20/Makefile index b837fa924728..e6950a3f242e 100644 --- a/net/openldap20/Makefile +++ b/net/openldap20/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 |