[arch-commits] Commit in metasploit/repos/community-x86_64 (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Wed Aug 10 22:31:18 UTC 2022


    Date: Wednesday, August 10, 2022 @ 22:31:18
  Author: anthraxx
Revision: 1265134

archrelease: copy trunk to community-x86_64

Added:
  metasploit/repos/community-x86_64/PKGBUILD
    (from rev 1265133, metasploit/trunk/PKGBUILD)
Deleted:
  metasploit/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  136 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 68 insertions(+), 68 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-10 22:31:14 UTC (rev 1265133)
+++ PKGBUILD	2022-08-10 22:31:18 UTC (rev 1265134)
@@ -1,68 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: kpcyrd <kpcyrd[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=6.2.10
-pkgrel=1
-pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
-url='https://github.com/rapid7/metasploit-framework'
-arch=('x86_64')
-license=('BSD')
-depends=('ruby' 'ruby-bundler' 'libpcap' 'postgresql-libs' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
-options=('!strip' '!emptydirs')
-source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('bd70e3f65071541546a5b5a13594940259971e4cb421dc6a6e086712e3365cd887a86684dfc29b82d5e942f9320905132ea0f6eb29a3ec1d55e17d8096698166')
-b2sums=('c654975099da7334f7f6a51ce799f581fc954774e13085da8b8e775b33f7d41e6729d26aa48b0631656240bfdede2bf7ad2218d2403a20de0a7c11a59223a657')
-
-prepare() {
-  cd ${pkgname}-framework-${pkgver}
-
-  # https://github.com/undler/bundler/issues/6882
-  sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
-
-  bundle config build.nokogiri --use-system-libraries
-  bundle config set --local deployment 'true'
-  sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
-}
-
-build() {
-  cd ${pkgname}-framework-${pkgver}
-  CFLAGS+=" -I/usr/include/libxml2"
-  bundle install -j"$(nproc)" --no-cache
-  find vendor/bundle/ruby -exec chmod o+r '{}' \;
-  find vendor/bundle/ruby \( -name gem_make.out -or -name mkmf.log \) -delete
-}
-
-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 exec 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 exec 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"
-  mv "${pkgdir}/opt/${pkgname}/documentation" "${pkgdir}/usr/share/doc/${pkgname}"
-  rm "${pkgdir}/usr/bin/msfupdate"
-  rm -r "${pkgdir}"/opt/metasploit/vendor/bundle/ruby/*/cache
-  sed -e '/^BUNDLE_JOBS/d' -i "${pkgdir}/opt/metasploit/.bundle/config"
-  find "${pkgdir}/opt/metasploit/vendor/bundle/ruby/" -name Makefile -delete
-}
-
-# vim: ts=2 sw=2 et:

Copied: metasploit/repos/community-x86_64/PKGBUILD (from rev 1265133, metasploit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-10 22:31:18 UTC (rev 1265134)
@@ -0,0 +1,68 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: kpcyrd <kpcyrd[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=6.2.11
+pkgrel=1
+pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
+url='https://www.metasploit.com/'
+arch=('x86_64')
+license=('BSD')
+depends=('ruby' 'ruby-bundler' 'libpcap' 'postgresql-libs' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
+options=('!strip' '!emptydirs')
+source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('b0ccb892dd74353218757b0700fa5a235427bf6fd3218374da35b9a469af1f22f6eb5875750e5d42fd0b115228374e6113cf6d8d1bee4a2c7f3ca5b893552a8c')
+b2sums=('7fc2dd522fa0e3a8e3e358fa5bb3c3a231dfc62cfcaa6fbafa1476ccf4e9546b2b596b6daf1422f40cdf30b243007fae450c726f4e22ae9e5d30ac9a6c385d87')
+
+prepare() {
+  cd ${pkgname}-framework-${pkgver}
+
+  # https://github.com/undler/bundler/issues/6882
+  sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
+
+  bundle config build.nokogiri --use-system-libraries
+  bundle config set --local deployment 'true'
+  sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
+}
+
+build() {
+  cd ${pkgname}-framework-${pkgver}
+  CFLAGS+=" -I/usr/include/libxml2"
+  bundle install -j"$(nproc)" --no-cache
+  find vendor/bundle/ruby -exec chmod o+r '{}' \;
+  find vendor/bundle/ruby \( -name gem_make.out -or -name mkmf.log \) -delete
+}
+
+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 exec 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 exec 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"
+  mv "${pkgdir}/opt/${pkgname}/documentation" "${pkgdir}/usr/share/doc/${pkgname}"
+  rm "${pkgdir}/usr/bin/msfupdate"
+  rm -r "${pkgdir}"/opt/metasploit/vendor/bundle/ruby/*/cache
+  sed -e '/^BUNDLE_JOBS/d' -i "${pkgdir}/opt/metasploit/.bundle/config"
+  find "${pkgdir}/opt/metasploit/vendor/bundle/ruby/" -name Makefile -delete
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list