[arch-commits] Commit in metasploit/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Jan 4 04:08:50 UTC 2018


    Date: Thursday, January 4, 2018 @ 04:08:49
  Author: foutrelis
Revision: 278439

archrelease: copy trunk to community-staging-x86_64

Added:
  metasploit/repos/community-staging-x86_64/
  metasploit/repos/community-staging-x86_64/PKGBUILD
    (from rev 278438, metasploit/trunk/PKGBUILD)
  metasploit/repos/community-staging-x86_64/metasploit-dont-restrict-aggregator.patch
    (from rev 278438, metasploit/trunk/metasploit-dont-restrict-aggregator.patch)

-------------------------------------------+
 PKGBUILD                                  |   62 ++++++++++++++++++++++++++++
 metasploit-dont-restrict-aggregator.patch |   25 +++++++++++
 2 files changed, 87 insertions(+)

Copied: metasploit/repos/community-staging-x86_64/PKGBUILD (from rev 278438, metasploit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-01-04 04:08:49 UTC (rev 278439)
@@ -0,0 +1,62 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sabart Otto - Seberm <seberm[at]seberm[dot]com>
+# Contributor: Tobias Veit - nIcE <m.on.key.tobi[at]gmail[dot]com>
+
+pkgname=metasploit
+pkgver=4.16.24
+pkgrel=2
+pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
+url='https://www.metasploit.com/'
+arch=('x86_64')
+license=('BSD')
+depends=('ruby2.4' 'libpcap' 'postgresql-libs' 'ruby2.4-bundler' 'sqlite' 'libxslt' 'git')
+optdepends=('ruby-pg: database support')
+options=('!strip' '!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz
+        metasploit-dont-restrict-aggregator.patch)
+sha256sums=('86af2838a70238515153687fef66d70c6001c441c3b35d6c74f8be7488312ce8'
+            'f1a6d0369f24eb622d23dd0fed428cf6404f74cfb0a8001af5d1e18df026d9f6')
+sha512sums=('400bc290d751058db18fdac044ba4925d0e995a9d7d7c0c72f4820c7af18afb0fc8944542bfe048d46444c7afec6974e639c34a84d8e75457f7bf890649c6a11'
+            '71611dd350a3f74b6ba61d1508b57d357de221bb676d25d96d5bbcd898e5cabb978ffb9c6c3b37559055fb886c11fe4fed64d8b701d1d94dfff057a32ed53b00')
+
+prepare() {
+  cd ${pkgname}-framework-${pkgver}
+  bundle-2.4 config build.nokogiri --use-system-libraries
+  sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
+  patch -R -p1 < "${srcdir}/metasploit-dont-restrict-aggregator.patch"
+}
+
+build() {
+  cd ${pkgname}-framework-${pkgver}
+  bundle-2.4 install -j"$(nproc)" --no-cache --deployment
+  find vendor/bundle/ruby -exec chmod o+r '{}' \;
+}
+
+package() {
+  cd ${pkgname}-framework-${pkgver}
+
+  install -d "${pkgdir}/opt/${pkgname}" "${pkgdir}/usr/bin"
+  cp -r . "${pkgdir}/opt/${pkgname}"
+
+  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-2.4 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-2.4 /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"
+  mv "${pkgdir}/opt/${pkgname}/documentation" "${pkgdir}/usr/share/doc/${pkgname}"
+  rm "${pkgdir}/usr/bin/msfupdate"
+}
+
+# vim: ts=2 sw=2 et:

Copied: metasploit/repos/community-staging-x86_64/metasploit-dont-restrict-aggregator.patch (from rev 278438, metasploit/trunk/metasploit-dont-restrict-aggregator.patch)
===================================================================
--- community-staging-x86_64/metasploit-dont-restrict-aggregator.patch	                        (rev 0)
+++ community-staging-x86_64/metasploit-dont-restrict-aggregator.patch	2018-01-04 04:08:49 UTC (rev 278439)
@@ -0,0 +1,25 @@
+From 5458b58a74a035e141a939dff0a85eff1330bdae Mon Sep 17 00:00:00 2001
+From: Jeffrey Martin <Jeffrey_Martin at rapid7.com>
+Date: Wed, 18 Oct 2017 13:21:02 -0500
+Subject: [PATCH] restrict aggregator on arm for now
+
+---
+ Gemfile      | 5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/Gemfile b/Gemfile
+index 12b6341b41c..012578df9fc 100755
+--- a/Gemfile
++++ b/Gemfile
+@@ -19,7 +19,10 @@ group :development do
+   # module documentation
+   gem 'octokit'
+   # Metasploit::Aggregator external session proxy
+-  gem 'metasploit-aggregator'
++  gem 'metasploit-aggregator' if [
++    'x86-mingw32', 'x64-mingw32',
++    'x86_64-linux', 'x86-linux',
++    'darwin'].include?(RUBY_PLATFORM.gsub(/.*darwin.*/, 'darwin'))
+ end
+ 
+ group :development, :test do



More information about the arch-commits mailing list