aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vpnc/APKBUILD
blob: 15857b50f8a7760ca62f025de91c91c75d05d6f2 (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
# 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+"
depends=
makedepends="libgcrypt-dev perl"
install=""
subpackages="$pkgname-doc"
source="http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-$pkgver.tar.gz
	vpnc.initd
	vpnc.confd"

_builddir="$srcdir"/vpnc-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make PREFIX=/usr || return 1
}

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

md5sums="4378f9551d5b077e1770bbe09995afb3  vpnc-0.5.3.tar.gz
481ddc83b829de62f459f9b94e0c334b  vpnc.initd
5c9fe863f70cc5262c095012b4bcc163  vpnc.confd"