[arch-commits] Commit in metasploit/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Oct 27 21:47:35 UTC 2016


    Date: Thursday, October 27, 2016 @ 21:47:34
  Author: anthraxx
Revision: 193816

upgpkg: metasploit 4.12.38-1

Modified:
  metasploit/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-27 21:06:30 UTC (rev 193815)
+++ PKGBUILD	2016-10-27 21:47:34 UTC (rev 193816)
@@ -3,7 +3,7 @@
 # Contributor: Tobias Veit - nIcE <m.on.key.tobi[at]gmail[dot]com>
 
 pkgname=metasploit
-pkgver=4.12.34
+pkgver=4.12.38
 pkgrel=1
 pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
 url='https://www.metasploit.com/'
@@ -13,7 +13,7 @@
 optdepends=('ruby-pg: database support')
 options=('!strip' '!emptydirs')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz)
-sha512sums=('551529246687e6f21af9af749caa9ed5e5abbb4930adc1ac6bce1634a6805b42db4b913a8444ed8453f1722b7f3737edce53a6925c200aa0e2067f4c78ea6b12')
+sha512sums=('0e657f3a9778e886fcaf577d843edc38beda2f4e3227a96cf3e757ab152d18acacc15b1f8a64a89b58bdf12fb8f8d069c788e49720903de5bb3ff8bdfc66554c')
 
 prepare() {
   cd ${pkgname}-framework-${pkgver}
@@ -35,10 +35,18 @@
 
   for f in "${pkgdir}"/opt/${pkgname}/msf*; do
     local _msffile="${pkgdir}/usr/bin/`basename "${f}"`"
-    echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/`basename "${f}"` \"\$@\"" > ${_msffile}
-    chmod 755 ${_msffile}
+    echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/`basename "${f}"` \"\$@\"" > "${_msffile}"
+    chmod 755 "${_msffile}"
   done
 
+  (cd "${pkgdir}/opt/${pkgname}"
+    for f in tools/*/*.rb; do
+      install -Dm 755 "${f}" ".${f}"
+      echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/."${f}" \"\$@\"" > "${f}"
+      chmod 755 "${f}"
+    done
+  )
+
   install -Dm 644 external/zsh/_* -t "${pkgdir}/usr/share/zsh/site-functions"
   install -Dm 644 LICENSE COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -d "${pkgdir}/usr/share/doc"



More information about the arch-commits mailing list