[arch-commits] Commit in metasploit/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sat May 13 20:28:44 UTC 2017
Date: Saturday, May 13, 2017 @ 20:28:43
Author: anthraxx
Revision: 227920
upgpkg: metasploit 4.14.17-1
Modified:
metasploit/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-13 20:25:42 UTC (rev 227919)
+++ PKGBUILD 2017-05-13 20:28:43 UTC (rev 227920)
@@ -3,27 +3,30 @@
# Contributor: Tobias Veit - nIcE <m.on.key.tobi[at]gmail[dot]com>
pkgname=metasploit
-pkgver=4.13.22
+pkgver=4.14.17
pkgrel=1
pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
url='https://www.metasploit.com/'
arch=('i686' 'x86_64')
license=('BSD')
-depends=('ruby2.3' 'libpcap' 'postgresql-libs' 'ruby2.3-bundler' 'sqlite' 'libxslt' 'git')
+depends=('ruby' 'libpcap' 'postgresql-libs' 'ruby-bundler' 'sqlite' 'libxslt' 'git' 'clang')
optdepends=('ruby-pg: database support')
options=('!strip' '!emptydirs')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz)
-sha512sums=('da048bbfdabb0b4be84edcc5db72171be87e2bd55f23f6fb0a6b1054c4e9e31cd127403fbb625a0173194d4a033c49697dc61ff282a231251cbffc90f5486c2b')
+sha256sums=('f3bf98f0b6e5113616a384c786043dfd57c774555d901ae66ac05ca727f11c9b')
+sha512sums=('b6b05acdf881b04ee8beaf8af1c5b755516667c3b9b458d579d9ac4819817f4203c21e24d246c1459f724682b635f626529f49b5139ad258898ac8d37bcbb47d')
prepare() {
cd ${pkgname}-framework-${pkgver}
- bundle-2.3 config build.nokogiri --use-system-libraries
+ bundle config build.nokogiri --use-system-libraries
sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec
}
build() {
cd ${pkgname}-framework-${pkgver}
- bundle-2.3 install -j"$(nproc)" --no-cache --deployment
+ export CC=clang
+ export CXX=clang++
+ bundle install -j"2" --no-cache --deployment
find vendor/bundle/ruby -exec chmod o+r '{}' \;
}
@@ -35,7 +38,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-2.3 exec ruby-2.3 /opt/${pkgname}/`basename "${f}"` \"\$@\"" > "${_msffile}"
+ echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/`basename "${f}"` \"\$@\"" > "${_msffile}"
chmod 755 "${_msffile}"
done
@@ -42,7 +45,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-2.3 exec ruby-2.3 /opt/${pkgname}/."${f}" \"\$@\"" > "${f}"
+ echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/."${f}" \"\$@\"" > "${f}"
chmod 755 "${f}"
done
)
More information about the arch-commits
mailing list