Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AUR hamachi

By: a guest on Sep 30th, 2011  |  syntax: Bash  |  size: 1.54 KB  |  views: 114  |  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: dundee <daniel@milde.cz>
  2. # Contributor: Lauri Niskanen <ape@ape3000.com>
  3. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  4. # Contributor: metzen <metzen@gmail.com>
  5.  
  6. pkgname=hamachi
  7. pkgver=0.9.9.9_20
  8. _pkgver=0.9.9.9-20
  9. pkgrel=7
  10. pkgdesc="zero-configuration virtual private networking tool"
  11. url="http://www.hamachi.cc/"
  12. license=('custom')
  13. [ "${CARCH}" = "x86_64" ] && depends=('lib32-glibc' 'lib32-gcc-libs')
  14. arch=('i686' 'x86_64')
  15. install=hamachi.install
  16. options=('!strip')
  17. source=("http://files.hamachi.cc/linux/$pkgname-$_pkgver-lnx.tar.gz"
  18.         'tuntap' 'tuncfg-x86_64.patch')
  19. md5sums=('27e4c926d0aa03de3573c0b7acf032a6'
  20.         '4c8d1ce5bfff40bbda7705e220ab05e2'
  21.         '5b27616ff3cada53afa449f4e3a1f0ba')
  22.  
  23. build() {
  24.   cd $srcdir/$pkgname-$_pkgver-lnx/tuncfg
  25.  
  26.   [ "${CARCH}" = "x86_64" ] && patch -p0 < $srcdir/tuncfg-x86_64.patch
  27.  
  28.   # Fix misuse of open() function
  29.   # example: https://bugzilla.redhat.com/show_bug.cgi?id=330971
  30.   patch -p0 -i $srcdir/fix-open-lock.patch
  31.  
  32.   make clean
  33.   make
  34. }
  35.  
  36. package() {
  37.   cd $srcdir/$pkgname-$_pkgver-lnx
  38.  
  39.   install -Dm 755 hamachi "$pkgdir/usr/bin/hamachi"
  40.   ln -sf hamachi "$pkgdir/usr/bin/hamachi-init"
  41.   install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  42.   install -Dm 644 LICENSE.tuncfg "$pkgdir/usr/share/licenses/$pkgname/LICENSE.tuncfg"
  43.   install -Dm 644 README "$pkgdir/usr/share/doc/hamachi/README"
  44.  
  45.   cd $srcdir/$pkgname-$_pkgver-lnx/tuncfg
  46.  
  47.   install -Dm 700 tuncfg "$pkgdir/usr/sbin/tuncfg"
  48.   install -Dm 755 "$srcdir/tuntap" "$pkgdir/etc/rc.d/tuntap"
  49. }
  50.