[arch-commits] Commit in wpscan/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Jan 3 07:54:41 UTC 2018


    Date: Wednesday, January 3, 2018 @ 07:54:40
  Author: foutrelis
Revision: 277977

archrelease: copy trunk to community-staging-x86_64

Added:
  wpscan/repos/community-staging-x86_64/
  wpscan/repos/community-staging-x86_64/PKGBUILD
    (from rev 277976, wpscan/trunk/PKGBUILD)
  wpscan/repos/community-staging-x86_64/wpscan.install
    (from rev 277976, wpscan/trunk/wpscan.install)

----------------+
 PKGBUILD       |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 wpscan.install |    9 +++++++++
 2 files changed, 61 insertions(+)

Copied: wpscan/repos/community-staging-x86_64/PKGBUILD (from rev 277976, wpscan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-01-03 07:54:40 UTC (rev 277977)
@@ -0,0 +1,52 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: alexiobash < me (at) alexiobash (dot) com >
+
+pkgname=wpscan
+pkgver=2.9.3
+pkgrel=2
+epoch=1
+pkgdesc='Black box WordPress vulnerability scanner'
+url='http://wpscan.org'
+arch=('x86_64')
+license=('custom:WPScan')
+depends=('ruby-bundler' 'libxslt' 'libyaml' 'curl')
+makedepends=('unzip')
+options=('!strip' '!emptydirs')
+install=wpscan.install
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/wpscanteam/wpscan/archive/${pkgver}.tar.gz)
+sha256sums=('1bacc03857cca5a2fdcda060886bf51dbf73b129abbb7251b8eb95bc874e5376')
+sha512sums=('95f18f78cc6ba94c0085700fa3c26a6e66441e0978ef7b492deb3b42e96d9b91c17bd07ef2d48e2c7a1428ebc280eba608a41032452c6c42791fc3c91012e490')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  unzip -o data.zip
+  rm data.zip
+  # replace cache location with local user share
+  sed "s|ROOT_DIR, 'cache'|ENV['HOME'] + '/.local/share/${pkgname}/cache'|" -i lib/common/common_helper.rb
+  sed "s|ROOT_DIR, 'log.txt'|ENV['HOME'] + '/.local/share/${pkgname}/log.txt'|" -i lib/common/common_helper.rb
+  bundle config build.nokogiri --use-system-libraries
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  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/${pkgname}/${pkgname}.rb "\$@"
+EOF
+  chmod 755 "${pkgdir}/usr/bin/${pkgname}"
+
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 CHANGELOG.md DISCLAIMER.txt README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Copied: wpscan/repos/community-staging-x86_64/wpscan.install (from rev 277976, wpscan/trunk/wpscan.install)
===================================================================
--- community-staging-x86_64/wpscan.install	                        (rev 0)
+++ community-staging-x86_64/wpscan.install	2018-01-03 07:54:40 UTC (rev 277977)
@@ -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
+}



More information about the arch-commits mailing list