aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lam/APKBUILD
blob: c68c952395b4bb03aa35806be6b5254e640e104f (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
42
43
44
45
46
47
48
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="lam"
_realname="ldap-account-manager"
pkgver="4.2"
pkgrel=1
pkgdesc="PHP webfrontend for managing various account types in an LDAP directory in an abstract way"
url="https://www.ldap-account-manager.org"
arch="noarch"
license="GPL2"
depends="php php-ldap php-gettext php-json php-xml php-mcrypt php-zip"
depends_dev=
makedepends="$depends_dev"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$_realname-$pkgver.tar.gz"


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

prepare() {
	cd "$_builddir"
	# patch -p1 < ../lam-change-config-file-location.patch || exit 1
}

build() {
	return 0
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/etc/lam || exit 1
	mkdir -p "$pkgdir"/usr/share/webapps/lam || exit 1
	mkdir -p "$pkgdir"/usr/share/doc/lam || exit 1
	mv config/* "$pkgdir"/etc/lam || exit 1
	rm -rf config || exit 1
	ln -s /etc/lam "$pkgdir"/usr/share/webapps/lam/config || exit 1
	mv "$pkgdir"/etc/lam/config.cfg_sample "$pkgdir"/etc/lam/config.cfg || exit 1
	mv docs/* "$pkgdir"/usr/share/doc/lam || exit 1
	for file in COPYING VERSION HISTORY  README
	do
		mv $file "$pkgdir"/usr/share/doc/lam || exit 1
	done
	cp -r * "$pkgdir"/usr/share/webapps/lam || exit 1
}

md5sums="7a840a98c9aec2a9c21796f0491a6f21  ldap-account-manager-4.2.tar.gz"
sha256sums="992d05c3f05befdb2f36513e4674d67d1408a9249982a8526df4e710fc5c71e5  ldap-account-manager-4.2.tar.gz"
sha512sums="b0599578e58e801879128b511bcb0acd4c71a53d5134a13cf3397730042cc7d42adbdc6affa9be3dfdd20bc42ccfc27edc0ca64ec10cd80dfa91f5916af52ba8  ldap-account-manager-4.2.tar.gz"