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

PKGBUILD

By: a guest on May 7th, 2013  |  syntax: None  |  size: 1.29 KB  |  views: 59  |  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. pkgname=gufw
  2. pkgver=13.04.0
  3. pkgrel=3
  4. pkgdesc="An easy, intuitive way to manage your Linux firewall"
  5. arch=('any')
  6. url="http://gufw.org"
  7. license=('GPL3')
  8. depends=('dbus' 'dbus-python' 'gtk3' 'gnome-icon-theme-symbolic' 'hicolor-icon-theme' 'notification-daemon' 'polkit' 'python2-gobject' 'ufw')
  9. makedepends=('python2-distutils-extra')
  10. install=$pkgname.install
  11. source=("https://launchpad.net/ubuntu/+archive/primary/+files/gui-ufw_${pkgver}.orig.tar.gz"
  12.         "org.gui-ufw.pkexec.gufw.policy")
  13.  
  14. package() {
  15.   cd "${srcdir}/gui-ufw-${pkgver}"
  16.  
  17.   sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  18.     -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  19.     $(find . -name '*.py')
  20.   sed -i "s|python ${LOCATIONS[${i}]}|python2 ${LOCATIONS[${i}]}|" bin/gufw
  21.  
  22.   python2 setup.py build install --root="${pkgdir}"
  23.  
  24.   find "${pkgdir}" -type d | xargs chmod 755
  25.   find "${pkgdir}" -type f | xargs chmod 644
  26.   chmod -R 755 "${pkgdir}/usr/bin"
  27.   chmod 755 "${pkgdir}/usr/share/gufw/daemon/gufw_daemon.py"
  28.  
  29.   #PolicyKit execution scheme (need some tests)
  30.   install -m755 -d $pkgdir/usr/share/polkit-1/actions/
  31.   install -m644 $srcdir/org.gui-ufw.pkexec.gufw.policy $pkgdir/usr/share/polkit-1/actions/
  32.  
  33. }
  34. md5sums=('59c220d030ec11b5fb0b9affa9e833a2'
  35.          '6e5e30a0842e692c819f5b3e6c9525a8')
clone this paste RAW Paste Data