From 078efdf092e6f9a89e0df72f03cc20dad7c64221 Mon Sep 17 00:00:00 2001 From: blshkv Date: Tue, 24 Mar 2020 16:38:02 +0800 Subject: [PATCH] whatweb: fix installation script --- net-analyzer/whatweb/whatweb-0.5.1.ebuild | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/net-analyzer/whatweb/whatweb-0.5.1.ebuild b/net-analyzer/whatweb/whatweb-0.5.1.ebuild index 065699e74..c18274b3e 100644 --- a/net-analyzer/whatweb/whatweb-0.5.1.ebuild +++ b/net-analyzer/whatweb/whatweb-0.5.1.ebuild @@ -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 }