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

niceshaper

By: a guest on Sep 5th, 2012  |  syntax: None  |  size: 1.12 KB  |  views: 25  |  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: Somebody <somebody[at]foo[dot]tld>
  2. pkgname=niceshaper
  3. pkgver=1.0pre1
  4. pkgrel=1
  5. pkgdesc='A tool for bandwidth allocation allowing dynamic traffic shaping, which is more effective than traditional, static HTB shaping.'
  6. url='http://niceshaper.jedwabny.net'
  7. arch=('x86_64' 'i686')
  8. license=('GPL')
  9. depends=('iptables')
  10. source=('http://niceshaper.jedwabny.net/files/niceshaper1.0pre1.tar.bz2')
  11. md5sums=('7865ecd9c4d4d47b142ba8889107c3e3')
  12.  
  13. build() {
  14.     cd "${srcdir}"
  15.     patch src/main.h ../fix.patch
  16.     make
  17.  }
  18.  
  19. package() {
  20.     cd "${srcdir}"
  21.     prefix="../pkg"
  22.  
  23.     # install binary
  24.     mkdir -p ${prefix}/usr/local/bin
  25.     sed -i '1c\PREFIX:=$(DESTDIR)/usr/local' Makefile
  26.     make DESTDIR="${pkgdir}" install
  27.  
  28.     # install config
  29.     mkdir -p ${prefix}/etc/niceshaper
  30.     cp etc/niceshaper/* ${prefix}/etc/niceshaper/
  31.  
  32.     # install syntax files
  33.     mkdir -p ${prefix}/usr/share/vim/vimfiles/syntax/
  34.     cp editors/niceshaper.vim ${prefix}/usr/share/vim/vimfiles/syntax/
  35.  
  36.     # install doc
  37.     mkdir -p ${prefix}/usr/share/doc/niceshaper
  38.     cp -r docs ${prefix}/usr/share/doc/niceshaper
  39. }
clone this paste RAW Paste Data