1 # Maintainer: Ivan Gasperoni <gaspe at libero dot it>
5 pkgdesc="Client to connect to the Freenet6 IPv6 tunnel broker service"
7 url="http://gogonet.gogo6.com/"
11 backup=('opt/gogoc/bin/gogoc.conf')
13 source=(http://gogo6.com/downloads/gogoc-1_2-RELEASE.tar.gz
18 servermsgsender.patch)
20 md5sums=('41177ed683cf511cc206c7782c37baa9'
21 '96acc1599313c7ee1ab0fa4d044a8f62'
22 'b1296b8b5adf195f13a581dcdfa6f889'
23 'b40b3e2da5dafb5564a634b7867a9b69'
24 '842b6ae576d2795d014971039aaa05cc'
25 '4f6e69890161142220268181d4f915cf')
28 cd ${startdir}/src/gogoc-1_2-RELEASE/gogoc-messaging/src
29 patch -p0 < ${startdir}/clientmsgsender.patch || return 1
30 patch -p0 < ${startdir}/servermsgsender.patch || return 1
31 cd ${startdir}/src/gogoc-1_2-RELEASE
32 make platform=linux all || return 1
33 make platform=linux installdir=${startdir}/pkg/opt/$pkgname/ install
34 sed -i -e "s/^gogoc_dir=.*/gogoc_dir=\/opt\/gogoc\//" ${startdir}/pkg/opt/$pkgname/bin/gogoc.conf
35 sed -i -e "s/^gogoc_dir=.*/gogoc_dir=/" ${startdir}/pkg/opt/$pkgname/bin/gogoc.conf.sample
36 sed -i -e "s/ipconfig=\/sbin\/ip/ipconfig=\/usr\/sbin\/ip/" ${startdir}/pkg/opt/$pkgname/template/linux.sh
37 sed -i -e "s#rtadvd_pid=.*#rtadvd_pid=/var/run/radvd.pid#" ${startdir}/pkg/opt/$pkgname/template/linux.sh
38 sed -i -e "s#/etc/init.d/radvd#/etc/rc.d/radvd#" ${startdir}/pkg/opt/$pkgname/template/linux.sh
39 sed -i -e "s#Exec \$rtadvd -u radvd#Exec \$rtadvd#" ${startdir}/pkg/opt/$pkgname/template/linux.sh
40 cd ${startdir}/pkg/opt/$pkgname/bin
41 patch -p1 < ${startdir}/gogoc.patch || return 1
42 mkdir -p $startdir/pkg/usr/bin
43 mkdir -p $startdir/pkg/etc/$pkgname
44 mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
45 mkdir -p $startdir/pkg/etc/rc.d
46 ln -s /opt/$pkgname/bin/gogoc.conf /$startdir/pkg/etc/$pkgname/
47 ln -s /opt/$pkgname/bin/gogoc.conf.sample /$startdir/pkg/etc/$pkgname/
48 install -m 755 $startdir/src/gogocd $startdir/pkg/etc/rc.d/
49 install -m 755 $startdir/src/gogoc $startdir/pkg/usr/bin/
50 install -m 644 $startdir/src/gogoc-1_2-RELEASE/CLIENT-LICENSE.TXT $startdir/pkg/usr/share/licenses/$pkgname/