diff options
author | root <root@rshg054.dnsready.net> | 2011-08-14 23:14:32 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-14 23:14:32 +0000 |
commit | 4784cc8068c68b6fc23c2bd0ee8158b2a924f5f4 (patch) | |
tree | 30dd0cb9a1406f132ae8c5b5dbbb4ee4b25732f8 /testing/vpnc/PKGBUILD | |
parent | 76c08dc0eadb92247b4978f3185ee4176603b7af (diff) |
Sun Aug 14 23:14:32 UTC 2011
Diffstat (limited to 'testing/vpnc/PKGBUILD')
-rw-r--r-- | testing/vpnc/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/vpnc/PKGBUILD b/testing/vpnc/PKGBUILD new file mode 100644 index 000000000..04ee61cfc --- /dev/null +++ b/testing/vpnc/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 135374 2011-08-13 09:06:19Z thomas $ +# Maintainer: Thomas Baechler <thomas@archlinux.org> + +pkgname=vpnc +pkgver=0.5.3 +pkgrel=4 +pkgdesc="VPN client for cisco3000 VPN Concentrators" +url="http://www.unix-ag.uni-kl.de/~massar/vpnc/" +license=('GPL') +depends=('libgcrypt' 'openssl' 'iproute2' 'net-tools') +optdepends=('openresolv: Let vpnc manage resolv.conf') +arch=('i686' 'x86_64') +source=("http://www.unix-ag.uni-kl.de/~massar/vpnc/$pkgname-$pkgver.tar.gz" + 'vpnc.conf' + 'vpnc.rc' + fix-iproute-syntax.patch) +backup=('etc/vpnc/default.conf') +md5sums=('4378f9551d5b077e1770bbe09995afb3' + 'a3f4e0cc682f437e310a1c86ae198e45' + 'c5885162ac198eaa36da9a01e7c0c55b' + '193a35773594667a2782701aff372551') + +build() { + cd "${srcdir}"/${pkgname}-${pkgver} + + # Build hybrid support + sed -i 's|^#OPENSSL|OPENSSL|g' Makefile + + # Fix vpnc-script + sed 's|/sbin/resolvconf|/usr/sbin/resolvconf|g' -i vpnc-script.in + patch -p1 -i "${srcdir}"/fix-iproute-syntax.patch + + make PREFIX=/usr +} + +package() { + cd "${srcdir}"/${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" PREFIX=/usr install + + install -D -m644 "${srcdir}"/vpnc.conf "${pkgdir}"/etc/vpnc/default.conf + install -D -m755 "${srcdir}"/vpnc.rc "${pkgdir}"/etc/rc.d/vpnc + rm -f "${pkgdir}"/etc/vpnc/vpnc.conf +} |