1 # Maintainer: Strephil <strefil@yandex.ru>
5 pkgdesc="Tunnel6 client."
7 url="http://tunnel6.zexos.org"
11 backup=('etc/tunnel6/client.conf')
12 source=(http://tunnel6.zexos.org/download/src/$pkgname-$pkgver-src.tar.bz2
15 md5sums=('deef70611ad7843010dfcf9cde527b8d'
16 'e595149ca2a09627b54b5ebb51dc4fe1'
17 '6ae8cacd9f89e67ead08d7fb5d6e5138')
19 cd "$srcdir/$pkgname-$pkgver-src/src"
21 mkdir -p $pkgdir/usr/sbin
22 mkdir -p $pkgdir/etc/rc.d
23 sed '/(Q)\(cp\|mkdir\|rm\|rmdir\)/s/ \([^ ]*\)$/ $(DESTDIR)\1/' -i makefile
25 make DESTDIR="$pkgdir" install || return 1
26 chmod go-r /etc/tunnel/client.conf
27 install -D -m755 $startdir/t6_client.rc.d $pkgdir/etc/rc.d/t6_client