whatweb: 0.5.0 bump with deps and fixes

This commit is contained in:
blshkv 2019-10-05 12:14:35 +08:00
parent ced517df8b
commit 2d86ca0abf
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 87 additions and 0 deletions

1
dev-ruby/ipaddr/Manifest Normal file
View file

@ -0,0 +1 @@
DIST ipaddr-1.2.2.gem 12288 BLAKE2B 45b22c0b1b3a5fb3b07b08f9bf3daeb13fe9003342b4ce25fdfafa1ad52d0f76f8e2e74d211ec2838bd99bdc81d1e1d2b60045c5c88ab1ac3ee102b0bdf3046f SHA512 daf9496b1e16e41442f8536c68e488152453f7f7a5bedc443e86399f937e024b46be5c6cdecd3fb669e4d2e0c4bd17101a8380b703c402e96f1c4d83c4fe775c

View file

@ -0,0 +1,16 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
USE_RUBY="ruby24 ruby25"
inherit ruby-fakegem
DESCRIPTION="IPAddr provides a set of methods to manipulate an IP address"
HOMEPAGE="https://github.com/ruby/ipaddr"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

View file

@ -1 +1,2 @@
DIST whatweb-0.4.9.tar.gz 3214359 BLAKE2B 540537429721ae497b930c7adc27c3a3ae7d6f8c0c97bcb02cacbc4615c910fba0b61fbad938fcbed3db1fe24989afc8e3f0df69b202ef7ae27d712e766056c9 SHA512 1a4dc79206ae399affa6c5da4432e82f44d6535b5836fe3c1254a29e2d2243bc93d5580b94b6b97d3659c815fd3f9b0505b816a0a98039cbd586d5c47e19b2a2
DIST whatweb-0.5.0.tar.gz 3510873 BLAKE2B 3dd80e1dedf02b59ea577c7cb700c0da3ae45dea5b0a6706d5f686c81c8ec60528af057582248eb73b358419ad803e5532e809e70f32023192acfb9fca403fe6 SHA512 2e2ae847103e303c1c14a639706288d076927b8d552665bd3ea3bbb18aa31a4cfc4daf6dfe422059bfad0d23911317b5b9009b5a9124a18594060f65b7a38655

View file

@ -0,0 +1,66 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24"
#inherit ruby-ng
inherit ruby-single
DESCRIPTION="Next generation web scanner, identifies what software websites are running"
HOMEPAGE="http://www.morningstarsecurity.com/research/whatweb"
SRC_URI="https://github.com/urbanadventurer/WhatWeb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="json"
DEPEND=""
RDEPEND="${DEPEND}
${RUBY_DEPS}
dev-ruby/addressable
dev-ruby/ipaddr
json? ( dev-ruby/json )"
#future rdepend:
#dns: em-resolv-replace
#mongodb: bison bson_ext mongo rchardet
S="${WORKDIR}/WhatWeb-${PV}"
src_prepare() {
# fix installation
# sed -i 's|plugins-disabled||g' Makefile || die
sed -i 's|$(DOCPATH)/$(NAME)|$(DOCPATH)/${PF}|g' Makefile || die
sed -i '/bundle install/d' Makefile || die
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
# BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
# BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
BUNDLE_GEMFILE=Gemfile ruby -S bundle install --local || die
BUNDLE_GEMFILE=Gemfile ruby -S bundle check || die
eapply_user
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
dodir /usr/share/doc/"${PF}"
DESTDIR="${D}" emake install
#https://github.com/urbanadventurer/WhatWeb/issues/283
mv "${D}/usr/bin/${PN}" "${D}/usr/share/whatweb/"
cat > "${D}/usr/bin/${PN}" <<-_EOF_ || die
#!/bin/sh
cd /usr/share/whatweb
./whatweb \$@
_EOF_
fperms 0755 "/usr/bin/${PN}"
dodoc CHANGELOG README.md whatweb.xsl
}

View file

@ -317,3 +317,6 @@ dev-ruby/listen:1
dev-ruby/sablon
=dev-ruby/nokogiri-1.10*
#whatweb
dev-ruby/ipaddr