wpscan: bump to 2.9 including deps

This commit is contained in:
blshkv 2015-11-16 20:35:39 +08:00
parent 14af8df1f9
commit daca646457
8 changed files with 44 additions and 12 deletions

View file

@ -1 +1,2 @@
DIST ruby-progressbar-1.1.0.gem 23040 SHA256 1f3804fa43005823693b89b20ceab8ea3122856888a9b1272ca0728f539dc95a SHA512 e3a1ac8a15d751fd0c1442ca125d74b95a8e6c6376b561e29030661b65f6e8efb039746875803fed9f185a434848abda58244a985f6627b1dc3dc7ee3f051712 WHIRLPOOL 81a8bda59b2d966b1ffa7d37fb38db9509ae14752c251de9596f64a5b69f15c258291efe24f45e4744f24745e383e5829a4c2580736cd60106126dee449e5116
DIST ruby-progressbar-1.7.5.gem 21504 SHA256 71c754e2e3f26b87f307e360dee8f2267800b88327a7def0098d7e6cb752d643 SHA512 1a5cb4b8ca9a9669bdaa60fcf3f01bec347b4ac1aefe737a7c6014bf40166c72d74ab0f489638c12ffd5245cc2b0a19186f7ab440bd7629579bf00d5155a8741 WHIRLPOOL 13e05a761c10c6fbb87cfb11f83f18acae93daeec1e11306b432ee751427e0d95a56d63cd7528590242b3e5241d4de6eaef2ea1b9190a1c1196430f4828f5580

View file

@ -0,0 +1,29 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
RUBY_FAKEGEM_RECIPE_TEST="rspec"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.md"
inherit ruby-fakegem
DESCRIPTION="A Text Progress Bar Library for Ruby"
HOMEPAGE="https://github.com/jfelchner/ruby-progressbar"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE="test"
ruby_add_bdepend "test? ( dev-ruby/timecop )"
all_ruby_prepare() {
sed -i -e '/[Ss]imple[Cc]ov/ s:^:#:' spec/spec_helper.rb || die
}

View file

@ -1 +1 @@
DIST wpscan-2.8.tar.gz 697808 SHA256 bb1d1d5b775e6670eb7911b70ec65e415425823709e3b9f769946a6c6408bd15 SHA512 c4643af02d5e95cf5fe2797f74c40699ff0af835e4390121c663122f8e76feda5612d4e88132d308e580bddbcff6ff7d0d41296b86e3bbe72d6191935d1c1417 WHIRLPOOL 18b961cec7b72e37b7172a7614c17b86404a98e5cb159ccea65dd0673a9403aa330d7aa5263b2b4b7f27f0c034173f57d11c6a95210808d21b0c44fdf53318c9
DIST wpscan-2.9.tar.gz 1321760 SHA256 be78855a715dc70408a8399ad5189da059d48a3e99c6844505521fc18290be77 SHA512 8cc46fa7f3fd3e0127b3a6c1274071c73b28c757ddba5b1b2eebd2cc3bce1bab4e0cdde74146bc2300f1cb7c5f81522a0339e1f75e2e65f0ca81e6ba4ca177a9 WHIRLPOOL 19f6fcc5d5d0b871219a717e8044bd6c61924893945e7f6f44551cd115b5e785d8a655095ec18a733ab055596101ef9f76c67db4bead9c5c6210314d3d7ae254

View file

@ -1,3 +1,3 @@
#!/bin/sh
ruby19 /usr/lib/wpscan/wpscan.rb $@
ruby /usr/lib/wpscan/wpscan.rb $@

View file

@ -1,3 +1,3 @@
#!/bin/sh
ruby19 /usr/lib/wpscan/wpstools.rb $@
ruby /usr/lib/wpscan/wpstools.rb $@

View file

@ -13,16 +13,16 @@ SRC_URI="https://github.com/wpscanteam/wpscan/archive/${PV}.tar.gz -> ${P}.tar.g
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="hardened test"
IUSE="test"
DEPEND=""
RDEPEND="dev-lang/ruby
dev-ruby/rubygems
>=dev-ruby/typhoeus-0.6.8
dev-ruby/nokogiri
dev-ruby/json
dev-ruby/terminal-table
>=dev-ruby/ruby-progressbar-1.1.0
>dev-ruby/yajl-ruby-1.2.0
>=dev-ruby/terminal-table-1.4.5
>=dev-ruby/ruby-progressbar-1.6.0
dev-ruby/addressable
test? (
>=dev-ruby/webmock-1.9.3
@ -30,15 +30,15 @@ RDEPEND="dev-lang/ruby
dev-ruby/rspec
)"
src_prepare() {
#https://github.com/wpscanteam/wpscan/issues/706
epatch "${FILESDIR}/${PN}"-2.5.1_regular_user.patch
rm -r README.md
sed -i "/require 'bundler\/setup'/d" lib/environment.rb
#dev-lang/ruby might need the "hardened" flag to enforce the following:
if use hardened; then
paxctl -v /usr/bin/ruby19 2>/dev/null | grep MPROTECT | grep disabled || ewarn '!!! Some dependencies such as typhoeus may only work if ruby19 has MPROTECT flag disabled\n You can disable it running paxctl -m /usr/bin/ruby19'
fi
unpack ./data.zip
rm ./data.zip
}
src_install() {

View file

@ -142,6 +142,8 @@ dev-ruby/sprockets:2.2
~dev-ruby/yard-0.8.3
~dev-ruby/simplecov-0.7.1 **
~dev-ruby/simplecov-html-0.7.1 **
~dev-ruby/yajl-ruby-1.2.1
~dev-ruby/ruby-progressbar-1.7.5
#ruby-testing
=dev-util/aruba-0.5.2

View file

@ -2,7 +2,7 @@
net-analyzer/dhcpdump
=net-analyzer/w3af-1.6*
~net-analyzer/wpscan-2.8
~net-analyzer/wpscan-2.9
=net-analyzer/set-6*
net-analyzer/dnsenum