net-nds/phpldapadmin: Bump to 1.2.5 release. Security release.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Thu, 5 Dec 2019 16:54:36 +0000 (15:54 -0100)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Thu, 5 Dec 2019 16:54:50 +0000 (15:54 -0100)
This release fixes (CVE-2017-11107).
Bug: https://bugs.gentoo.org/636078
Closes: https://bugs.gentoo.org/561900
CLoses: https://bugs.gentoo.org/688056
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
net-nds/phpldapadmin/Manifest
net-nds/phpldapadmin/phpldapadmin-1.2.5.ebuild [new file with mode: 0644]

index 39e8fd1be3b8410a76997af8e41a2a6d4c3a6b41..65fe4ee9905f7fa5ab25573c0c2550831b011141 100644 (file)
@@ -1 +1,2 @@
 DIST phpldapadmin-1.2.3.tgz 1115707 BLAKE2B 85f11713134f7af65a40cb2cab619590bdea9dfc23d2bfdec0b0837772f166f5b8cd61125b753167726abf109a5e5ac8607dc75a750299c61f895638c2d3b98a SHA512 58a57ca577586685ebd0d7fde7e299b8945d1693018c7803e19239b79f4b9d72a4d207d53c9f284268e32398108038efafcdb434e634619bfe87db3524d267b6
+DIST phpldapadmin-1.2.5.tar.gz 1117335 BLAKE2B 00d82434dbdadf1f90f5f356ad644d7cfa078cc0696d7cf64e36bc49baf2a5f29bd62fbcd265d9771e713bdd19d4e5708e77e1229199b6712874f982f9b067b0 SHA512 53cf5a8fb3ae3e5fc3c2ab6d23fb9cf731f1d39e122db6531e87461610f13e4bc1c9e8d4fcf7abd2ee5697022a068a9e23d8e039ba79a12929faeb6265920701
diff --git a/net-nds/phpldapadmin/phpldapadmin-1.2.5.ebuild b/net-nds/phpldapadmin/phpldapadmin-1.2.5.ebuild
new file mode 100644 (file)
index 0000000..d2eb598
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit webapp
+
+MY_PN="phpLDAPadmin"
+DESCRIPTION="phpLDAPadmin is a web-based tool for managing all aspects of your LDAP server"
+HOMEPAGE="http://phpldapadmin.sourceforge.net"
+SRC_URI="https://github.com/leenooks/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+       >=dev-lang/php-5.5[hash(+),ldap,session,xml,nls]
+       virtual/httpd-php
+"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+# http://phpldapadmin.git.sourceforge.net/git/gitweb.cgi?p=phpldapadmin/phpldapadmin;a=commit;h=7dc8d57d6952fe681cb9e8818df7f103220457bd
+PATCHES=(
+       "${FILESDIR}/${PN}-1.2.1.1-fix-magic-quotes.patch"
+)
+
+need_httpd_cgi
+
+src_prepare() {
+       mv config/config.php.example config/config.php
+       default
+}
+
+src_install() {
+       webapp_src_preinst
+
+       dodoc INSTALL.md
+
+       # Restrict config file access - bug 280836
+       chown root:apache "config/config.php"
+       chmod 640 "config/config.php"
+
+       insinto "${MY_HTDOCSDIR}"
+       doins -r *
+
+       webapp_configfile "${MY_HTDOCSDIR}/config/config.php"
+       webapp_postinst_txt en "${FILESDIR}"/postinstall2-en.txt
+
+       webapp_src_install
+}