whatweb: fix installation script

This commit is contained in:
blshkv 2020-03-24 16:38:02 +08:00
parent e415c85435
commit 078efdf092
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -4,7 +4,6 @@
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"
@ -31,6 +30,7 @@ S="${WORKDIR}/WhatWeb-${PV}"
src_prepare() {
# fix installation
sed -i '/gzip/d' Makefile || die
# 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
@ -51,16 +51,8 @@ src_compile() {
src_install() {
dodir /usr/share/doc/"${PF}"
dodir /usr/bin
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
dodoc CHANGELOG.md README.md whatweb.xsl
}