SHARE
TWEET

sipvicious - PKGBUILD - AUR - Arch Linux

a guest Dec 4th, 2017 861 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
  2. # Cleanup: GI_Jack <iamjacksemail@hackermail.com>
  3.  
  4. pkgname=sipvicious
  5. pkgver=0.2.8
  6. pkgrel=1
  7. pkgdesc="Tools for auditing SIP devices"
  8. arch=('i686' 'x86_64')
  9. url="http://blog.sipvicious.org"
  10. license=('GPLv2')
  11. depends=('python2')
  12. install=sipvicious.install
  13. source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/EnableSecurity/sipvicious/archive/v${pkgver}.tar.gz")
  14. conflicts=('sipvicious-svn')
  15. sha256sums=('8f14d4010e99cd0a2d71931591cfd145fa578114c1bef9c356fdbe4dc168220c')
  16.  
  17. build() {
  18.   #Yes python has bytecote
  19.   cd ${srcdir}/${pkgname}-${pkgver}
  20.   python2 -m compileall *
  21. }
  22.  
  23. package() {
  24.   cd ${srcdir}/${pkgname}-${pkgver}
  25.   #Fix Python
  26.   chmod +x *.py
  27.   sed -i "s:/usr/bin/env python:/usr/bin/env python2:" *.py
  28.  
  29.   install -dm 755 ${pkgdir}/usr/bin
  30.   install -dm 755 ${pkgdir}/usr/share/${pkgname}
  31.   cp -r ${srcdir}/${pkgname}-${pkgver}/* ${pkgdir}/usr/share/${pkgname}/
  32.   rm -rf ${pkgdir}/usr/share/${pkgname}/man1
  33.  
  34.   #Man pages
  35.   install -dm 755 ${pkgdir}/usr/share/man/
  36.   cp -r ${srcdir}/${pkgname}-${pkgver}/man1 ${pkgdir}/usr/share/man/
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top