aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-02-27 21:12:27 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-02-27 21:12:51 +0100
commitd0a964d7a4dfdac209c54eb4be343fe43fd94133 (patch)
tree595147ab63d8a12c8d2dbacd3b1c4c95e16256a1 /testing
parent34ddbb311c06bada7aa1b9e8d6b8f9011a10beaa (diff)
downloadaports-d0a964d7a4dfdac209c54eb4be343fe43fd94133.tar.bz2
aports-d0a964d7a4dfdac209c54eb4be343fe43fd94133.tar.xz
testing/openvpn-auth-ldap: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/openvpn-auth-ldap/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/openvpn-auth-ldap/APKBUILD b/testing/openvpn-auth-ldap/APKBUILD
new file mode 100644
index 0000000000..6ac375e256
--- /dev/null
+++ b/testing/openvpn-auth-ldap/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=openvpn-auth-ldap
+pkgver=2.0.4
+pkgrel=0
+pkgdesc="Username/password authentication via LDAP for OpenVPN 2.x"
+url="https://github.com/threerings/openvpn-auth-ldap/"
+arch="all"
+license="BSD-3-Clause"
+depends="openvpn"
+makedepends="autoconf automake gcc-objc openldap-dev openvpn-dev re2c"
+source="https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-$pkgver/$pkgname-auth-ldap-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-auth-ldap-$pkgver"
+
+prepare() {
+ default_prepare
+
+ update_config_guess
+ update_config_sub
+
+ autoconf
+ autoheader
+}
+
+build() {
+ export OBJCFLAGS="$CFLAGS -std=gnu11"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --with-openvpn=/usr/include/openvpn
+ make
+}
+
+check() {
+ make -C tests test
+}
+
+package() {
+ install -m 755 -D src/openvpn-auth-ldap.so \
+ "$pkgdir"/usr/lib/openvpn/openvpn-auth-ldap.so
+}
+
+sha512sums="ffa1f1617acd3f4e96d3abea7e5611d8b8406c92ff1298ac0520f2d42f188116904187d3ca8c0ae88e0bcc6449ec4c8494a18770a4635c1ee7301baaaddfa12e openvpn-auth-ldap-auth-ldap-2.0.4.tar.gz"