net-analyzer/whatweb - 0.6.4 (pentoo)

Search

Install

Install this version:

emerge -a =net-analyzer/whatweb-0.6.4

Package Information

Description:
Next generation web scanner, identifies what software websites are running
Homepage:
http://www.morningstarsecurity.com/research/whatweb
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.6.4 8 amd64 ~arm64 x86 0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

USE_RUBY="ruby32 ruby33"
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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
#        https://github.com/urbanadventurer/WhatWeb/archive/refs/tags/v6.0.1.tar.gz

S="${WORKDIR}/WhatWeb-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="json"

DEPEND="dev-ruby/bundler:2"
RDEPEND="${DEPEND}
	${RUBY_DEPS}
	dev-ruby/addressable
	dev-ruby/ipaddr
	dev-ruby/mongo
	dev-ruby/rchardet
	json? ( dev-ruby/json )"

#future rdepend:
#dns: em-resolv-replace
#mongodb: bison bson_ext mongo rchardet

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
	sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
	sed -i -e "/^group :development do/,/^end$/d" Gemfile || die

	if [ -f Gemfile ]; then
		GEM_HOME="${T}" BUNDLE_GEMFILE=Gemfile ruby -S bundle install --local || die
		GEM_HOME="${T}" BUNDLE_GEMFILE=Gemfile ruby -S bundle check || die
	fi

	eapply_user
}

src_compile() {
	einfo "Nothing to compile"
}

all_ruby_install() {
	dodir /usr/share/doc/"${PF}"
	dodir /usr/bin
	DESTDIR="${D}" emake install

	dodoc CHANGELOG.md README.md whatweb.xsl
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-analyzer/whatweb | euse -E <flag> -p net-analyzer/whatweb | euse -D <flag> -p net-analyzer/whatweb

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

dev-ruby/bundler:2

RDEPEND

dev-ruby/bundler:2
	
	dev-ruby/addressable
	dev-ruby/ipaddr
	dev-ruby/mongo
	dev-ruby/rchardet
	json? ( dev-ruby/json )

Manifest for 0.6.4

Type File Size Source URLs
DIST whatweb-0.6.4.tar.gz 3674596 bytes https://github.com/urbanadventurer/WhatWeb/archive/refs/tags/v0.6.4.tar.gz