nikto: 2.1.6x version bump

This commit is contained in:
blshkv 2016-04-28 16:49:49 +08:00
parent 39f14ea31a
commit bd50ed4df0
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 135 additions and 2 deletions

View file

@ -1 +1,2 @@
DIST nikto-2.1.5.tar.bz2 311580 SHA256 65b99c1fdec14d1d5e7cbc964f70fce162cbec50aee878e1500e2d22df079b34 SHA512 623b0fa923c05ecc4b69087321b544941f09b4d84fb7a32f6970e2ea42b2018f2c4e2d1cd0fabfc1c99a2ca7b57fd8c0d9f5f13c86e7eb102f00bdfd3062a95f WHIRLPOOL c4b15484b3fcb9df9219743cc138073b9b24673cf1e20d066dd632da3dc8aa0ac21d5cd7bc5e012a8bfea8d75fc82d25d85fd37e0038bf9c217e8437eb2cea0d
DIST nikto-2.1.6.tar.gz 490743 SHA256 c1731ae4133d3879718bb7605a8d395b2036668505effbcbbcaa4dae4e9f27f2 SHA512 13632018ef6862de7dc53c674d7266fcfb7e164bcf3070327c103cbf8737720ffb710ccc8949acc920a6e0a85da1bb7575d073ee245bc2ba3a8a292ad1695e69 WHIRLPOOL 9a45015154cea7ec6a02bab4583f0b529f634d1ba3a9a203a916e07a2c6c037b4d1876af22776f566d9adb6b8850b5dc33ab10c4e4a581729d28cab59f7a839e

View file

@ -1,6 +1,7 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-2.1.5.ebuild,v 1.5 2014/11/09 23:30:53 patrick Exp $
# $Id$
EAPI=5
inherit perl-module

View file

@ -0,0 +1,65 @@
# Copyright 1999-2016 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="https://github.com/sullo/nikto/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ssl"
RDEPEND="dev-lang/perl
perl-core/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

@ -0,0 +1,66 @@
# 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="f738d5f4e7a6a28a99b62e72de494c0cfd1bfd67"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ssl"
RDEPEND="dev-lang/perl
perl-core/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

@ -63,7 +63,7 @@ net-analyzer/nessus-plugins
~net-analyzer/netdiscover-0.3_beta6
~net-analyzer/netwag-5.39.0
~net-analyzer/netwox-5.39.0
~net-analyzer/nikto-2.1.5
=net-analyzer/nikto-2.1.6_p*
~net-analyzer/nmap-7.12
~net-analyzer/ntop-5.0.1
~net-analyzer/ntp-fingerprint-0.1