updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / vpnc-svn / PKGBUILD
blob889f203178ad290b56a3eaf7cbc97c3bdf723ed7
1 # Maintainer: Dave Reisner <dreisner@archlinux.org>
2 # Contributor: Ray Kohler <ataraxia937 at gmail dot com>
4 pkgname=vpnc-svn
5 pkgver=481
6 pkgrel=1
7 pkgdesc="VPN client for Cisco and Nortel VPN Concentrators - SVN trunk build"
8 arch=('i686' 'x86_64')
9 url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
10 license=('GPL')
11 depends=('libgcrypt' 'openssl' 'iproute2')
12 makedepends=('subversion')
13 provides=(vpnc)
14 conflicts=(vpnc)
15 backup=(etc/vpnc/default.conf)
16 source=(vpnc.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
22 _svnmod=vpnc
24 build() {
25   cd "$srcdir"
27   # im lazy -- grab the latest from git master
28   curl -sS "$vpnc_script_src" > "$srcdir/vpnc-script"
30   if [[ -d $_svnmod/.svn ]]; then
31     cd $_svnmod && svn up
32   else
33     svn co $_svntrunk --config-dir ./ $_svnmod
34   fi
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
46   make PREFIX=/usr
50 package() {
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"