]> git.sev.monster Git - aports.git/commitdiff
testing/web2ldap: new aport
authorsev <git@sev.monster>
Sat, 29 Jan 2022 19:01:51 +0000 (13:01 -0600)
committersev <git@sev.monster>
Mon, 28 Oct 2024 22:48:01 +0000 (17:48 -0500)
testing/web2ldap/APKBUILD [new file with mode: 0644]
testing/web2ldap/web2ldap.initd [new file with mode: 0644]

diff --git a/testing/web2ldap/APKBUILD b/testing/web2ldap/APKBUILD
new file mode 100644 (file)
index 0000000..d3a81c8
--- /dev/null
@@ -0,0 +1,38 @@
+# Contributor: sev <alpine@sev.monster>
+# Maintainer: sev <alpine@sev.monster>
+pkgname=web2ldap
+pkgver=1.6.28
+pkgrel=1
+pkgdesc="Full-featured LDAP client running as web application"
+url="https://web2ldap.de"
+arch="noarch"
+license="Apache-2.0"
+makedepends="python3-dev py3-setuptools"
+depends="py3-ldap0 py3-xlwt py3-dnspython"
+subpackages="$pkgname-openrc"
+source="https://www.web2ldap.de/download/web2ldap-$pkgver.tar.gz
+        web2ldap.initd"
+builddir="$srcdir/web2ldap-$pkgver"
+
+build() {
+       python3 setup.py build
+}
+
+check() {
+       python3 setup.py check
+}
+
+package() {
+       python3 setup.py install --prefix=/usr --root="$pkgdir"
+       # move conf to proper location
+       mv "$pkgdir/usr/etc" "$pkgdir"
+       # install initd
+       install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+       # fix perms on egg-info
+       chmod -R go+r "$pkgdir"/usr/lib/python*/site-packages/web2ldap-$pkgver-py*
+}
+
+sha512sums="
+7297609105a280da67a61230197b2541e9b38ab625a4fb479f4266bbf941e8c70a0f30df9e1dc833fcf1d7e0502aa9a8ecc7cfb1a84761d93905ec962ba35c28  web2ldap-1.6.28.tar.gz
+24e2ae01ff17afbeb8b7ef3b4ae80ba0d982a150da3d3606e9c642c3fcd01d759057851813f46949b2464f8b5d653b674fb67d8196269a96244bc3c95bf0558f  web2ldap.initd
+"
diff --git a/testing/web2ldap/web2ldap.initd b/testing/web2ldap/web2ldap.initd
new file mode 100644 (file)
index 0000000..44264e5
--- /dev/null
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+
+name="web2ldap"
+description="Full-featured LDAP client running as web application"
+
+: ${command_user:="nobody:nogroup"}
+
+command="/usr/bin/python3"
+command_args="-m web2ldap.wsgi $command_args"
+command_background=true
+pidfile="/run/web2ldap.pid"
+
+depends() {
+        need net
+        use ldap
+}
This page took 0.043632 seconds and 4 git commands to generate.