From owner-svn-ports-all@freebsd.org Sat Nov 30 06:19:52 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4411B1C9C56; Sat, 30 Nov 2019 06:19:52 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Q1SS11Ldz3H9c; Sat, 30 Nov 2019 06:19:52 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 024F42227B; Sat, 30 Nov 2019 06:19:52 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xAU6Jp2R062683; Sat, 30 Nov 2019 06:19:51 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xAU6JpfM062682; Sat, 30 Nov 2019 06:19:51 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201911300619.xAU6JpfM062682@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Sat, 30 Nov 2019 06:19:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518705 - head/net/openldap24-server X-SVN-Group: ports-head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: head/net/openldap24-server X-SVN-Commit-Revision: 518705 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Nov 2019 06:19:52 -0000 Author: delphij Date: Sat Nov 30 06:19:51 2019 New Revision: 518705 URL: https://svnweb.freebsd.org/changeset/ports/518705 Log: net/openldap24-server: add support for pbkdf2 password hash PR: 241471 Submitted by: Joris Dedieu Modified: head/net/openldap24-server/Makefile head/net/openldap24-server/pkg-plist Modified: head/net/openldap24-server/Makefile ============================================================================== --- head/net/openldap24-server/Makefile Sat Nov 30 06:15:57 2019 (r518704) +++ head/net/openldap24-server/Makefile Sat Nov 30 06:19:51 2019 (r518705) @@ -85,6 +85,7 @@ OPTIONS_DEFINE+= DEREF DYNGROUP DYNLIST MEMBEROF PPOLI OPTIONS_DEFINE+= REFINT RETCODE RWM SEQMOD SSSVLV SYNCPROV TRANSLUCENT OPTIONS_DEFINE+= UNIQUE VALSORT SMBPWD SHA2 DYNAMIC_BACKENDS SASL OPTIONS_DEFINE+= LMPASSWD +OPTIONS_DEFINE+= PBKDF2 OPTIONS_DEFINE+= OUTLOOK OPTIONS_DEFINE+= LASTBIND OPTIONS_DEFINE+= KQUEUE @@ -130,6 +131,7 @@ VALSORT_DESC= With Value Sorting overlay SMBPWD_DESC= With Samba Password hashes overlay SHA2_DESC= With SHA2 Password hashes overlay LMPASSWD_DESC= With LM hash password support (DEPRECATED) +PBKDF2_DESC= With PBKDF2 hash password support DYNAMIC_BACKENDS_DESC= Build dynamic backends OUTLOOK_DESC= Force caseIgnoreOrderingMatch on name attribute (experimental) LASTBIND_DESC= With lastbind overlay @@ -467,6 +469,12 @@ PLIST_SUB+= SHA2="" PLIST_SUB+= SHA2="@comment " .endif +.if ${PORT_OPTIONS:MPBKDF2} +PLIST_SUB+= PBKDF2="" +.else +PLIST_SUB+= PBKDF2="@comment " +.endif + .if ${PORT_OPTIONS:MLASTBIND} PLIST_SUB+= LASTBIND="" .else @@ -506,7 +514,7 @@ EXTRA_PATCHES+= ${FILESDIR}/extrapatch-outlook-server .endif .if ${PORT_OPTIONS:MKQUEUE} -BUILD_DEPENDS+= autoconf>0:devel/autoconf +USE_AUTOTOOLS+= autoconf EXTRA_PATCHES+= ${FILESDIR}/extrapatch-ITS6300 .endif @@ -580,6 +588,12 @@ post-build: ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ ${MAKE_ARGS} prefix="${PREFIX}" all) .endif +.if ${PORT_OPTIONS:MPBKDF2} + @(cd ${BUILD_WRKSRC}/contrib/slapd-modules/passwd/pbkdf2 && \ + ${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} \ @@ -621,13 +635,20 @@ post-install: ${MAKE_ARGS} prefix="${PREFIX}" install) ${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a .endif +.if ${PORT_OPTIONS:MPBKDF2} + (cd ${WRKSRC}/contrib/slapd-modules/passwd/pbkdf2 && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ + ${MAKE_ARGS} prefix="${PREFIX}" install) + ${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-pbkdf2.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} +.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2} || ${PORT_OPTIONS:MPBKDF2} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/openldap/*.so .endif .if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSLAPI} Modified: head/net/openldap24-server/pkg-plist ============================================================================== --- head/net/openldap24-server/pkg-plist Sat Nov 30 06:15:57 2019 (r518704) +++ head/net/openldap24-server/pkg-plist Sat Nov 30 06:19:51 2019 (r518705) @@ -93,6 +93,10 @@ %%SHA2%%libexec/openldap/pw-sha2.so %%SHA2%%libexec/openldap/pw-sha2.so.0 %%SHA2%%libexec/openldap/pw-sha2.so.0.0.0 +%%PBKDF2%%libexec/openldap/pw-pbkdf2.la +%%PBKDF2%%libexec/openldap/pw-pbkdf2.so +%%PBKDF2%%libexec/openldap/pw-pbkdf2.so.0 +%%PBKDF2%%libexec/openldap/pw-pbkdf2.so.0.0.0 %%SMBPWD%%libexec/openldap/smbk5pwd.la %%SMBPWD%%libexec/openldap/smbk5pwd.so %%SMBPWD%%libexec/openldap/smbk5pwd.so.0