4 pkgdesc="Config generator for chaosVPN"
6 url="http://wiki.hamburg.ccc.de"
8 makedepends=('git' 'flex')
10 backup=(etc/tinc/chaosvpn.conf etc/conf.d/chaosvpn)
12 _gitroot='git://github.com/ryd/chaosvpn.git'
15 source=(chaosvpn.rc.d)
16 md5sums=('4cc866d9d295f43fcd89a85e3557927a')
19 mkdir -p $pkgdir/usr/sbin
20 mkdir -p $pkgdir/etc/tinc
21 mkdir -p $pkgdir/etc/rc.d
22 mkdir -p $pkgdir/etc/conf.d
26 if [ -e $pkgname ] ; then
31 git clone $_gitroot $_gitname
37 make DESTDIR=$pkgdir install
39 install -m 0755 $srcdir/chaosvpn.rc.d $pkgdir/etc/rc.d/chaosvpn
40 install -m 0644 $srcdir/${_gitname}/debian/default $pkgdir/etc/conf.d/chaosvpn
41 sed -e 's|/sbin/ip|/usr/sbin/ip|g' -i $pkgdir/etc/tinc/chaosvpn.conf