aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvpn-auth-ldap/APKBUILD
blob: 44d361170641e23944fdab0db663c3a1e7add57d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openvpn-auth-ldap
pkgver=2.0.3
_openvpnver=2.1.3
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="openvpn re2c openldap-dev"
install=
subpackages=
source="http://openvpn-auth-ldap.googlecode.com/files/auth-ldap-$pkgver.tar.gz
	http://openvpn.net/release/openvpn-$_openvpnver.tar.gz
	"
_builddir="$srcdir"/auth-ldap-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-openvpn="$srcdir"/openvpn-$_openvpnver

	make || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/lib
	make DESTDIR="$pkgdir" install
}

md5sums="03dedc57efc8d4fc2ffe2c014121299d  auth-ldap-2.0.3.tar.gz
7486d3e270ba4b033e311d3e022a0ad7  openvpn-2.1.3.tar.gz"