mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-29 02:01:46 +02:00
nikto: use net-libs/libwhisker instead of bundled LW2.pm
This commit is contained in:
parent
a4d66f8c4d
commit
4ed919f8c0
2 changed files with 59 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST nikto-2.1.3.tar.bz2 271642 RMD160 88b6823ca128d595383fc94aa98c523828911143 SHA1 03a44d8df1a58343b9afe31832b77074a47a1737 SHA256 58df896390bd2770bb574f98107376740cf688225302704e4fe8a4d0f3cf2f7f
|
||||
EBUILD nikto-2.1.3-r1.ebuild 1345 RMD160 ee590c59b0feb4e25576feb805ffdb6571fb9966 SHA1 f55c3dd394b231cf4f71560d047f62b84edf7d5c SHA256 4dd3ddb3fca96b182ebe7a4f58aba1b3cda49fbf5d78ab5ec10b8e8b4278c9e6
|
||||
EBUILD nikto-2.1.3.ebuild 1062 RMD160 ea0f524f6e65137b50e4da7c5ed3a6247401e5de SHA1 3d9364df7400e2ea0d0126bd203a275de9800a7d SHA256 a16e6ebd5ef7374d376380b14feeeb6e3117a395cf039bdc50fcf0cf3403f6f5
|
||||
|
|
|
|||
58
net-analyzer/nikto/nikto-2.1.3-r1.ebuild
Normal file
58
net-analyzer/nikto/nikto-2.1.3-r1.ebuild
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="Web Server vulnerability scanner."
|
||||
HOMEPAGE="http://www.cirt.net/code/nikto.shtml"
|
||||
SRC_URI="http://www.cirt.net/nikto/ARCHIVE/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="ssl"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
>=net-libs/libwhisker-2.5
|
||||
ssl? (
|
||||
dev-libs/openssl
|
||||
dev-perl/Net-SSLeay
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:config.txt:nikto.conf:g' \
|
||||
plugins/* || die
|
||||
|
||||
sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:' \
|
||||
nikto.pl || die
|
||||
|
||||
sed -i -e 's:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:' \
|
||||
nikto.conf || die
|
||||
|
||||
sed -i -e 's:# use LW2:use LW2:' \
|
||||
nikto.pl || die
|
||||
sed -i -e 's:require "$NIKTOCONFIG{'\''PLUGINDIR'\''}/LW2.pm":# require "$NIKTOCONFIG{'\''PLUGINDIR'\''}/LW2.pm":' \
|
||||
nikto.pl || die
|
||||
rm plugins/LW2.pm || die "removing bundled lib LW2.pm failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "nothing to compile"
|
||||
true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /etc/nikto
|
||||
doins nikto.conf || die "config install failed"
|
||||
|
||||
dobin nikto.pl || die "install failed"
|
||||
dosym /usr/bin/nikto.pl /usr/bin/nikto || die
|
||||
|
||||
dodir /usr/share/nikto
|
||||
insinto /usr/share/nikto
|
||||
doins -r plugins templates || die
|
||||
|
||||
dodoc docs/*.txt || die
|
||||
dohtml docs/nikto_manual.html || die
|
||||
}
|
||||
Loading…
Reference in a new issue