summaryrefslogtreecommitdiff
path: root/core/vpnc/PKGBUILD
blob: 6cea30a97b676e39a3b58a5ef8ea951f386fd427 (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
# $Id: PKGBUILD 100076 2010-11-20 04:16:25Z pierre $
# Maintainer: Thomas Baechler <thomas@archlinux.org>

pkgname=vpnc
pkgver=0.5.3
pkgrel=3
pkgdesc="VPN client for cisco3000 VPN Concentrators"
url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
license=('GPL')
depends=('libgcrypt' 'openssl' 'iproute2')
arch=('i686' 'x86_64' 'mips64el')
source=("http://www.unix-ag.uni-kl.de/~massar/vpnc/$pkgname-$pkgver.tar.gz"
        'vpnc.conf' 'vpnc.rc')
backup=('etc/vpnc/default.conf')
md5sums=('4378f9551d5b077e1770bbe09995afb3'
         'a3f4e0cc682f437e310a1c86ae198e45'
         'c5885162ac198eaa36da9a01e7c0c55b')

build() {
  cd $srcdir/$pkgname-$pkgver

  # Build hybrid support
  sed -i 's|^#OPENSSL|OPENSSL|g' Makefile

  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
}