Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/phpldapadmin/
Date: Tue, 31 May 2022 22:12:21
Message-Id: 1654035129.10d9ee0653bff1e38164409ab38d4bded0148527.sam@gentoo
1 commit: 10d9ee0653bff1e38164409ab38d4bded0148527
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 23 21:06:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 22:12:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d9ee06
7
8 net-nds/phpldapadmin: bump to 1.2.6.3
9
10 Bug: https://bugs.gentoo.org/760537
11 Closes: https://bugs.gentoo.org/755701
12 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/25172
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 net-nds/phpldapadmin/Manifest | 1 +
17 net-nds/phpldapadmin/phpldapadmin-1.2.6.3.ebuild | 51 ++++++++++++++++++++++++
18 2 files changed, 52 insertions(+)
19
20 diff --git a/net-nds/phpldapadmin/Manifest b/net-nds/phpldapadmin/Manifest
21 index 3cbc0fcbabda..8b2add41578d 100644
22 --- a/net-nds/phpldapadmin/Manifest
23 +++ b/net-nds/phpldapadmin/Manifest
24 @@ -1 +1,2 @@
25 DIST phpldapadmin-1.2.5.tar.gz 1117335 BLAKE2B 00d82434dbdadf1f90f5f356ad644d7cfa078cc0696d7cf64e36bc49baf2a5f29bd62fbcd265d9771e713bdd19d4e5708e77e1229199b6712874f982f9b067b0 SHA512 53cf5a8fb3ae3e5fc3c2ab6d23fb9cf731f1d39e122db6531e87461610f13e4bc1c9e8d4fcf7abd2ee5697022a068a9e23d8e039ba79a12929faeb6265920701
26 +DIST phpldapadmin-1.2.6.3.tar.gz 1130061 BLAKE2B d1183a89db659eeadbf33632edabb1f24d855eea3f37d36128b5a4262a4979f1fa1f963b2d1e43c4d07c988899a7c4cfb72a6f88e13ee5a830654686eaecf183 SHA512 66aeb81c812830968df5d3a2f0ccdd479fe5d7ed3bb729c0fb9991d3efa20263a493b38bfe48c99ad2c93c2ee549f51f53e064fb1381bc7e126ca2ad2bfc3167
27
28 diff --git a/net-nds/phpldapadmin/phpldapadmin-1.2.6.3.ebuild b/net-nds/phpldapadmin/phpldapadmin-1.2.6.3.ebuild
29 new file mode 100644
30 index 000000000000..19c7941c7c92
31 --- /dev/null
32 +++ b/net-nds/phpldapadmin/phpldapadmin-1.2.6.3.ebuild
33 @@ -0,0 +1,51 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit webapp
40 +
41 +MY_PN="phpLDAPadmin"
42 +DESCRIPTION="phpLDAPadmin is a web-based tool for managing all aspects of your LDAP server"
43 +HOMEPAGE="http://phpldapadmin.sourceforge.net"
44 +SRC_URI="https://github.com/leenooks/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
48 +IUSE=""
49 +
50 +RDEPEND="
51 + >=dev-lang/php-7.2[hash(+),ldap,session,xml,nls]
52 + virtual/httpd-php
53 +"
54 +S="${WORKDIR}/${MY_PN}-${PV}"
55 +
56 +# http://phpldapadmin.git.sourceforge.net/git/gitweb.cgi?p=phpldapadmin/phpldapadmin;a=commit;h=7dc8d57d6952fe681cb9e8818df7f103220457bd
57 +PATCHES=(
58 + "${FILESDIR}/${PN}-1.2.1.1-fix-magic-quotes.patch"
59 +)
60 +
61 +need_httpd_cgi
62 +
63 +src_prepare() {
64 + mv config/config.php.example config/config.php
65 + default
66 +}
67 +
68 +src_install() {
69 + webapp_src_preinst
70 +
71 + dodoc INSTALL.md
72 +
73 + # Restrict config file access - bug 280836
74 + chown root:apache "config/config.php"
75 + chmod 640 "config/config.php"
76 +
77 + insinto "${MY_HTDOCSDIR}"
78 + doins -r *
79 +
80 + webapp_configfile "${MY_HTDOCSDIR}/config/config.php"
81 + webapp_postinst_txt en "${FILESDIR}"/postinstall2-en.txt
82 +
83 + webapp_src_install
84 +}