From d0a964d7a4dfdac209c54eb4be343fe43fd94133 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 27 Feb 2020 21:12:27 +0100 Subject: testing/openvpn-auth-ldap: new aport --- testing/openvpn-auth-ldap/APKBUILD | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 testing/openvpn-auth-ldap/APKBUILD (limited to 'testing') 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 +# Maintainer: Jakub Jirutka +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" -- cgit v1.2.3