aboutsummaryrefslogtreecommitdiffstats
path: root/main/phpldapadmin/APKBUILD
blob: 6439427a94d0df389f35f26abb87000b60303968 (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
39
40
41
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=phpldapadmin
pkgver=1.2.3
pkgrel=0
pkgdesc="Web front-end for managing OpenLDAP"
url="http://phpldapadmin.sourceforge.net"
arch="noarch"
license="GPL2"
depends="php php-ldap php-gettext php-xml"
depends_dev=
makedepends="$depends_dev"
install=
subpackages=
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-php5/$pkgver/$pkgname-$pkgver.tgz
	$pkgname.additional-template"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	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 || exit 1
	install -Dm644 ../$pkgname.additional-template \
	  "$pkgdir"/usr/share/webapps/phpldapadmin/templates/creation/groupOfNames.xml || exit 1
}

md5sums="59a49054039ceb852c2da377d8742360  phpldapadmin-1.2.3.tgz
3ca4fbf9e16f192b441b51b2d25ecf14  phpldapadmin.additional-template"