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

iplist - GCC 4.7 test PKGBUILD

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 2.57 KB  |  views: 38  |  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: Romain GALLET < romain.gallet at gmial dot com>
  2. # Contributor: updated by pelle.k
  3. # Contributor: mrbug <devmrbug at google's mail service dot com>
  4. pkgname=iplist
  5. pkgver=0.29
  6. pkgrel=3
  7. pkgdesc="list-based packet handler and blocker which uses the netfilter netlink-queue library (kernel 2.6.14 or later)"
  8. arch=('i686' 'x86_64')
  9. url="http://iplist.sourceforge.net"
  10. license=('GPL')
  11. depends=('libnetfilter_queue' 'gcc' 'libnfnetlink' 'zlib' 'linux')
  12. makedepends=('patch' 'wget')
  13. optdepends=('java-runtime: GUI support')
  14. conflicts=('moblock')
  15. backup=('etc/ipblock.conf'
  16.         'etc/ipblock.lists')
  17. options=('docs' 'strip' 'zipman')
  18. install=$pkgname.install
  19.  
  20. source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
  21.         $pkgname.install rc.ipblock ipblock.patch nfq.patch
  22.         http://sites.google.com/site/secondhelper75/gcc47.patch)
  23.  
  24. md5sums=('e1f8186621c5ba79f82cdeffe80429d5'  
  25.         '8493c25ec1e509c0d8ceea81549bcfd4'
  26.         '3fe445f3a3bed95f76565977ccd763b9'
  27.         '09a4d832ca261dad7f6f73add71ab2a4'
  28.         'c9c427b71dde9c4ba32f1a3bcd0d78bf'
  29.         '92515708743c113308aaac7ca4917153')
  30.  
  31. build() {
  32.  
  33. #GCC 4.7 compatibility
  34.   patch -p1 < gcc47.patch
  35.  
  36.   mkdir -p ${pkgdir}/usr/sbin
  37.   mkdir -p ${pkgdir}/etc/rc.d
  38.   mkdir -p ${pkgdir}/usr/share/applications
  39.   mkdir -p ${pkgdir}/usr/share/pixmaps
  40.   mkdir -p ${pkgdir}/usr/share/java
  41.   mkdir -p ${pkgdir}/usr/share/man/man8
  42.   mkdir -p ${pkgdir}/var/cache/iplist
  43.   mkdir -p ${pkgdir}/usr/share/doc/iplist
  44.  
  45.   install -Dm 664 ${srcdir}/$pkgname/ipblock.8 ${pkgdir}/usr/share/man/man8
  46.   install -Dm 664 ${srcdir}/$pkgname/ipblock.conf ${pkgdir}/etc/
  47.   install -Dm 664 ${srcdir}/$pkgname/ipblock.lists ${pkgdir}/etc/
  48.   install -Dm 664 ${srcdir}/$pkgname/allow.p2p ${pkgdir}/var/cache/iplist/
  49.   install -Dm 664 ${srcdir}/$pkgname/ipblock.png ${pkgdir}/usr/share/pixmaps
  50.   install -Dm 664 ${srcdir}/$pkgname/ipblock.desktop ${pkgdir}/usr/share/applications
  51.   install -Dm 664 ${srcdir}/$pkgname/changelog ${pkgdir}/usr/share/doc/iplist
  52.   install -Dm 664 ${srcdir}/$pkgname/COPYING ${pkgdir}/usr/share/doc/iplist
  53.   install -Dm 664 ${srcdir}/$pkgname/INSTALL ${pkgdir}/usr/share/doc/iplist
  54.   install -Dm 755 ${srcdir}/rc.ipblock ${pkgdir}/etc/rc.d/ipblock
  55.  
  56.   cd ${srcdir}/$pkgname
  57.  
  58.   patch --no-backup-if-mismatch ${srcdir}/iplist/src/nfq.cc ${srcdir}/nfq.patch || return 1
  59.   make || return 1
  60.   make DESTDIR="${pkgdir}" install || return 1
  61.  
  62.   touch ${pkgdir}/var/cache/iplist/allow-perm.p2p
  63.   touch ${pkgdir}/var/cache/iplist/allow-temp.p2p
  64.   patch --no-backup-if-mismatch ${pkgdir}/usr/sbin/ipblock ${srcdir}/ipblock.patch || return 1
  65. }
clone this paste RAW Paste Data