whatweb 0.5.1 bump

This commit is contained in:
blshkv 2020-03-24 16:06:32 +08:00
parent 5362977bb6
commit 69a293b3bf
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
2 changed files with 67 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST whatweb-0.5.0.tar.gz 3510873 BLAKE2B 3dd80e1dedf02b59ea577c7cb700c0da3ae45dea5b0a6706d5f686c81c8ec60528af057582248eb73b358419ad803e5532e809e70f32023192acfb9fca403fe6 SHA512 2e2ae847103e303c1c14a639706288d076927b8d552665bd3ea3bbb18aa31a4cfc4daf6dfe422059bfad0d23911317b5b9009b5a9124a18594060f65b7a38655
DIST whatweb-0.5.1.tar.gz 3633302 BLAKE2B f5bcef621e48ea224acc71cac2068be07e243754bca30cd4b7991378d9321f7be3eb1b38922fd225c8254decca8abf9ba37e3f93f01a3cea5783fc227429758a SHA512 34ffa129b940362d646555f5f709da5ce6f5da3857242f1805ee9aac5661c63d4c5ec632f2f34cc09e0463ce1f754e65d898e471139191cbc0aeea004da697a2

View file

@ -0,0 +1,66 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
#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
}