]>
Commit | Line | Data |
---|---|---|
1 | # Contributor: sev <alpine@sev.monster> | |
2 | # Maintainer: sev <alpine@sev.monster> | |
3 | pkgname=web2ldap | |
4 | pkgver=1.6.28 | |
5 | pkgrel=1 | |
6 | pkgdesc="Full-featured LDAP client running as web application" | |
7 | url="https://web2ldap.de" | |
8 | arch="noarch" | |
9 | license="Apache-2.0" | |
10 | makedepends="python3-dev py3-setuptools" | |
11 | depends="py3-ldap0 py3-xlwt py3-dnspython" | |
12 | subpackages="$pkgname-openrc" | |
13 | source="https://www.web2ldap.de/download/web2ldap-$pkgver.tar.gz | |
14 | web2ldap.initd" | |
15 | builddir="$srcdir/web2ldap-$pkgver" | |
16 | ||
17 | build() { | |
18 | python3 setup.py build | |
19 | } | |
20 | ||
21 | check() { | |
22 | python3 setup.py check | |
23 | } | |
24 | ||
25 | package() { | |
26 | python3 setup.py install --prefix=/usr --root="$pkgdir" | |
27 | # move conf to proper location | |
28 | mv "$pkgdir/usr/etc" "$pkgdir" | |
29 | # install initd | |
30 | install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname | |
31 | # fix perms on egg-info | |
32 | chmod -R go+r "$pkgdir"/usr/lib/python*/site-packages/web2ldap-$pkgver-py* | |
33 | } | |
34 | ||
35 | sha512sums=" | |
36 | 7297609105a280da67a61230197b2541e9b38ab625a4fb479f4266bbf941e8c70a0f30df9e1dc833fcf1d7e0502aa9a8ecc7cfb1a84761d93905ec962ba35c28 web2ldap-1.6.28.tar.gz | |
37 | 24e2ae01ff17afbeb8b7ef3b4ae80ba0d982a150da3d3606e9c642c3fcd01d759057851813f46949b2464f8b5d653b674fb67d8196269a96244bc3c95bf0558f web2ldap.initd | |
38 | " |