aboutsummaryrefslogtreecommitdiffstats
path: root/community/phpldapadmin/APKBUILD
blob: 3a96eaba39b5c2069ffb95b45e0c888606907738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_php=php7
pkgname=phpldapadmin
pkgver=1.2.4
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="68e70bef054d7c270958bfb0403e3de1af16092507eb8095e63062c774002031d4569751449551df264f3bc0d6d4062ff38d6f414ccd4002279e2f5e00b25c14  phpldapadmin-1.2.4.tar.gz
913cc89bfba3a24064865f091a3bcc6ec88db0824d750e8b3b1f6497b5ac1a1e158ced895f1f85f93607402e9353798b3dd4ccdbb1454713f96937c884456eb7  phpldapadmin.additional-template"