aboutsummaryrefslogtreecommitdiffstats
path: root/community/ldap-passwd-webui/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-10-02 21:18:19 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-10-02 21:18:19 +0200
commita52776b25f1ed6f9c8e506952681080af133a599 (patch)
tree4f9bc68f787802a2e1739d5a4b3078651d69081a /community/ldap-passwd-webui/APKBUILD
parente8d72f3ef3542908701c91941b24ed9b113e6fd3 (diff)
downloadaports-a52776b25f1ed6f9c8e506952681080af133a599.tar.bz2
aports-a52776b25f1ed6f9c8e506952681080af133a599.tar.xz
community/ldap-passwd-webui: move from testing
Diffstat (limited to 'community/ldap-passwd-webui/APKBUILD')
-rw-r--r--community/ldap-passwd-webui/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/ldap-passwd-webui/APKBUILD b/community/ldap-passwd-webui/APKBUILD
new file mode 100644
index 0000000000..24e51fe65f
--- /dev/null
+++ b/community/ldap-passwd-webui/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ldap-passwd-webui
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="Very simple web interface for changing password stored in LDAP or Active Directory (Samba 4 AD)"
+url="https://github.com/jirutka/ldap-passwd-webui"
+arch="noarch"
+license="MIT"
+depends="python3 py3-bottle py3-ldap3"
+makedepends="python3-dev"
+subpackages="$pkgname-waitress"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz
+ $pkgname.confd
+ settings.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+options="!check"
+
+package() {
+ local destdir="$pkgdir/usr/share/webapps/$pkgname"
+ cd "$builddir"
+
+ mkdir -p "$destdir"
+ cp -r static app.py index.tpl "$destdir"/
+
+ install -D -m 644 settings.ini.example "$pkgdir"/etc/$pkgname.ini
+}
+
+waitress() {
+ pkgdesc="Runscript for ldap-passwd-webui using Waitress WSGI server"
+ depends="$pkgname=$pkgver-r$pkgrel py-waitress"
+
+ mkdir -p "$subpkgdir"/etc/init.d
+ ln -s waitress "$subpkgdir"/etc/init.d/$pkgname
+ install -D -m 644 "$srcdir"/$pkgname.confd "$subpkgdir"/etc/conf.d/$pkgname
+}
+
+sha512sums="84ecb80ef633e9b3a04913ba0594a98e1e6372d47cdbc0330bb6f914b0b5ec84e1d2886717292d005556705eafbb74d86c85d37065feb9a9975ed393f36587b5 ldap-passwd-webui-2.0.0.tar.gz
+a1f10fbd2261e86ac249efe6571b6c42c398cd17566b602fb0a94e1c9c755da09e73ee7a1bd839181d552ffd74ea7e99352efb51b01a1a27db707e29312b8120 ldap-passwd-webui.confd
+e3200bb2495dfe0f233554c003fd2401ffdc6d86e29c1fbecb1f473f351bd4d2a97add2983d43828bed31c0afb23535cd99ff37c5d8343f304fe9edfa4ccc991 settings.patch"