summaryrefslogtreecommitdiffstats
path: root/testing/vpnc/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-19 20:49:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-19 20:49:37 +0000
commit79141dd1f4ea05b3ec002f9283ba8accbe9370a7 (patch)
treed605c24ceb8312e6b1053baae86bf97139274a93 /testing/vpnc/APKBUILD
parent02c586ac0e2f08ffcf87a0016522c0103e2c2fdd (diff)
downloadaports-79141dd1f4ea05b3ec002f9283ba8accbe9370a7.tar.bz2
aports-79141dd1f4ea05b3ec002f9283ba8accbe9370a7.tar.xz
testing/vpnc: new aport
IPSec VPN client compatible with Cisco equipment http://www.unix-ag.uni-kl.de/~massar/vpnc/
Diffstat (limited to 'testing/vpnc/APKBUILD')
-rw-r--r--testing/vpnc/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/vpnc/APKBUILD b/testing/vpnc/APKBUILD
new file mode 100644
index 000000000..f701cb916
--- /dev/null
+++ b/testing/vpnc/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=vpnc
+pkgver=0.5.3
+pkgrel=0
+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"
+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"