[arch-commits] Commit in phpldapadmin/repos (6 files)
Pierre Schmitz
pierre at archlinux.org
Sat Jan 23 10:12:22 UTC 2021
Date: Saturday, January 23, 2021 @ 10:12:21
Author: pierre
Revision: 825940
archrelease: copy trunk to community-testing-any
Added:
phpldapadmin/repos/community-testing-any/
phpldapadmin/repos/community-testing-any/PKGBUILD
(from rev 825939, phpldapadmin/trunk/PKGBUILD)
phpldapadmin/repos/community-testing-any/disable-mcrypt.patch
(from rev 825939, phpldapadmin/trunk/disable-mcrypt.patch)
phpldapadmin/repos/community-testing-any/password-unescape.patch
(from rev 825939, phpldapadmin/trunk/password-unescape.patch)
phpldapadmin/repos/community-testing-any/phpldapadmin-1.2.3-php7_4.patch
(from rev 825939, phpldapadmin/trunk/phpldapadmin-1.2.3-php7_4.patch)
phpldapadmin/repos/community-testing-any/sort-in-templates.patch
(from rev 825939, phpldapadmin/trunk/sort-in-templates.patch)
---------------------------------+
PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++++
disable-mcrypt.patch | 36 +++++++++++++++++++++++++++++++
password-unescape.patch | 10 ++++++++
phpldapadmin-1.2.3-php7_4.patch | 24 +++++++++++++++++++++
sort-in-templates.patch | 12 ++++++++++
5 files changed, 125 insertions(+)
Copied: phpldapadmin/repos/community-testing-any/PKGBUILD (from rev 825939, phpldapadmin/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-01-23 10:12:21 UTC (rev 825940)
@@ -0,0 +1,43 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=phpldapadmin
+pkgver=1.2.6.2
+pkgrel=2
+pkgdesc="A PHP and hence web-based tool to administrate LDAP over the WWW"
+arch=('any')
+url="https://github.com/leenooks/phpLDAPadmin"
+license=('GPL')
+depends=('libldap' 'php7')
+makedepends=('optipng')
+backup=("etc/webapps/phpldapadmin/config.php")
+source=($pkgname-$pkgver.tar.gz::https://github.com/leenooks/phpLDAPadmin/archive/$pkgver.tar.gz
+ disable-mcrypt.patch
+ phpldapadmin-1.2.3-php7_4.patch
+ password-unescape.patch
+ sort-in-templates.patch)
+sha256sums=('49b14019bf611267720b4e9de33f2502b44c526809f17225a4a76ee8296b8d64'
+ 'b31774abab4dd603ec9acbeda49adb188890173ee93042a811b5724e01edd837'
+ 'd6e9b6361549be4a4e5a05ffac0917307973fe35717041f7cdde4171271ad168'
+ '11e673b4ebbd922e5f6769837fef659303c48247f414dcd80f742bb01b6162b7'
+ 'fc2d4bdf4d43a90aa541fe20eeed494caa339eacf3f08b06539efcdbacc3578f')
+
+prepare() {
+ cd "$srcdir"/phpLDAPadmin-${pkgver}/
+ find -type f -name '*.png' -exec optipng -quiet -force -fix {} \;
+ patch -p1 -i "$srcdir"/disable-mcrypt.patch
+# patch -p1 -i "$srcdir"/phpldapadmin-1.2.3-php7_4.patch
+ patch -p1 -i "$srcdir"/sort-in-templates.patch
+ patch -p1 -i "$srcdir"/password-unescape.patch
+ find -type f -name '*.orig' -exec rm -f {} \;
+}
+
+package() {
+ _instdir="$pkgdir"/usr/share/webapps/phpldapadmin
+ mkdir -p ${_instdir} "$pkgdir"/etc/webapps/phpldapadmin
+ cd ${_instdir}
+
+ cp -ra "$srcdir"/phpLDAPadmin-${pkgver}/* .
+
+ ln -s /etc/webapps/phpldapadmin/config.php ${_instdir}/config/config.php
+ cp ${_instdir}/config/config.php.example "$pkgdir"/etc/webapps/phpldapadmin/config.php
+}
Copied: phpldapadmin/repos/community-testing-any/disable-mcrypt.patch (from rev 825939, phpldapadmin/trunk/disable-mcrypt.patch)
===================================================================
--- community-testing-any/disable-mcrypt.patch (rev 0)
+++ community-testing-any/disable-mcrypt.patch 2021-01-23 10:12:21 UTC (rev 825940)
@@ -0,0 +1,36 @@
+diff -wbBur phpldapadmin-1.2.3/lib/functions.php phpldapadmin-1.2.3.my/lib/functions.php
+--- phpldapadmin-1.2.3/lib/functions.php 2012-10-01 10:54:14.000000000 +0400
++++ phpldapadmin-1.2.3.my/lib/functions.php 2017-02-02 20:02:14.424245233 +0300
+@@ -745,6 +745,7 @@
+ 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,7 +755,7 @@
+
+ return $encrypted_data;
+ }
+-
++*/
+ if (file_exists(LIBDIR.'blowfish.php'))
+ require_once LIBDIR.'blowfish.php';
+ else
+@@ -801,6 +802,7 @@
+ 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 +812,7 @@
+
+ return $decrypted_data;
+ }
++*/
+
+ if (file_exists(LIBDIR.'blowfish.php'))
+ require_once LIBDIR.'blowfish.php';
Copied: phpldapadmin/repos/community-testing-any/password-unescape.patch (from rev 825939, phpldapadmin/trunk/password-unescape.patch)
===================================================================
--- community-testing-any/password-unescape.patch (rev 0)
+++ community-testing-any/password-unescape.patch 2021-01-23 10:12:21 UTC (rev 825940)
@@ -0,0 +1,10 @@
+--- a/htdocs/login.php 2020-06-17 18:17:18.926320916 -0600
++++ b/htdocs/login.php 2020-06-17 18:16:59.796222429 -0600
+@@ -14,6 +14,7 @@
+ $user = array();
+ $user['login'] = get_request('login');
+ $user['password'] = get_request('login_pass');
++ $user['password'] = str_replace('&', '&', $user['password']);
+
+ if ($user['login'] && ! strlen($user['password']))
+ system_message(array(
Copied: phpldapadmin/repos/community-testing-any/phpldapadmin-1.2.3-php7_4.patch (from rev 825939, phpldapadmin/trunk/phpldapadmin-1.2.3-php7_4.patch)
===================================================================
--- community-testing-any/phpldapadmin-1.2.3-php7_4.patch (rev 0)
+++ community-testing-any/phpldapadmin-1.2.3-php7_4.patch 2021-01-23 10:12:21 UTC (rev 825940)
@@ -0,0 +1,24 @@
+diff -wbBur phpldapadmin-1.2.3.org/lib/functions.php phpldapadmin-1.2.3/lib/functions.php
+--- phpldapadmin-1.2.3.org/lib/functions.php 2012-10-01 10:54:14.000000000 +0400
++++ phpldapadmin-1.2.3/lib/functions.php 2020-04-25 10:41:00.000000000 +0300
+@@ -1588,7 +1591,7 @@
+
+ # Return icon filename based upon objectClass value
+ if (in_array('sambaaccount',$object_classes) &&
+- '$' == $rdn{ strlen($rdn) - 1 })
++ '$' == $rdn[ strlen($rdn) - 1 ])
+ return 'nt_machine.png';
+
+ if (in_array('sambaaccount',$object_classes))
+diff -wbBur phpldapadmin-1.2.3.org/lib/TemplateRender.php phpldapadmin-1.2.3/lib/TemplateRender.php
+--- phpldapadmin-1.2.3.org/lib/TemplateRender.php 2012-10-01 10:54:14.000000000 +0400
++++ phpldapadmin-1.2.3/lib/TemplateRender.php 2020-04-25 10:43:00.000000000 +0300
+@@ -200,7 +200,7 @@
+ $next_number = $vals;
+
+ foreach ($mod as $calc) {
+- $operand = $calc{0};
++ $operand = $calc[0];
+ $operator = substr ($calc,1);
+
+ switch ($operand) {
Copied: phpldapadmin/repos/community-testing-any/sort-in-templates.patch (from rev 825939, phpldapadmin/trunk/sort-in-templates.patch)
===================================================================
--- community-testing-any/sort-in-templates.patch (rev 0)
+++ community-testing-any/sort-in-templates.patch 2021-01-23 10:12:21 UTC (rev 825940)
@@ -0,0 +1,12 @@
+diff -wbBur phpldapadmin-1.2.3.org/lib/TemplateRender.php phpldapadmin-1.2.3/lib/TemplateRender.php
+--- phpldapadmin-1.2.3.org/lib/TemplateRender.php 2012-10-01 10:54:14.000000000 +0400
++++ phpldapadmin-1.2.3/lib/TemplateRender.php 2018-02-02 19:06:45.674760057 +0300
+@@ -321,6 +321,8 @@
+
+ $vals = array();
+
++ asort($picklistvalues);
++
+ foreach ($picklistvalues as $key => $values) {
+ $display = $args[3];
+
More information about the arch-commits
mailing list