[arch-commits] Commit in wpscan/repos/community-x86_64 (4 files)

Frederik Schwan freswa at archlinux.org
Sun Sep 13 18:30:24 UTC 2020


    Date: Sunday, September 13, 2020 @ 18:30:24
  Author: freswa
Revision: 705181

archrelease: copy trunk to community-x86_64

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

----------------+
 PKGBUILD       |  109 +++++++++++++++++++++++++++----------------------------
 wpscan.install |   18 ++++-----
 2 files changed, 64 insertions(+), 63 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-13 18:30:22 UTC (rev 705180)
+++ PKGBUILD	2020-09-13 18:30:24 UTC (rev 705181)
@@ -1,54 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: alexiobash < me (at) alexiobash (dot) com >
-
-pkgname=wpscan
-pkgver=3.8.3
-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)
-sha512sums=('d0721fbbbcee63393da02666bb715b16ebff2f164467a778a3f63e3533a81860332038cca7ba03023d3d9881685558a6971183307ad19a3a4c775d12454f5cea')
-b2sums=('a4fb930d5150f8159a9844110544bdc38600ca723305cd1e492315a3c5eef8b630096897cd2a1391b6be0f599063d5028067f56d803c27630d61446955ab967f')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  sed -i '/bundler/ s|~>|>=|g' $pkgname.gemspec
-  bundle config build.nokogiri --use-system-libraries
-  bundle config set --local path vendor/bundle
-  bundle config set --local without development test
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  CFLAGS+=" -I/usr/include/libxml2"
-  bundle install -j"$(nproc)"
-  # reproducible builds: don't leak jobs count
-  sed '/BUNDLE_JOBS/d' -i .bundle/config
-}
-
-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:

Copied: wpscan/repos/community-x86_64/PKGBUILD (from rev 705180, wpscan/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-13 18:30:24 UTC (rev 705181)
@@ -0,0 +1,55 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: alexiobash < me (at) alexiobash (dot) com >
+
+pkgname=wpscan
+pkgver=3.8.3
+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')
+optdepends=('metasploit')
+options=('!strip' '!emptydirs')
+install=wpscan.install
+source=(https://github.com/wpscanteam/wpscan/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('d0721fbbbcee63393da02666bb715b16ebff2f164467a778a3f63e3533a81860332038cca7ba03023d3d9881685558a6971183307ad19a3a4c775d12454f5cea')
+b2sums=('a4fb930d5150f8159a9844110544bdc38600ca723305cd1e492315a3c5eef8b630096897cd2a1391b6be0f599063d5028067f56d803c27630d61446955ab967f')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i '/bundler/ s|~>|>=|g' $pkgname.gemspec
+  bundle config build.nokogiri --use-system-libraries
+  bundle config set --local path vendor/bundle
+  bundle config set --local without development test
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CFLAGS+=" -I/usr/include/libxml2"
+  bundle install -j"$(nproc)"
+  # reproducible builds: don't leak jobs count
+  sed '/BUNDLE_JOBS/d' -i .bundle/config
+}
+
+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-09-13 18:30:22 UTC (rev 705180)
+++ wpscan.install	2020-09-13 18:30:24 UTC (rev 705181)
@@ -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 705180, wpscan/trunk/wpscan.install)
===================================================================
--- wpscan.install	                        (rev 0)
+++ wpscan.install	2020-09-13 18:30:24 UTC (rev 705181)
@@ -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