aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openconnect/APKBUILD
blob: 9984dc414dce2ac473250780a3a2b49f14b873fa (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
44
45
46
47
48
49
50
# Contributor: Myautsai PAN <myautsai@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openconnect
pkgver=8.05
pkgrel=0
pkgdesc="Open client for Cisco AnyConnect VPN"
url="http://www.infradead.org/openconnect/"
arch="all"
license="LGPL-2.1"
depends="vpnc iproute2"
makedepends="autoconf automake intltool openssl-dev libxml2-dev 
	krb5-dev lz4-dev libproxy-dev linux-headers stoken-dev
	pcsc-lite-dev oath-toolkit-dev python-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc"
source="ftp://ftp.infradead.org/pub/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	$pkgname.logrotate"
builddir=$srcdir/$pkgname-$pkgver

build() {
	./configure \
		--prefix=/usr \
		--sbindir=/usr/bin \
		--disable-static \
		--disable-rpath \
		--with-openssl \
		--with-stoken \
		--with-vpnc-script=/etc/vpnc/vpnc-script \
		--disable-nls
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
	mkdir -p "$pkgdir"/var/log/openconnect
	mkdir -p "$pkgdir"/etc/openconnect
}

sha512sums="3ac9f1fa5a87b06d45c316897c69470264f2fde7525b5b3ef1352041dd0c8ae5eaf5dd325de1bdcf1e5b82e688fec9c36d531da1b75ac3f49896d4186d83aa15  openconnect-8.05.tar.gz
7b832550ef21ddb4b1c0eae7f3838b925745a5ebbdb74f1583fb8710b75175ebcbc7b1558ce95f59cd78542bec8bc01f7ab6d32ec4a5b168bb8a516a8907d362  openconnect.initd
a689df7141621c80bca77fdd1e01397b98882c7fd8db79b2fe1495916656522234e3af739538002533c003e4243e9af4bf80cd73bae961e15568997ce89ef6d5  openconnect.confd
3b269eb7f469343d48e6e3aa694c5c051811c217217bebf2e74d051cbacf2b57ba926ea69474d30937067f45100863188f719db3fa1bcb4862ddbf446bdd48d2  openconnect.logrotate"