aboutsummaryrefslogtreecommitdiffstats
path: root/main/openvpn-auth-ldap/APKBUILD
blob: c212276409bf8883800847f53eb46db242fbe8d1 (plain) (blame)
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
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openvpn-auth-ldap
pkgver=2.0.3
pkgrel=6
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

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
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-openvpn=/usr \
		--with-objc-runtime=GNU \
		|| return 1
	make || return 1
}

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"