[arch-commits] Commit in metasploit/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at gemini.archlinux.org
Wed Mar 30 23:55:59 UTC 2022
Date: Wednesday, March 30, 2022 @ 23:55:59
Author: anthraxx
Revision: 1177884
archrelease: copy trunk to community-x86_64
Added:
metasploit/repos/community-x86_64/PKGBUILD
(from rev 1177883, metasploit/trunk/PKGBUILD)
Deleted:
metasploit/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 67 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-30 23:55:55 UTC (rev 1177883)
+++ PKGBUILD 2022-03-30 23:55:59 UTC (rev 1177884)
@@ -1,67 +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.1.31
-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=('ruby2.7' '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=('d51800bd62a1c0cf0ec5d4e3544de1730c45e18b87c858d1155b12e03841f67a4c539cc7885894d1fad6fd424005226d6445d89ad1cb79b87a8714d3119d58fd')
-b2sums=('35d0d8a80347fb7fd75a0adee273f492afdf48f068971bbb29fe3d5e5167a0ec708e974842c810a337ad2bbade2e208a88d3569a2a01469675c08748fa7d86c1')
-
-prepare() {
- cd ${pkgname}-framework-${pkgver}
-
- # https://github.com/bundler/bundler/issues/6882
- sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
-
- bundle-2.7 config build.nokogiri --use-system-libraries
- sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
-}
-
-build() {
- cd ${pkgname}-framework-${pkgver}
- CFLAGS+=" -I/usr/include/libxml2"
- bundle-2.7 install -j"$(nproc)" --no-cache --deployment
- 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 bundle-2.7 exec ruby-2.7 /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-2.7 exec ruby-2.7 /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 -ls -delete
-}
-
-# vim: ts=2 sw=2 et:
Copied: metasploit/repos/community-x86_64/PKGBUILD (from rev 1177883, metasploit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-30 23:55:59 UTC (rev 1177884)
@@ -0,0 +1,67 @@
+# 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.1.35
+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=('ruby2.7' '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=('76628d8bd236683b51e2b8d16fcbde44c57dd3d07f28caeb9e258373da9371725061d387523961ab0fa7a932c06761f307b7b1aaa566e57b2dfa8e96a1e17189')
+b2sums=('2011d5fa189d5d72f811222e8300eda2ca36bb80f4c960692a149a38dd27793648b2025c8e66e9608c5a27835dbfeccef94efd1bb8e81082bed320f2359c4bb0')
+
+prepare() {
+ cd ${pkgname}-framework-${pkgver}
+
+ # https://github.com/bundler/bundler/issues/6882
+ sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
+
+ bundle-2.7 config build.nokogiri --use-system-libraries
+ sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
+}
+
+build() {
+ cd ${pkgname}-framework-${pkgver}
+ CFLAGS+=" -I/usr/include/libxml2"
+ bundle-2.7 install -j"$(nproc)" --no-cache --deployment
+ 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 bundle-2.7 exec ruby-2.7 /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-2.7 exec ruby-2.7 /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 -ls -delete
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list