Date: Tuesday, December 18, 2018 @ 20:00:14 Author: anthraxx Revision: 416713
archrelease: copy trunk to community-x86_64 Added: metasploit/repos/community-x86_64/PKGBUILD (from rev 416712, metasploit/trunk/PKGBUILD) Deleted: metasploit/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 118 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-12-18 20:00:07 UTC (rev 416712) +++ PKGBUILD 2018-12-18 20:00:14 UTC (rev 416713) @@ -1,59 +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.17.26 -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=('bce04c0c7f74ae70e42191d72cf433b997fccac7a9b002f5fd15074bed561836') -sha512sums=('32a22c47926b31a63b7f9df3a542bea93b1b061a95f486dbb7ba2869e8fc07c8d35fd427d6c4be055089a2e9b1003a36a7d48521b18de27c765c14002e31ecb9') - -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 '{}' \; - 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 416712, metasploit/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-12-18 20:00:14 UTC (rev 416713) @@ -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.17.31 +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=('2b09dbe39944e9dc088a599b0d04456e6427224678c819926814058ef818299e') +sha512sums=('1507aaa8229665e6a83d520eab57d2b7f7b14b44250839ba33f60ac3ee78fccbc31372c217f96dcb9e5ed4b3c3902580948ac4f7c1593e049db26e0254f7ca33') + +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 '{}' \; + 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: