aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vpnc/APKBUILD
blob: d4ef16a361ea1c7fa38965d42837fc8798347165 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vpnc
pkgver=0.5.3
pkgrel=1
pkgdesc="IPSec VPN client compatible with Cisco equipment"
url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
arch="all"
license="GPLv2+"
makedepends="libgcrypt-dev perl"
subpackages="$pkgname-doc"
source="http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-$pkgver.tar.gz
	working.patch
	vpnc.initd
	vpnc.confd"
builddir="$srcdir"/vpnc-$pkgver

build() {
	cd "$builddir"
	make PREFIX=/usr
}

check() {
	cd "$builddir"
	./vpnc --version
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/vpnc.initd \
		"$pkgdir"/etc/init.d/vpnc
	install -m644 -D "$srcdir"/vpnc.confd \
		"$pkgdir"/etc/conf.d/vpnc
}

sha512sums="fd1251d200c3826ebfd7022683e38912f30c2a95fbc51259bcd1fdf0570ef3c53cd842003c117a770657f7f8ebb00ceffeea91ced0c3f83dd9c1ca0488519ea3  vpnc-0.5.3.tar.gz
6c3eb976d3877b02c751c310f835bc864e4868d167bbaf9f365b9b728d732cc018591e9a8dfc5a4277b01daf070b74f3bb7e67e175b90ee495fecec1a049e29f  working.patch
d20091a67ccd3b8e9f31ca47c49577ff3cd5bf6ba9ef7bcd9f03231d87fa64d978c60ab69c67bbafdc18d6474d932d6ec68de02d13bea41ae6a7d31b845635e9  vpnc.initd
1254f687dcd9822becfcccabbb34d8343d715d70247dbf4b5e018835fff24b33f5272368f77199d697c8d11d913182b1f756d5e08a46b2057849779f09b19633  vpnc.confd"