This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

littleblackbox PKGBUILD

By: a guest on Oct 20th, 2012  |  syntax: None  |  size: 1.26 KB  |  views: 20  |  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: Marek Otahal <markotahal gmail>
  2.  
  3. pkgname=littleblackbox
  4. pkgver=0.1.3
  5. pkgrel=1
  6. pkgdesc="security/penetration testing tool, search in a collection of thousands of private SSL keys extracted from various embedded devices"
  7. arch=(any)
  8. url="http://code.google.com/p/littleblackbox/wiki/FAQ"
  9. license=('MIT')
  10. depends=('openssl' 'libpcap' 'sqlite3')
  11. makedepends=('tar')
  12. source=("http://littleblackbox.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
  13. sha1sums=('b9e1c0090a2b67b6425bc680cd11e7ce0a7beb32')
  14.  
  15. build() {
  16.         msg "installing $pkgname ..."
  17.         cd $srcdir
  18.         tar xvf $pkgname-$pkgver.tar.gz
  19.         patch -p1 -i ../remove-include.patch
  20.         cd $pkgname-$pkgver
  21.         rm -f bin/$pkgname 2>/dev/null
  22.         cd src
  23.         make distclean
  24.         ./configure
  25.         make
  26. }
  27.  
  28. package() {
  29.         cd $srcdir/$pkgname-$pkgver
  30.        
  31.         install -m755 -d ${pkgdir}/usr/bin $pkgdir/usr/share/doc/$pkgname \
  32.             $pkgdir/usr/share/licenses/$pkgname $pkgdir/usr/share/$pkgname
  33.        
  34.         install -m755 bin/$pkgname ${pkgdir}/usr/bin
  35.         install -m644 bin/lbb.db $pkgdir/usr/share/$pkgname
  36.         ln -s /usr/share/$pkgname/lbb.db $pkgdir/usr/bin/lbb.db
  37.        
  38.         install -m644 docs/LICENSE $pkgdir/usr/share/$pkgname
  39.        
  40.         install -m644 docs/{FAQ,README,submission.txt} $pkgdir/usr/share/doc/$pkgname  
  41.  
  42.         msg "done"
  43. }
  44. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data