Date: Friday, January 17, 2020 @ 17:15:56 Author: anthraxx Revision: 552877
archrelease: copy trunk to community-x86_64 Added: metasploit/repos/community-x86_64/PKGBUILD (from rev 552876, metasploit/trunk/PKGBUILD) Deleted: metasploit/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 127 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-01-17 17:15:51 UTC (rev 552876) +++ PKGBUILD 2020-01-17 17:15:56 UTC (rev 552877) @@ -1,63 +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.60 -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') -options=('!strip' '!emptydirs') -source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('a1cca91d0365acd8d6b370b0293cb4bd1649ecde37a66731c8390eca26d7ac15') -sha512sums=('9e451019b3e184e2429fbc628504cc5ee56b713f66c489027d10ee622b34967ef2bba45d52ac3435e769749a3170c1193654aa919a19656a279d0594c5600102') - -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" -} - -# vim: ts=2 sw=2 et: Copied: metasploit/repos/community-x86_64/PKGBUILD (from rev 552876, metasploit/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-01-17 17:15:56 UTC (rev 552877) @@ -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.70 +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) +sha256sums=('f10a51cef6e4c4c610c8ac38862e24f749caf3bc794819b99d262821b051e320') +sha512sums=('0729dc89eda50fb02e24ed8f357cca9cf3e83960c46fbed2bb5758fd6c82f5672bb0248222539dee95a6876802a49c9f6781577cef3ff473737a980d54f1a1d2') + +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: