Date: Friday, February 4, 2022 @ 19:38:40 Author: kpcyrd Revision: 1125848
archrelease: copy trunk to community-x86_64 Added: metasploit/repos/community-x86_64/PKGBUILD (from rev 1125846, metasploit/trunk/PKGBUILD) Deleted: metasploit/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 128 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 64 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-04 19:38:38 UTC (rev 1125847) +++ PKGBUILD 2022-02-04 19:38:40 UTC (rev 1125848) @@ -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=6.1.8 -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=('ruby2.7' 'libpcap' 'postgresql-libs' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git') -options=('!strip' '!emptydirs') -source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha512sums=('6521f597292c6949877bf9d4d49c056d797933c8c609af7b018f39d86c1aeff04bb0569bb87f9908743c629a7e048b1b36e94f6ec3c80d09b30fed095fbe06eb') -b2sums=('76030236e31d8033c0b93f3c7ae135acbe29557ea3b2abcdbba3e0c7c90f382170a2042fa00a241b0bb2b71bb536d4b2ae884aa3ccc945ba359cd4c491dbb6fa') - -prepare() { - cd ${pkgname}-framework-${pkgver} - - # https://github.com/bundler/bundler/issues/6882 - sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock - - bundle-2.7 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-2.7 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-2.7 exec ruby-2.7 /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-2.7 exec ruby-2.7 /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 1125846, metasploit/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-04 19:38:40 UTC (rev 1125848) @@ -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=6.1.28 +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=('ruby2.7' 'libpcap' 'postgresql-libs' 'sqlite' 'libxslt' 'libxml2' 'inetutils' 'git') +options=('!strip' '!emptydirs') +source=(https://github.com/rapid7/metasploit-framework/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('4488ae997cfdbf3b9370ac77054088536e46d33bab23aae0f2d599ebee83a13a735ccb56d62601d299acf3c8d4c2cc5adb5a4e195ee0e57446fca2a21dd41e59') +b2sums=('9a8e2dd90017157f1eee95f72915386d14930348b997a339c4acd40c30d3345f2441c0e5ac7c5397936ed5c040509e6e92039338b50c7d8c66b3ddebfa2345f3') + +prepare() { + cd ${pkgname}-framework-${pkgver} + + # https://github.com/bundler/bundler/issues/6882 + sed -e '/BUNDLED WITH/,+1d' -i Gemfile.lock + + bundle-2.7 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-2.7 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-2.7 exec ruby-2.7 /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-2.7 exec ruby-2.7 /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: