1 # Maintainer: Dave Reisner <dreisner@archlinux.org>
2 # Contributor: Ray Kohler <ataraxia937 at gmail dot com>
7 pkgdesc="VPN client for Cisco and Nortel VPN Concentrators - SVN trunk build"
9 url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
11 depends=('libgcrypt' 'openssl' 'iproute2')
12 makedepends=('subversion')
15 backup=(etc/vpnc/default.conf)
17 md5sums=('a7302cf6a12bdc1eebdcbd10b2df0faf')
19 vpnc_script_src='http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob/HEAD:/vpnc-script'
21 _svntrunk=http://svn.unix-ag.uni-kl.de/vpnc/trunk
27 # im lazy -- grab the latest from git master
28 curl -sS "$vpnc_script_src" > "$srcdir/vpnc-script"
30 if [[ -d $_svnmod/.svn ]]; then
33 svn co $_svntrunk --config-dir ./ $_svnmod
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_svnmod-build"
40 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
41 cd "$srcdir/$_svnmod-build"
43 # Build hybrid support
44 sed -i 's|^#OPENSSL|OPENSSL|g' Makefile
51 cd "$srcdir/$_svnmod-build"
53 make DESTDIR="$pkgdir" PREFIX=/usr install
55 install -m755 "$srcdir/vpnc-script" "$pkgdir/etc/vpnc/vpnc-script"
56 install -m644 "$srcdir/vpnc.conf" "$pkgdir/etc/vpnc/default.conf"
57 rm -f "$pkgdir/etc/vpnc/vpnc.conf"