[arch-commits] Commit in metasploit/repos/community-x86_64 (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Fri Jul 6 00:07:26 UTC 2018
Date: Friday, July 6, 2018 @ 00:07:25
Author: anthraxx
Revision: 353271
archrelease: copy trunk to community-x86_64
Added:
metasploit/repos/community-x86_64/PKGBUILD
(from rev 353270, metasploit/trunk/PKGBUILD)
Deleted:
metasploit/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 115 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-06 00:07:17 UTC (rev 353270)
+++ PKGBUILD 2018-07-06 00:07:25 UTC (rev 353271)
@@ -1,57 +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=4.16.60
-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' 'git')
-options=('!strip' '!emptydirs')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz)
-sha256sums=('f55ac839bfb14eb67711c448c73b79ea6efb75f9e3ddf92e4151318f6b6ed2e2')
-sha512sums=('abfe0daa25b202261f5db6dd3811bb46c491415217e0c9c956b3deba70b03c6c4de802a274c7c93b9765616bd9e97e360268fbadd1bfaea71bf05e82a6401251')
-
-prepare() {
- cd ${pkgname}-framework-${pkgver}
- 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 install -j"$(nproc)" --no-cache --deployment
- find vendor/bundle/ruby -exec chmod o+r '{}' \;
-}
-
-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"
-}
-
-# vim: ts=2 sw=2 et:
Copied: metasploit/repos/community-x86_64/PKGBUILD (from rev 353270, metasploit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-07-06 00:07:25 UTC (rev 353271)
@@ -0,0 +1,58 @@
+# 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=4.17.0
+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' 'git')
+options=('!strip' '!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz)
+sha256sums=('845a57ab71993328bd51c57f38093d99fa281e62b82c1d7af9cd073d3b4495df')
+sha512sums=('3edc7633a5070bd4b4abb4998890bdd8177d894949c1cf0a0212042a0cc08620df99917dc317949532e2f1a5a295b75dd989c346f6d85bc0bd0e6c5e2533c60d')
+
+prepare() {
+ cd ${pkgname}-framework-${pkgver}
+ 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 '{}' \;
+}
+
+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"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list