[arch-commits] Commit in metasploit/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Jan 10 01:22:35 UTC 2017
Date: Tuesday, January 10, 2017 @ 01:22:34
Author: anatolik
Revision: 206332
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
metasploit/repos/community-staging-i686/
metasploit/repos/community-staging-i686/PKGBUILD
(from rev 206331, metasploit/trunk/PKGBUILD)
metasploit/repos/community-staging-x86_64/
metasploit/repos/community-staging-x86_64/PKGBUILD
(from rev 206331, metasploit/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++
2 files changed, 118 insertions(+)
Copied: metasploit/repos/community-staging-i686/PKGBUILD (from rev 206331, metasploit/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-01-10 01:22:34 UTC (rev 206332)
@@ -0,0 +1,59 @@
+# 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.13.12
+pkgrel=2
+pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
+url='https://www.metasploit.com/'
+arch=('i686' 'x86_64')
+license=('BSD')
+# it has to depend on ruby-2.3 or below because 'json' gem dependency is not ported to ruby-2.4 yet
+# https://github.com/flori/json/issues/311
+depends=('ruby<2.4' 'libpcap' 'postgresql-libs' 'ruby-bundler' 'sqlite' 'libxslt' 'git')
+optdepends=('ruby-pg: database support')
+options=('!strip' '!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz)
+sha512sums=('da986f3d8cec927d23cb198fcbc5cf1fb865d6924a3c6eefc72246fefdd68c84e92b80de4b719f5d7fe790f32ab45e1cfdc3763466df6a308e776efc9ed98475')
+
+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-staging-x86_64/PKGBUILD (from rev 206331, metasploit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-01-10 01:22:34 UTC (rev 206332)
@@ -0,0 +1,59 @@
+# 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.13.12
+pkgrel=2
+pkgdesc='Advanced open-source platform for developing, testing, and using exploit code'
+url='https://www.metasploit.com/'
+arch=('i686' 'x86_64')
+license=('BSD')
+# it has to depend on ruby-2.3 or below because 'json' gem dependency is not ported to ruby-2.4 yet
+# https://github.com/flori/json/issues/311
+depends=('ruby<2.4' 'libpcap' 'postgresql-libs' 'ruby-bundler' 'sqlite' 'libxslt' 'git')
+optdepends=('ruby-pg: database support')
+options=('!strip' '!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/metasploit-framework/archive/${pkgver}.tar.gz)
+sha512sums=('da986f3d8cec927d23cb198fcbc5cf1fb865d6924a3c6eefc72246fefdd68c84e92b80de4b719f5d7fe790f32ab45e1cfdc3763466df6a308e776efc9ed98475')
+
+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:
More information about the arch-commits
mailing list