# Maintainer: Leonardo Arena _php=php7 pkgname=phpldapadmin pkgver=1.2.5 pkgrel=0 pkgdesc="Web front-end for managing OpenLDAP" url="http://phpldapadmin.sourceforge.net" arch="noarch" license="GPL-2.0-or-later" options="!check" # no test suite depends="${_php} ${_php}-ldap ${_php}-gettext ${_php}-mbstring ${_php}-opcache ${_php}-openssl ${_php}-session ${_php}-xml " source="$pkgname-$pkgver.tar.gz::https://github.com/leenooks/phpLDAPadmin/archive/$pkgver.tar.gz $pkgname.additional-template " builddir="$srcdir"/phpLDAPadmin-$pkgver # secfixes: # 1.2.3-r4: # - CVE-2017-11107 package() { mkdir -p "$pkgdir"/usr/share/webapps/phpldapadmin mkdir -p "$pkgdir"/etc mv ./* "$pkgdir"/usr/share/webapps/phpldapadmin mv "$pkgdir"/usr/share/webapps/phpldapadmin/config "$pkgdir"/etc/phpldapadmin ln -s /etc/phpldapadmin "$pkgdir"/usr/share/webapps/phpldapadmin/config install -Dm644 ../$pkgname.additional-template \ "$pkgdir"/usr/share/webapps/phpldapadmin/templates/creation/groupOfNames.xml } sha512sums="53cf5a8fb3ae3e5fc3c2ab6d23fb9cf731f1d39e122db6531e87461610f13e4bc1c9e8d4fcf7abd2ee5697022a068a9e23d8e039ba79a12929faeb6265920701 phpldapadmin-1.2.5.tar.gz 913cc89bfba3a24064865f091a3bcc6ec88db0824d750e8b3b1f6497b5ac1a1e158ced895f1f85f93607402e9353798b3dd4ccdbb1454713f96937c884456eb7 phpldapadmin.additional-template"