blob: e979fe42173d6c853ea86bd10f19ce551cbdd9a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openvpn-auth-ldap
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"
license="GPL"
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"
builddir="$srcdir"/openvpn-auth-ldap-auth-ldap-$pkgver
options="!check"
prepare() {
default_prepare
(autoconf && autoheader)
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-openvpn=/usr \
--with-objc-runtime=GNU \
CFLAGS="-fPIC" \
OBJCFLAGS="-std=gnu11"
make
}
package() {
mkdir -p "$pkgdir"/usr/lib
make DESTDIR="$pkgdir" install
}
sha512sums="ffa1f1617acd3f4e96d3abea7e5611d8b8406c92ff1298ac0520f2d42f188116904187d3ca8c0ae88e0bcc6449ec4c8494a18770a4635c1ee7301baaaddfa12e auth-ldap-2.0.4.tar.gz"
|