1 # Maintainer: Ambroz Bizjak <ambrop7@gmail.com>
6 pkgdesc="BadVPN peer-to-peer VPN system, and NCD, a programming language for network interface configuration"
8 url="http://code.google.com/p/badvpn/"
10 depends=('nss' 'openssl' 'iproute2')
12 source=("http://badvpn.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2"
15 md5sums=('1d3f1bf47f0e8aa745d3740460208186'
16 'a5dafc4ce0d0dff6b2ec025b1da4f4f7'
17 '84e8d536246d4423406bc9ca08e42e47')
20 cd ${srcdir}/${pkgname}-${pkgver}
21 cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
26 cd ${srcdir}/${pkgname}-${pkgver}
27 make DESTDIR=${pkgdir} install || return 1
29 install -D -m755 "$srcdir/badvpn-ncd.rc.d" "$pkgdir/etc/rc.d/badvpn-ncd" || return 1
30 install -D -m0644 "$srcdir/badvpn-ncd.conf.d" "$pkgdir/etc/conf.d/badvpn-ncd" || return 1