SHARE
TWEET

Untitled

seberm Jun 10th, 2013 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=metasploit
  2. pkgver=4.6.1
  3. pkgrel=3
  4. pkgdesc="An advanced open-source platform for developing, testing, and using exploit code"
  5. depends=('ruby' 'libpcap' 'postgresql-libs')
  6. optdepends=('java-runtime: msfgui' 'dradis') #sqlite
  7. provides=('metasploit')
  8. conflicts=('metasploit-git')
  9. options=('!strip')
  10. makedepends=('subversion') #ruby-bundler
  11. source=('http://updates.metasploit.com/data/releases/framework-latest.tar.bz2')
  12. url="http://www.metasploit.com/"
  13. license=('BSD')
  14. arch=('any')
  15.  
  16. md5sums=('d558c30a31c52b8e588f317cb516a408')
  17.  
  18. package() {
  19.         mkdir -p "$pkgdir/usr/share" "$pkgdir/usr/bin"
  20.         install -Dm644 "$srcdir/msf3/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  21.         install -Dm644 "$srcdir/msf3/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  22.  
  23.         mv "$srcdir/msf3" "$pkgdir/usr/share/$pkgname"
  24.  
  25.     for f in $pkgdir/usr/share/$pkgname/msf*; do
  26.         ln -s "$f" "$pkgdir/usr/bin"
  27.     done;
  28.  
  29.         # Removes all .svn directories - but after it is not possible to use msfupdate tool
  30.         #echo "Removing all .svn directories..."
  31.         #find $pkgdir/opt/$pkgname -name ".svn" -type d -exec rm -fr {} +
  32. }
RAW Paste Data
Want to get better at Bash?
Learn to code Bash in 2017
Top