From owner-svn-ports-all@freebsd.org Mon Apr 2 20:12:00 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3CAAF8250F; Mon, 2 Apr 2018 20:11:59 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 922F26FC72; Mon, 2 Apr 2018 20:11:59 +0000 (UTC) (envelope-from matthew@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 8D09E1A5E0; Mon, 2 Apr 2018 20:11:59 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w32KBx1R071690; Mon, 2 Apr 2018 20:11:59 GMT (envelope-from matthew@FreeBSD.org) Received: (from matthew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w32KBwsn071682; Mon, 2 Apr 2018 20:11:58 GMT (envelope-from matthew@FreeBSD.org) Message-Id: <201804022011.w32KBwsn071682@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: matthew set sender to matthew@FreeBSD.org using -f From: Matthew Seaman Date: Mon, 2 Apr 2018 20:11:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466259 - in head/net/phpldapadmin: . files X-SVN-Group: ports-head X-SVN-Commit-Author: matthew X-SVN-Commit-Paths: in head/net/phpldapadmin: . files X-SVN-Commit-Revision: 466259 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.25 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: Mon, 02 Apr 2018 20:12:00 -0000 Author: matthew Date: Mon Apr 2 20:11:58 2018 New Revision: 466259 URL: https://svnweb.freebsd.org/changeset/ports/466259 Log: Modernization: switch to USES=php:web Update files/patch-lib__functions.php to work around the lack of the deprecated mcrypt functions in php >= 7.1. Regenerate patches with 'make makesum' PR: 227199 Submitted by: ohartmann@walstatt.org Modified: head/net/phpldapadmin/Makefile head/net/phpldapadmin/files/patch-config__config.php.example head/net/phpldapadmin/files/patch-lib__PageRender.php head/net/phpldapadmin/files/patch-lib__TemplateRender.php head/net/phpldapadmin/files/patch-lib__ds_ldap.php head/net/phpldapadmin/files/patch-lib__ds_ldap_pla.php head/net/phpldapadmin/files/patch-lib__functions.php head/net/phpldapadmin/files/patch-tools__po__Makefile Modified: head/net/phpldapadmin/Makefile ============================================================================== --- head/net/phpldapadmin/Makefile Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/Makefile Mon Apr 2 20:11:58 2018 (r466259) @@ -3,7 +3,7 @@ PORTNAME= phpldapadmin PORTVERSION= 1.2.3 -PORTREVISION= 7 +PORTREVISION= 8 PORTEPOCH= 1 CATEGORIES= net www MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-php5/${PORTVERSION} @@ -14,14 +14,12 @@ COMMENT= PHP application to administer LDAP over the w LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cpe tar:tgz +USES= cpe php:web tar:tgz CPE_VENDOR= deon_george NO_ARCH= yes NO_BUILD= yes USE_PHP= gettext ldap openssl pcre session xml iconv hash - -WANT_PHP_WEB= yes GROUPS?= ${WWWGRP} CFGDIR= config Modified: head/net/phpldapadmin/files/patch-config__config.php.example ============================================================================== --- head/net/phpldapadmin/files/patch-config__config.php.example Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-config__config.php.example Mon Apr 2 20:11:58 2018 (r466259) @@ -1,6 +1,6 @@ ---- ./config/config.php.example.orig 2014-05-03 08:00:05.933577117 +0100 -+++ ./config/config.php.example 2014-05-03 08:00:38.259564444 +0100 -@@ -379,7 +379,7 @@ +--- config/config.php.example.orig 2012-10-01 06:54:14 UTC ++++ config/config.php.example +@@ -379,7 +379,7 @@ $servers->setValue('server','name','My L /* Default password hashing algorithm. One of md5, ssha, sha, md5crpyt, smd5, blowfish, crypt or leave blank for now default algorithm. */ @@ -9,7 +9,7 @@ /* If you specified 'cookie' or 'session' as the auth_type above, you can optionally specify here an attribute to use when logging in. If you enter -@@ -546,7 +546,7 @@ +@@ -546,7 +546,7 @@ $servers->setValue('sasl','authz_id_rege $servers->setValue('sasl','authz_id_replacement','$1'); $servers->setValue('sasl','props',null); Modified: head/net/phpldapadmin/files/patch-lib__PageRender.php ============================================================================== --- head/net/phpldapadmin/files/patch-lib__PageRender.php Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-lib__PageRender.php Mon Apr 2 20:11:58 2018 (r466259) @@ -1,6 +1,6 @@ ---- ./lib/PageRender.php.orig 2012-10-01 07:54:14.000000000 +0100 -+++ ./lib/PageRender.php 2014-05-03 07:57:44.744575309 +0100 -@@ -287,7 +287,7 @@ +--- lib/PageRender.php.orig 2012-10-01 06:54:14 UTC ++++ lib/PageRender.php +@@ -287,7 +287,7 @@ class PageRender extends Visitor { break; default: @@ -9,7 +9,7 @@ } $vals = array_unique($vals); -@@ -957,7 +957,7 @@ +@@ -957,7 +957,7 @@ class PageRender extends Visitor { if (trim($val)) $enc_type = get_enc_type($val); else @@ -18,7 +18,7 @@ $obfuscate_password = obfuscate_password_display($enc_type); -@@ -982,7 +982,7 @@ +@@ -982,7 +982,7 @@ class PageRender extends Visitor { if (trim($val)) $enc_type = get_enc_type($val); else Modified: head/net/phpldapadmin/files/patch-lib__TemplateRender.php ============================================================================== --- head/net/phpldapadmin/files/patch-lib__TemplateRender.php Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-lib__TemplateRender.php Mon Apr 2 20:11:58 2018 (r466259) @@ -1,6 +1,6 @@ ---- ./lib/TemplateRender.php.orig 2014-05-03 07:58:18.076584893 +0100 -+++ ./lib/TemplateRender.php 2014-05-03 07:59:18.859574787 +0100 -@@ -2466,7 +2466,7 @@ +--- lib/TemplateRender.php.orig 2012-10-01 06:54:14 UTC ++++ lib/TemplateRender.php +@@ -2466,7 +2466,7 @@ function deleteAttribute(attrName,friend if ($val = $attribute->getValue($i)) $default = get_enc_type($val); else Modified: head/net/phpldapadmin/files/patch-lib__ds_ldap.php ============================================================================== --- head/net/phpldapadmin/files/patch-lib__ds_ldap.php Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-lib__ds_ldap.php Mon Apr 2 20:11:58 2018 (r466259) @@ -1,6 +1,6 @@ ---- ./lib/ds_ldap.php.orig 2012-10-01 07:54:14.000000000 +0100 -+++ ./lib/ds_ldap.php 2014-05-03 07:57:44.746572911 +0100 -@@ -1116,13 +1116,24 @@ +--- lib/ds_ldap.php.orig 2012-10-01 06:54:14 UTC ++++ lib/ds_ldap.php +@@ -1116,13 +1116,24 @@ class ldap extends DS { if (is_array($dn)) { $a = array(); Modified: head/net/phpldapadmin/files/patch-lib__ds_ldap_pla.php ============================================================================== --- head/net/phpldapadmin/files/patch-lib__ds_ldap_pla.php Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-lib__ds_ldap_pla.php Mon Apr 2 20:11:58 2018 (r466259) @@ -1,6 +1,6 @@ ---- ./lib/ds_ldap_pla.php.orig 2012-10-01 07:54:14.000000000 +0100 -+++ ./lib/ds_ldap_pla.php 2014-05-03 07:57:44.748572937 +0100 -@@ -16,7 +16,7 @@ +--- lib/ds_ldap_pla.php.orig 2012-10-01 06:54:14 UTC ++++ lib/ds_ldap_pla.php +@@ -16,7 +16,7 @@ class ldap_pla extends ldap { function __construct($index) { parent::__construct($index); Modified: head/net/phpldapadmin/files/patch-lib__functions.php ============================================================================== --- head/net/phpldapadmin/files/patch-lib__functions.php Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-lib__functions.php Mon Apr 2 20:11:58 2018 (r466259) @@ -1,6 +1,38 @@ ---- ./lib/functions.php.orig 2012-10-01 07:54:14.000000000 +0100 -+++ ./lib/functions.php 2014-05-03 07:57:44.751570981 +0100 -@@ -2127,7 +2127,7 @@ +--- lib/functions.php.orig 2012-10-01 06:54:14 UTC ++++ lib/functions.php +@@ -745,6 +745,7 @@ function blowfish_encrypt($data,$secret= + if (! trim($secret)) + return $data; + ++/* + if (function_exists('mcrypt_module_open') && ! empty($data)) { + $td = mcrypt_module_open(MCRYPT_BLOWFISH,'',MCRYPT_MODE_ECB,''); + $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td),MCRYPT_DEV_URANDOM); +@@ -754,6 +755,7 @@ function blowfish_encrypt($data,$secret= + + return $encrypted_data; + } ++*/ + + if (file_exists(LIBDIR.'blowfish.php')) + require_once LIBDIR.'blowfish.php'; +@@ -801,6 +803,7 @@ function blowfish_decrypt($encdata,$secr + if (! trim($secret)) + return $encdata; + ++/* + if (function_exists('mcrypt_module_open') && ! empty($encdata)) { + $td = mcrypt_module_open(MCRYPT_BLOWFISH,'',MCRYPT_MODE_ECB,''); + $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td),MCRYPT_DEV_URANDOM); +@@ -810,6 +813,7 @@ function blowfish_decrypt($encdata,$secr + + return $decrypted_data; + } ++*/ + + if (file_exists(LIBDIR.'blowfish.php')) + require_once LIBDIR.'blowfish.php'; +@@ -2127,7 +2131,7 @@ function password_types() { * crypt, ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, sha512, or clear. * @return string The hashed password. */ @@ -9,7 +41,7 @@ if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS')) debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs); -@@ -2318,7 +2318,7 @@ +@@ -2318,7 +2322,7 @@ function password_check($cryptedpassword # SHA crypted passwords case 'sha': @@ -18,7 +50,7 @@ return true; else return false; -@@ -2327,7 +2327,7 @@ +@@ -2327,7 +2331,7 @@ function password_check($cryptedpassword # MD5 crypted passwords case 'md5': @@ -27,7 +59,7 @@ return true; else return false; -@@ -2392,7 +2392,7 @@ +@@ -2392,7 +2396,7 @@ function password_check($cryptedpassword # SHA512 crypted passwords case 'sha512': @@ -36,7 +68,7 @@ return true; else return false; -@@ -2564,13 +2564,24 @@ +@@ -2564,13 +2568,24 @@ function dn_unescape($dn) { if (is_array($dn)) { $a = array(); Modified: head/net/phpldapadmin/files/patch-tools__po__Makefile ============================================================================== --- head/net/phpldapadmin/files/patch-tools__po__Makefile Mon Apr 2 20:04:07 2018 (r466258) +++ head/net/phpldapadmin/files/patch-tools__po__Makefile Mon Apr 2 20:11:58 2018 (r466259) @@ -1,5 +1,5 @@ ---- ./tools/po/Makefile.orig 2012-10-01 07:54:14.000000000 +0100 -+++ ./tools/po/Makefile 2014-05-03 07:57:44.752575636 +0100 +--- tools/po/Makefile.orig 2012-10-01 06:54:14 UTC ++++ tools/po/Makefile @@ -1,4 +1,3 @@ -#!/bin/bash #