nikto: cleanup

This commit is contained in:
blshkv 2018-02-17 08:14:16 +08:00
parent be597415c0
commit d7df68bd78
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
4 changed files with 6 additions and 139 deletions

View file

@ -1,6 +1,5 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
@ -44,7 +43,7 @@ src_install() {
doins nikto.conf
dobin nikto.pl replay.pl
dosym /usr/bin/nikto.pl /usr/bin/nikto
dosym nikto.pl /usr/bin/nikto
dodir /usr/share/nikto
insinto /usr/share/nikto

View file

@ -1,66 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit git-r3
DESCRIPTION="Web Server vulnerability scanner"
HOMEPAGE="http://www.cirt.net/Nikto2"
EGIT_REPO_URI="https://github.com/sullo/nikto.git"
EGIT_COMMIT="fec0a1438f032d5af499d7ce90fe4b0264128046"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ssl"
RDEPEND="dev-lang/perl
virtual/perl-JSON-PP
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?]
S="${WORKDIR}/${P}/program"
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_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}
}

View file

@ -1,66 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit git-r3
DESCRIPTION="Web Server vulnerability scanner"
HOMEPAGE="http://www.cirt.net/Nikto2"
EGIT_REPO_URI="https://github.com/sullo/nikto.git"
EGIT_COMMIT="c28807d8dec71b66b5072ee23ba020b000892937"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ssl"
RDEPEND="dev-lang/perl
virtual/perl-JSON-PP
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?]
S="${WORKDIR}/${P}/program"
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"
eapply_user
}
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}
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="web server vulnerability scanner"
DESCRIPTION="Web server vulnerability scanner"
HOMEPAGE="http://www.cirt.net/Nikto2"
COMMIT="b8454661c4dc9249cb515311cb2a80906a0a4b7a"
MY_P="${PN}-${COMMIT}"
@ -14,8 +14,8 @@ SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ssl"
RDEPEND="
dev-lang/perl
#nikto provie its own libwhisker, do no use net-libs/libwhisker[ssl]
RDEPEND="dev-lang/perl
virtual/perl-JSON-PP
net-analyzer/nmap
ssl? (