Date: Friday, January 17, 2020 @ 17:10:48 Author: anthraxx Revision: 552875
archrelease: copy trunk to community-x86_64 Added: wpscan/repos/community-x86_64/PKGBUILD (from rev 552874, wpscan/trunk/PKGBUILD) wpscan/repos/community-x86_64/wpscan.install (from rev 552874, wpscan/trunk/wpscan.install) Deleted: wpscan/repos/community-x86_64/PKGBUILD wpscan/repos/community-x86_64/wpscan.install ----------------+ PKGBUILD | 99 +++++++++++++++++++++++++++---------------------------- wpscan.install | 18 +++++----- 2 files changed, 59 insertions(+), 58 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-01-17 17:10:42 UTC (rev 552874) +++ PKGBUILD 2020-01-17 17:10:48 UTC (rev 552875) @@ -1,49 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Contributor: alexiobash < me (at) alexiobash (dot) com > - -pkgname=wpscan -pkgver=3.7.5 -pkgrel=2 -epoch=1 -pkgdesc='Black box WordPress vulnerability scanner' -url='https://wpscan.org' -arch=('x86_64') -license=('custom:WPScan') -depends=('ruby-bundler' 'libxslt' 'libyaml' 'curl' 'libxml2') -options=('!strip' '!emptydirs') -install=wpscan.install -source=(https://github.com/wpscanteam/wpscan/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('220ce775967b71137b23710939b51ef8caf2e5770d3b6239831fda2bd3fd8be8') -sha512sums=('d5418ce9c41af75705ad0bea6c8726901a117656d399e850b28ab2b82ed7eca0f606dffb2cf28529ebdd72516bf6e2444d961077a1324a05dd516f16024af0d7') - -prepare() { - cd ${pkgname}-${pkgver} - sed -i '/bundler/ s|~>|>=|g' $pkgname.gemspec - bundle config build.nokogiri --use-system-libraries -} - -build() { - cd ${pkgname}-${pkgver} - CFLAGS+=" -I/usr/include/libxml2" - bundle install -j"$(nproc)" --path vendor/bundle --without development test -} - -package() { - cd ${pkgname}-${pkgver} - - install -d "${pkgdir}/opt/${pkgname}" - cp -ra --no-preserve=owner . "${pkgdir}/opt/${pkgname}" - - install -d "${pkgdir}/usr/bin" - cat > "${pkgdir}/usr/bin/${pkgname}" << EOF -#!/bin/sh -BUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/wpscan/bin/wpscan "\$@" -EOF - chmod 755 "${pkgdir}/usr/bin/${pkgname}" - - install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" - find "${pkgdir}" \( -name gem_make.out -or -name mkmf.log \) -delete -} - -# vim: ts=2 sw=2 et: Copied: wpscan/repos/community-x86_64/PKGBUILD (from rev 552874, wpscan/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-01-17 17:10:48 UTC (rev 552875) @@ -0,0 +1,50 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: alexiobash < me (at) alexiobash (dot) com > + +pkgname=wpscan +pkgver=3.7.6 +pkgrel=1 +epoch=1 +pkgdesc='Black box WordPress vulnerability scanner' +url='https://wpscan.org' +arch=('x86_64') +license=('custom:WPScan') +depends=('ruby-bundler' 'libxslt' 'libyaml' 'curl' 'libxml2') +options=('!strip' '!emptydirs') +install=wpscan.install +source=(https://github.com/wpscanteam/wpscan/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('5520ff356905851809a989c08c1196ce053781231adbdf4d28bfa7f5eb2fdf7b') +sha512sums=('48dd80949935c7602308969e2a89b516286b3475cefa5885e3f3135fbc021f38a08960ea39c25bf3ab4cd3a2f597c1e9949f0417547ce27e88ada4391422f9f6') + +prepare() { + cd ${pkgname}-${pkgver} + sed -i '/bundler/ s|~>|>=|g' $pkgname.gemspec + bundle config build.nokogiri --use-system-libraries +} + +build() { + cd ${pkgname}-${pkgver} + CFLAGS+=" -I/usr/include/libxml2" + bundle install -j"$(nproc)" --path vendor/bundle --without development test +} + +package() { + cd ${pkgname}-${pkgver} + + install -d "${pkgdir}/opt/${pkgname}" + cp -ra --no-preserve=owner . "${pkgdir}/opt/${pkgname}" + + install -d "${pkgdir}/usr/bin" + cat > "${pkgdir}/usr/bin/${pkgname}" << EOF +#!/bin/sh +BUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/wpscan/bin/wpscan "\$@" +EOF + chmod 755 "${pkgdir}/usr/bin/${pkgname}" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + find "${pkgdir}" \( -name gem_make.out -or -name mkmf.log \) -delete + rm -r "${pkgdir}"/opt/wpscan/vendor/bundle/ruby/*/cache +} + +# vim: ts=2 sw=2 et: Deleted: wpscan.install =================================================================== --- wpscan.install 2020-01-17 17:10:42 UTC (rev 552874) +++ wpscan.install 2020-01-17 17:10:48 UTC (rev 552875) @@ -1,9 +0,0 @@ -post_install() { - echo -n 'Updating wpscan database...' - /usr/bin/wpscan --update >/dev/null 2>&1 - echo "done." -} - -post_upgrade() { - post_install -} Copied: wpscan/repos/community-x86_64/wpscan.install (from rev 552874, wpscan/trunk/wpscan.install) =================================================================== --- wpscan.install (rev 0) +++ wpscan.install 2020-01-17 17:10:48 UTC (rev 552875) @@ -0,0 +1,9 @@ +post_install() { + echo -n 'Updating wpscan database...' + /usr/bin/wpscan --update >/dev/null 2>&1 + echo "done." +} + +post_upgrade() { + post_install +}