[arch-commits] Commit in metasploit/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Thu Jul 16 22:01:52 UTC 2020
Date: Thursday, July 16, 2020 @ 22:01:52
Author: anthraxx
Revision: 664228
archrelease: copy trunk to community-x86_64
Added:
metasploit/repos/community-x86_64/PKGBUILD
(from rev 664226, metasploit/trunk/PKGBUILD)
Deleted:
metasploit/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 128 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 64 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-16 22:01:51 UTC (rev 664227)
+++ PKGBUILD 2020-07-16 22:01:52 UTC (rev 664228)
@@ -1,64 +0,0 @@
-# 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=5.0.88
-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' 'libpcap' 'postgresql-libs' 'ruby-bundler' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
-options=('!strip' '!emptydirs')
-source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('7f7fb87cc54702f9b1a6792b41101fdd944db0fe037d7ffb5d833d042d5acc639a2abfbfa9e65e22ad44040385496ca975f682a5da22a01fdb7cb2b2fb4eee84')
-b2sums=('4056e442986321efd8a150565d33861bc86a364379958c10ba71712a46713b077d0b8752f452098ebde269aa312d36c9a4b1be8d8960bb819fde4393cb8418c7')
-
-prepare() {
- cd ${pkgname}-framework-${pkgver}
-
- # https://github.com/bundler/bundler/issues/6882
- sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
-
- bundle 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 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 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 /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
-}
-
-# vim: ts=2 sw=2 et:
Copied: metasploit/repos/community-x86_64/PKGBUILD (from rev 664226, metasploit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-16 22:01:52 UTC (rev 664228)
@@ -0,0 +1,64 @@
+# 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=5.0.99
+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' 'libpcap' 'postgresql-libs' 'ruby-bundler' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git')
+options=('!strip' '!emptydirs')
+source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('7f52253a1dac2fae94e06b889de62f4413cb0fade422facf72f2b3bfef36d77139793cbcd74096d94ec0924cb8884fd3be7048294e92929d0f8505bba2c26f45')
+b2sums=('d49dcb46ec810a64d2a30b64af7e041bfb1b9f11106b8c0642531f072426d5110f1cb474a1c53d952e3832462c3e449c33c1b48372e3e3682df8460659759bdb')
+
+prepare() {
+ cd ${pkgname}-framework-${pkgver}
+
+ # https://github.com/bundler/bundler/issues/6882
+ sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock
+
+ bundle 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 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 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 /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
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list