Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 11th, 2013  |  syntax: Bash  |  size: 2.76 KB  |  views: 131  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Ivan Gasperoni <gulpegaspe at gmail dot com>
  2. pkgname=gogoc
  3. pkgver=1.2
  4. pkgrel=16
  5. pkgdesc="Client to connect to the Freenet6 IPv6 tunnel broker service"
  6. arch=('i686' 'x86_64')
  7. url="http://www.gogo6.com/profile/gogoCLIENT"
  8. license=('custom')
  9. depends=('openssl' 'net-tools')
  10. conflicts=('gw6c')
  11. backup=('opt/gogoc/bin/gogoc.conf')
  12. options=(!makeflags)
  13. source=(http://content.gogo6.com/gogoc-1_2-RELEASE.tar.gz
  14.         gogoc
  15.         gogoc.patch
  16.         clientmsgsender.patch
  17.         servermsgsender.patch
  18.         tspauthpassdss.patch
  19.         gogoc.service)
  20. install=gogoc.install
  21. md5sums=('41177ed683cf511cc206c7782c37baa9'
  22.          'b1296b8b5adf195f13a581dcdfa6f889'
  23.          'b40b3e2da5dafb5564a634b7867a9b69'
  24.          '842b6ae576d2795d014971039aaa05cc'
  25.          '4f6e69890161142220268181d4f915cf'
  26.          '71ba26961540368c45df2630ce74a99a'
  27.          '9ac7ae529a31a13855df7e03cf00940d')
  28.  
  29. build() {
  30.         cd "$srcdir/gogoc-1_2-RELEASE/gogoc-messaging/src"
  31.         patch -Np0 < "$srcdir/../clientmsgsender.patch"
  32.         patch -Np0 < "$srcdir/../servermsgsender.patch"
  33.         cd "$srcdir/gogoc-1_2-RELEASE/gogoc-tsp/src/tsp"
  34.         patch -Np0 < "$srcdir/../tspauthpassdss.patch"
  35.         cd "$srcdir/gogoc-1_2-RELEASE"
  36.         make platform=linux all
  37. }
  38.  
  39. package() {
  40.         cd "$srcdir/gogoc-1_2-RELEASE"
  41.         make platform=linux installdir="$pkgdir/opt/$pkgname" install
  42.         sed -i -e "s/^gogoc_dir=.*/gogoc_dir=\/opt\/gogoc\//" "$pkgdir/opt/$pkgname/bin/gogoc.conf"
  43.         sed -i -e "s/^gogoc_dir=.*/gogoc_dir=/" "$pkgdir/opt/$pkgname/bin/gogoc.conf.sample"
  44.         sed -i -e "s/ipconfig=\/sbin\/ip/ipconfig=\/usr\/sbin\/ip/" "$pkgdir/opt/$pkgname/template/linux.sh"
  45.         sed -i -e "s#rtadvd_pid=.*#rtadvd_pid=/var/run/radvd.pid#" "$pkgdir/opt/$pkgname/template/linux.sh"
  46.         sed -i -e "s#/etc/init.d/radvd stop#systemctl stop radvd#" "$pkgdir/opt/$pkgname/template/linux.sh"
  47.         sed -i -e "s#Exec \$rtadvd -u radvd#Exec \$rtadvd#" "$pkgdir/opt/$pkgname/template/linux.sh"
  48.         cd "$pkgdir/opt/$pkgname/bin"
  49.         patch -Np1 < "$srcdir/../gogoc.patch"
  50.         install -d -m 755 "$pkgdir/usr/bin"
  51.         install -d -m 755 "$pkgdir/usr/share/$pkgname"
  52.         install -d -m 755 "$pkgdir/etc/$pkgname"
  53.         install -d -m 755 "$pkgdir/usr/share/licenses/$pkgname"
  54.         install -d -m 755 "$pkgdir/usr/lib/systemd/system"
  55.         ln -s "/opt/$pkgname/bin/gogoc.conf" "/$pkgdir/etc/$pkgname/"
  56.         ln -s "/opt/$pkgname/bin/gogoc.conf.sample" "/$pkgdir/usr/share/$pkgname/"
  57.         install -m 755 "$srcdir/gogoc" "$pkgdir/usr/bin/"
  58.         install -m 644 "$srcdir/gogoc-1_2-RELEASE/CLIENT-LICENSE.TXT" "$pkgdir/usr/share/licenses/$pkgname/"
  59.         install -m 644 "$srcdir/gogoc.service" "$pkgdir/usr/lib/systemd/system/"
  60. }
clone this paste RAW Paste Data