nikto: remove in Gentoo favour

This commit is contained in:
blshkv 2021-02-02 20:32:08 +08:00
parent 6b91d55108
commit b763c8b556
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 0 additions and 169 deletions

View file

@ -1,3 +0,0 @@
DIST nikto-2.1.6.tar.gz 490743 BLAKE2B 81947a90552e98ac06a72476e353335347c65165a493b209ca31e970aa0afbb0ab41dddcf714f8af2782507c3e7bef20b09a24ad2f0796cd8daa1c367559ac71 SHA512 13632018ef6862de7dc53c674d7266fcfb7e164bcf3070327c103cbf8737720ffb710ccc8949acc920a6e0a85da1bb7575d073ee245bc2ba3a8a292ad1695e69
DIST nikto-2.1.6_p20190508.tar.gz 515878 BLAKE2B 10d1361ae123843995ea30e9be990f8f2968b41331622a8dc3bedcada785c9fa6159d178906c7a37b88069dd2d4e3e2d65a12b5715ecfdcfcbe8b469da77b471 SHA512 af09895b81054c788d070b13db0b22b403d1a0ac9b402a635676a185ab433c03faef6a47c882cbae62d608fa6c2f27594884fdc2838b8c540627b8b7f1fb570f
DIST nikto-2.1.6_p20200726.tar.gz 521440 BLAKE2B ae8630b6821e0dcddd5b0293d53e9f032eb4036f103a5d238d263314404ddc021e18b8adb3ce2af4dc302eb2a6962e78302b7e57cc516c7aafa447d80817a755 SHA512 a4b93c764c26ba23c781fa4f0fbce9b7359e67b5cae0a78a66b98a917310413fb532bf10030001f18b0fe79e0791ab3e61ebc9e390b18108dac307e6641655a4

View file

@ -1,64 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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="~amd64 ~x86"
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 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,51 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Web server vulnerability scanner"
HOMEPAGE="http://www.cirt.net/Nikto2"
COMMIT="4ce52820c61acd0492325e4aae875f583f0b1f7e"
MY_P="${PN}-${COMMIT}"
SRC_URI="https://github.com/sullo/nikto/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"
#nikto provie its own libwhisker, do no use net-libs/libwhisker[ssl]
RDEPEND="dev-lang/perl
virtual/perl-JSON-PP
net-analyzer/nmap
ssl? (
dev-libs/openssl
dev-perl/Net-SSLeay
)
"
S="${WORKDIR}/${MY_P}/program"
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=/opt/nikto:EXECDIR=/usr/share/nikto:' nikto.conf.default || die
sed -i -e 's:NIKTODTD=docs:NIKTODTD=/usr/share/nikto/docs:' nikto.conf.default || die
default
}
src_install() {
insinto /etc/nikto
newins nikto.conf.default nikto.conf
dobin nikto.pl replay.pl
dosym nikto.pl /usr/bin/nikto
dodir /usr/share/nikto
insinto /usr/share/nikto
doins -r docs plugins templates databases
dodoc docs/*.txt
dodoc docs/nikto_manual.html
}

View file

@ -1,51 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Web server vulnerability scanner"
HOMEPAGE="http://www.cirt.net/Nikto2"
COMMIT="ffc7efe436d9816ec92e36b69506dd1be3242822"
MY_P="${PN}-${COMMIT}"
SRC_URI="https://github.com/sullo/nikto/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"
#nikto provie its own libwhisker, do no use net-libs/libwhisker[ssl]
RDEPEND="dev-lang/perl
virtual/perl-JSON-PP
net-analyzer/nmap
ssl? (
dev-libs/openssl
dev-perl/Net-SSLeay
)
"
S="${WORKDIR}/${MY_P}/program"
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=/opt/nikto:EXECDIR=/usr/share/nikto:' nikto.conf.default || die
sed -i -e 's:NIKTODTD=docs:NIKTODTD=/usr/share/nikto/docs:' nikto.conf.default || die
default
}
src_install() {
insinto /etc/nikto
newins nikto.conf.default nikto.conf
dobin nikto.pl replay.pl
dosym nikto.pl /usr/bin/nikto
dodir /usr/share/nikto
insinto /usr/share/nikto
doins -r docs plugins templates databases
dodoc docs/*.txt
dodoc docs/nikto_manual.html
}