From owner-svn-ports-head@FreeBSD.ORG Wed May 29 23:42:41 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 483B09E6; Wed, 29 May 2013 23:42:41 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 3A3A8F0A; Wed, 29 May 2013 23:42:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4TNgfxO005866; Wed, 29 May 2013 23:42:41 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4TNgetR005861; Wed, 29 May 2013 23:42:40 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201305292342.r4TNgetR005861@svn.freebsd.org> From: Xin LI Date: Wed, 29 May 2013 23:42:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319397 - head/net/openldap24-server X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 23:42:41 -0000 Author: delphij Date: Wed May 29 23:42:40 2013 New Revision: 319397 URL: http://svnweb.freebsd.org/changeset/ports/319397 Log: Add an option to build SHA2 modules. PR: ports/178268 Submitted by: Mike Carlson Modified: head/net/openldap24-server/Makefile head/net/openldap24-server/pkg-plist Modified: head/net/openldap24-server/Makefile ============================================================================== --- head/net/openldap24-server/Makefile Wed May 29 23:36:16 2013 (r319396) +++ head/net/openldap24-server/Makefile Wed May 29 23:42:40 2013 (r319397) @@ -69,7 +69,7 @@ OPTIONS_DEFINE+= SOCK ODBC RLOOKUPS SLP 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 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} Modified: head/net/openldap24-server/pkg-plist ============================================================================== --- head/net/openldap24-server/pkg-plist Wed May 29 23:36:16 2013 (r319396) +++ head/net/openldap24-server/pkg-plist Wed May 29 23:42:40 2013 (r319397) @@ -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