svn commit: r450713 - head/net/openldap24-server
Xin LI
delphij at FreeBSD.org
Wed Sep 27 05:40:10 UTC 2017
Author: delphij
Date: Wed Sep 27 05:40:09 2017
New Revision: 450713
URL: https://svnweb.freebsd.org/changeset/ports/450713
Log:
Add LASTBIND option.
PR: ports/222623
Submitted by: Trix Farrar <trix basement.net>
Modified:
head/net/openldap24-server/Makefile
head/net/openldap24-server/pkg-plist
Modified: head/net/openldap24-server/Makefile
==============================================================================
--- head/net/openldap24-server/Makefile Wed Sep 27 05:09:30 2017 (r450712)
+++ head/net/openldap24-server/Makefile Wed Sep 27 05:40:09 2017 (r450713)
@@ -56,7 +56,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLD
.endif
PORTREVISION_CLIENT= 0
-PORTREVISION_SERVER= 0
+PORTREVISION_SERVER= 1
OPENLDAP_SHLIB_MAJOR= 2
OPENLDAP_SHLIB_MINOR= 10.8
OPENLDAP_MAJOR= ${DISTVERSION:R}
@@ -75,6 +75,7 @@ OPTIONS_DEFINE+= REFINT RETCODE RWM SEQMOD SSSVLV SYNC
OPTIONS_DEFINE+= UNIQUE VALSORT SMBPWD SHA2 DYNAMIC_BACKENDS SASL
OPTIONS_DEFINE+= LMPASSWD
OPTIONS_DEFINE+= OUTLOOK
+OPTIONS_DEFINE+= LASTBIND
OPTIONS_DEFAULT= MDB SYNCPROV DYNAMIC_BACKENDS
@@ -119,6 +120,7 @@ SHA2_DESC= With SHA2 Password hashes overlay
LMPASSWD_DESC= With LM hash password support (DEPRECATED)
DYNAMIC_BACKENDS_DESC= Build dynamic backends
OUTLOOK_DESC= Force caseIgnoreOrderingMatch on name attribute (experimental)
+LASTBIND_DESC= With lastbind overlay
.endif
.if defined(CLIENT_ONLY)
@@ -351,6 +353,10 @@ CONFIGURE_ARGS+= --enable-aci
CONFIGURE_ARGS+= --enable-dynacl
.endif
+.if ${PORT_OPTIONS:MLASTBIND}
+CONFIGURE_ARGS+= --enable-lastbind
+.endif
+
.if !${PORT_OPTIONS:MBDB}
CONFIGURE_ARGS+= --disable-bdb \
--disable-hdb
@@ -449,6 +455,12 @@ PLIST_SUB+= SHA2=""
PLIST_SUB+= SHA2="@comment "
.endif
+.if ${PORT_OPTIONS:MLASTBIND}
+PLIST_SUB+= LASTBIND=""
+.else
+PLIST_SUB+= LASTBIND="@comment "
+.endif
+
.if ${PORT_OPTIONS:MRLOOKUPS}
CONFIGURE_ARGS+= --enable-rlookups
PLIST_SUB+= RLOOKUPS=""
@@ -552,7 +564,12 @@ post-build:
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} prefix="${PREFIX}" all)
.endif
+.if ${PORT_OPTIONS:MLASTBIND}
+ @(cd ${BUILD_WRKSRC}/contrib/slapd-modules/lastbind && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} prefix="${PREFIX}" all)
.endif
+.endif
pre-install:
.if !defined(CLIENT_ONLY)
@@ -587,6 +604,12 @@ post-install:
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} prefix="${PREFIX}" install)
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a
+.endif
+.if ${PORT_OPTIONS:MLASTBIND}
+ @(cd ${WRKSRC}/contrib/slapd-modules/lastbind && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} prefix="${PREFIX}" install)
+ ${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/lastbind.a
.endif
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/openldap/*.so
Modified: head/net/openldap24-server/pkg-plist
==============================================================================
--- head/net/openldap24-server/pkg-plist Wed Sep 27 05:09:30 2017 (r450712)
+++ head/net/openldap24-server/pkg-plist Wed Sep 27 05:40:09 2017 (r450713)
@@ -34,7 +34,7 @@
%%SLAPI%%lib/libslapi.a
%%SLAPI%%lib/libslapi.la
%%SLAPI%%lib/libslapi.so
-%%MODULES%%@exec mkdir -p %D/libexec/openldap
+%%MODULES%%@preexec mkdir -p %D/libexec/openldap
%%BACK_BDB%%libexec/openldap/back_bdb-%%OPENLDAP_MAJOR%%.so.%%SHLIB_MAJOR%%
%%BACK_BDB%%libexec/openldap/back_bdb-%%OPENLDAP_MAJOR%%.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
%%BACK_BDB%%libexec/openldap/back_bdb.la
@@ -99,6 +99,10 @@
%%SMBPWD%%libexec/openldap/smbk5pwd.so
%%SMBPWD%%libexec/openldap/smbk5pwd.so.0
%%SMBPWD%%libexec/openldap/smbk5pwd.so.0.0.0
+%%LASTBIND%%libexec/openldap/lastbind.la
+%%LASTBIND%%libexec/openldap/lastbind.so
+%%LASTBIND%%libexec/openldap/lastbind.so.0
+%%LASTBIND%%libexec/openldap/lastbind.so.0.0.0
libexec/slapd
man/man5/slapd-bdb.5.gz
man/man5/slapd-config.5.gz
More information about the svn-ports-all
mailing list