diff options
author | Xin LI <delphij@FreeBSD.org> | 2013-05-29 23:42:40 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2013-05-29 23:42:40 +0000 |
commit | 6c1ac22bdfb01a0895d564b0570e16a00ac3cb39 (patch) | |
tree | 1b514c421477748c92fd9242ef442fcf6adf905f /net | |
parent | - update to 2.0.14 (diff) |
Add an option to build SHA2 modules.
PR: ports/178268
Submitted by: Mike Carlson <mike bayphoto com>
Notes
Notes:
svn path=/head/; revision=319397
Diffstat (limited to 'net')
-rw-r--r-- | net/openldap24-server/Makefile | 23 | ||||
-rw-r--r-- | net/openldap24-server/pkg-plist | 3 |
2 files changed, 24 insertions, 2 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile index 562f4b763392..0107aeb4debe 100644 --- a/net/openldap24-server/Makefile +++ b/net/openldap24-server/Makefile @@ -69,7 +69,7 @@ OPTIONS_DEFINE+= SOCK ODBC RLOOKUPS SLP SLAPI TCP_WRAPPERS OPTIONS_DEFINE+= ACCESSLOG AUDITLOG COLLECT CONSTRAINT DDS OPTIONS_DEFINE+= DEREF DYNGROUP DYNLIST MEMBEROF PPOLICY PROXYCACHE OPTIONS_DEFINE+= REFINT RETCODE RWM SEQMOD SSSVLV SYNCPROV TRANSLUCENT -OPTIONS_DEFINE+= UNIQUE VALSORT SMBPWD DYNAMIC_BACKENDS SASL +OPTIONS_DEFINE+= UNIQUE VALSORT SMBPWD SHA2 DYNAMIC_BACKENDS SASL OPTIONS_DEFAULT= BDB TCP_WRAPPERS SEQMOD SYNCPROV DYNAMIC_BACKENDS @@ -110,6 +110,7 @@ TRANSLUCENT_DESC= With Translucent Proxy overlay UNIQUE_DESC= With attribute Uniqueness overlay VALSORT_DESC= With Value Sorting overlay SMBPWD_DESC= With Samba Password hashes overlay +SHA2_DESC= With SHA2 Password hashes overlay DYNAMIC_BACKENDS_DESC= Build dynamic backends .endif @@ -440,6 +441,12 @@ PLIST_SUB+= SMBPWD="" PLIST_SUB+= SMBPWD="@comment " .endif +.if ${PORT_OPTIONS:MSHA2} +PLIST_SUB+= SHA2="" +.else +PLIST_SUB+= SHA2="@comment " +.endif + .if ${PORT_OPTIONS:MRLOOKUPS} CONFIGURE_ARGS+= --enable-rlookups PLIST_SUB+= RLOOKUPS="" @@ -510,11 +517,16 @@ test: build @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \ ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test -.if ${PORT_OPTIONS:MSMBPWD} post-build: + @${DO_NADA} +.if ${PORT_OPTIONS:MSMBPWD} @cd ${BUILD_WRKSRC}/contrib/slapd-modules/smbk5pwd; ${SETENV} ${MAKE_ENV} \ ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} DEFS="-DDO_SAMBA" all .endif +.if ${PORT_OPTIONS:MSHA2} + @cd ${BUILD_WRKSRC}/contrib/slapd-modules/passwd/sha2; ${SETENV} ${MAKE_ENV} \ + ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} all +.endif .endif pre-su-install: @@ -553,6 +565,13 @@ post-install: ${PREFIX}/libexec/openldap/ @${LN} -s smbk5pwd.so.0 ${PREFIX}/libexec/openldap/smbk5pwd.so .endif +.if ${PORT_OPTIONS:MSHA2} + @${INSTALL_DATA} ${WRKSRC}/contrib/slapd-modules/passwd/sha2/pw-sha2.la \ + ${PREFIX}/libexec/openldap/ + @${INSTALL_PROGRAM} ${WRKSRC}/contrib/slapd-modules/passwd/sha2/.libs/pw-sha2.so.0 \ + ${PREFIX}/libexec/openldap/ + @${LN} -s pw-sha2.so.0 ${PREFIX}/libexec/openldap/pw-sha2.so +.endif .endif @${CAT} ${PKGMESSAGE} diff --git a/net/openldap24-server/pkg-plist b/net/openldap24-server/pkg-plist index 6286cea22758..dc6a28bd8959 100644 --- a/net/openldap24-server/pkg-plist +++ b/net/openldap24-server/pkg-plist @@ -82,6 +82,9 @@ etc/openldap/DB_CONFIG.example %%BACK_SQL%%libexec/openldap/back_sql-2.4.so.%%SHLIB_MAJOR%% %%BACK_SQL%%libexec/openldap/back_sql.la %%BACK_SQL%%libexec/openldap/back_sql.so +%%SHA2%%libexec/openldap/pw-sha2.la +%%SHA2%%libexec/openldap/pw-sha2.so +%%SHA2%%libexec/openldap/pw-sha2.so.0 %%SMBPWD%%libexec/openldap/smbk5pwd.la %%SMBPWD%%libexec/openldap/smbk5pwd.so %%SMBPWD%%libexec/openldap/smbk5pwd.so.0 |