mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-24 15:51:03 +02:00
nikto: fix deps, issue #140
This commit is contained in:
parent
ccd749be40
commit
9d0114fcb4
3 changed files with 2 additions and 68 deletions
|
|
@ -1,66 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Web Server vulnerability scanner"
|
||||
HOMEPAGE="http://www.cirt.net/Nikto2"
|
||||
SRC_URI="http://www.cirt.net/nikto/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="ssl"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
net-analyzer/nmap
|
||||
ssl? (
|
||||
dev-libs/openssl
|
||||
dev-perl/Net-SSLeay
|
||||
)"
|
||||
#we can't reuse a system libwhisker anymore because some $#$on modified it.
|
||||
#see http://trac.assembla.com/Nikto_2/ticket/199 for more details
|
||||
# net-libs/libwhisker[ssl?]
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:config.txt:nikto.conf:g' plugins/*
|
||||
sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:' nikto.pl
|
||||
sed -i -e 's:# EXECDIR=/opt/nikto:EXECDIR=/usr/share/nikto:' nikto.conf
|
||||
|
||||
# sed -i -e 's:# use LW2:use LW2:' nikto.pl
|
||||
# sed -i -e 's:require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":# require "$CONFIGFILE{'\''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
|
||||
|
||||
dobin nikto.pl replay.pl
|
||||
dosym /usr/bin/nikto.pl /usr/bin/nikto
|
||||
|
||||
dodir /usr/share/nikto
|
||||
insinto /usr/share/nikto
|
||||
doins -r plugins templates databases
|
||||
|
||||
NIKTO_PMS='JSON-PP.pm'
|
||||
einfo "symlinking ${NIKTO_PMS} to ${VENDOR_LIB}"
|
||||
|
||||
for _PM in ${NIKTO_PMS}; do
|
||||
_TARGET=${VENDOR_LIB}/${_PM}
|
||||
dosym /usr/share/nikto/plugins/${_PM} ${_TARGET}
|
||||
done
|
||||
|
||||
dodoc docs/*.txt
|
||||
dohtml docs/nikto_manual.html
|
||||
|
||||
insinto ${VENDOR_PERL}
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
|
|||
IUSE="ssl"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
perl-core/JSON-PP
|
||||
virtual/perl-JSON-PP
|
||||
net-analyzer/nmap
|
||||
ssl? (
|
||||
dev-libs/openssl
|
||||
|
|
@ -17,7 +17,7 @@ KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
|
|||
IUSE="ssl"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
perl-core/JSON-PP
|
||||
virtual/perl-JSON-PP
|
||||
net-analyzer/nmap
|
||||
ssl? (
|
||||
dev-libs/openssl
|
||||
Loading…
Reference in a new issue