[arch-commits] Commit in metasploit/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Mon Mar 22 04:05:43 UTC 2021
Date: Monday, March 22, 2021 @ 04:05:42
Author: foutrelis
Revision: 898618
upgpkg: metasploit 6.0.34-2: switch to ruby2.7
Not yet compatible with Ruby 3.0.0; use the ruby2.7 package for now.
Modified:
metasploit/trunk/PKGBUILD
----------+
PKGBUILD | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-22 03:59:19 UTC (rev 898617)
+++ PKGBUILD 2021-03-22 04:05:42 UTC (rev 898618)
@@ -4,12 +4,12 @@
pkgname=metasploit
pkgver=6.0.34
-pkgrel=1
+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=('ruby' 'libpcap' 'postgresql-libs' 'ruby-bundler' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
+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=('59413db730f8aa400501583effc4258cf78701ee252cf8c7bce048463bb5d632e5d3586a99085d9290ec7650c967748761b1a7524c7bf4e940e7bba6075194d3')
@@ -21,7 +21,7 @@
# https://github.com/bundler/bundler/issues/6882
sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
- bundle config build.nokogiri --use-system-libraries
+ bundle-2.7 config build.nokogiri --use-system-libraries
sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
}
@@ -28,7 +28,7 @@
build() {
cd ${pkgname}-framework-${pkgver}
CFLAGS+=" -I/usr/include/libxml2"
- bundle install -j"$(nproc)" --no-cache --deployment
+ 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
}
@@ -41,7 +41,7 @@
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}"
+ 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
@@ -48,7 +48,7 @@
(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}"
+ echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle-2.7 exec ruby-2.7 /opt/${pkgname}/."${f}" \"\$@\"" > "${f}"
chmod 755 "${f}"
done
)
More information about the arch-commits
mailing list