Date: Wednesday, November 13, 2019 @ 01:00:02 Author: anthraxx Revision: 527078
archrelease: copy trunk to community-x86_64 Added: metasploit/repos/community-x86_64/PKGBUILD (from rev 527077, metasploit/trunk/PKGBUILD) Deleted: metasploit/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 126 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-11-13 00:59:56 UTC (rev 527077) +++ PKGBUILD 2019-11-13 01:00:02 UTC (rev 527078) @@ -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.50 -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=('20997cdbb2bbba62bbe7b35331fd46d161a48cb83fc23c0ef841134b88f62582') -sha512sums=('5b871c4ac88ef5a730d43bbc9c404083e53ecdcc55171689e653b7a70e54dd4bf8a19bfa62ccea6aebc4cb83e5a9b34710a251a8a73915415ac556761cebc3bd') - -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 527077, metasploit/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-11-13 01:00:02 UTC (rev 527078) @@ -0,0 +1,63 @@ +# 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.59 +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=('96c3e9815a089cb9564afa14f6dda395b4047c192ad9183e46d0f3428c2f8532') +sha512sums=('0af174240317c5b8ae74a35149f35e0a4d4fe0badc966b1e48cfcc4256433b8f6a778819cd1b14bbcccffc720930f2a26c60b892dd1fd9a621a9c18cdd3a66c6') + +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: