diff options
author | Pascal Vorwerk <info@fossores.de> | 2019-09-08 23:24:37 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-09-10 05:47:19 +0000 |
commit | adef4ff76453db5e8ce08ef988369d74122f47c7 (patch) | |
tree | 378704dcaea152cdd4359775cf503719cf3bd6d0 | |
parent | dd7afaaff20ddd83bf4eb299ca3e4df5ce3a3acf (diff) |
main/openvpn-auth-ldap: Update to 2.0.4
Updated package to 2.0.4 (fixes some issues)
Adapted build script for new version
Updated build script to comply with modern APKBUILD standards
-rw-r--r-- | main/openvpn-auth-ldap/APKBUILD | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/main/openvpn-auth-ldap/APKBUILD b/main/openvpn-auth-ldap/APKBUILD index c212276409b..e979fe42173 100644 --- a/main/openvpn-auth-ldap/APKBUILD +++ b/main/openvpn-auth-ldap/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=openvpn-auth-ldap -pkgver=2.0.3 -pkgrel=6 +pkgver=2.0.4 +pkgrel=0 pkgdesc="LDAP authentication and authorization plugin for OpenVPN 2.x" url="http://code.google.com/p/openvpn-auth-ldap/" arch="all" @@ -10,21 +10,17 @@ depends= makedepends="automake autoconf re2c openldap-dev openvpn-dev gcc-objc" install= subpackages= -source="https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-$pkgver.tar.gz - " +source="https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-$pkgver.tar.gz" builddir="$srcdir"/openvpn-auth-ldap-auth-ldap-$pkgver +options="!check" prepare() { - default_prepare || return 1 - cd "$builddir" - sed -i -e '/^builtin(include,objc.m4)/d' aclocal.m4 - (autoconf && autoheader) || return 1 - update_config_sub || return 1 - sed -i -e '/<objc\/objc-api.h>/d' configure + default_prepare + (autoconf && autoheader) + update_config_sub } build() { - cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -34,16 +30,14 @@ build() { --infodir=/usr/share/info \ --with-openvpn=/usr \ --with-objc-runtime=GNU \ - || return 1 - make || return 1 + CFLAGS="-fPIC" \ + OBJCFLAGS="-std=gnu11" + make } package() { - cd "$builddir" mkdir -p "$pkgdir"/usr/lib make DESTDIR="$pkgdir" install } -md5sums="edc1e9d61d4feb9eed24656094c2f907 auth-ldap-2.0.3.tar.gz" -sha256sums="3bafd6733513d8d824cfc84e308dfa91b2ed021b67892fc7488962cb9f94d283 auth-ldap-2.0.3.tar.gz" -sha512sums="e09be3453fe6cf43e535c1bc85aefa4de51d83f301558176611595f63093fe70bd9bc5d21c8dea56d3ad46335019b3bb803afceeec03985514a4b27474f14512 auth-ldap-2.0.3.tar.gz" +sha512sums="ffa1f1617acd3f4e96d3abea7e5611d8b8406c92ff1298ac0520f2d42f188116904187d3ca8c0ae88e0bcc6449ec4c8494a18770a4635c1ee7301baaaddfa12e auth-ldap-2.0.4.tar.gz" |