diff --git a/net-analyzer/nikto/Manifest b/net-analyzer/nikto/Manifest new file mode 100644 index 000000000..162f15cae --- /dev/null +++ b/net-analyzer/nikto/Manifest @@ -0,0 +1,2 @@ +DIST nikto-2.1.1.tar.bz2 262100 RMD160 16d4c897798f9831944b79cb9b487e2a719e2c89 SHA1 f1c4faf11d658376212ed9eb47b55e8f76bc9cbf SHA256 11443267c33ebdc696e39a9e76f5a842f5dc568afc7351d22310991ee900c29d +EBUILD nikto-2.1.1.ebuild 1242 RMD160 a741ffe6f4c074ce6f39a3dae769001a30f2b443 SHA1 011c1f728df6b6ac85e5b1851e86922bcef5c013 SHA256 000f630ac7e442328b7baa8a037efa0f0060c47b65ca83bbea2ba1f4e5f541a1 diff --git a/net-analyzer/nikto/nikto-2.1.1.ebuild b/net-analyzer/nikto/nikto-2.1.1.ebuild new file mode 100644 index 000000000..97649b463 --- /dev/null +++ b/net-analyzer/nikto/nikto-2.1.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-2.03.ebuild,v 1.1 2009/03/20 16:02:06 dertobi123 Exp $ + +DESCRIPTION="Web Server vulnerability scanner." +HOMEPAGE="http://www.cirt.net/code/nikto.shtml" +SRC_URI="http://www.cirt.net/source/nikto/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="ssl" + +RDEPEND="dev-lang/perl + >=net-analyzer/nmap-3.00 + ssl? ( + dev-libs/openssl + dev-perl/Net-SSLeay + )" + +src_compile() { + sed -i -e 's:config.txt:nikto.conf:g' \ + plugins/* docs/nikto.1 nikto.pl + + sed -i -e 's:config.txt:nikto.conf:' \ + -i -e 's:\($NIKTO{configfile} = \)"nikto.conf":\1"/etc/nikto/nikto.conf":' \ + nikto.pl + + sed -i -e 's:/usr/local/bin/nmap:/usr/bin/nmap:' \ + -i -e 's:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:' \ + nikto.conf + + rm -rf $(find -name .svn -type d) +} + +src_install() { + insinto /etc/ + doins nikto.conf || die "config install failed" + + dobin nikto.pl || die "install failed" + dosym /usr/bin/nikto.pl /usr/bin/nikto + + dodir /usr/share/nikto + insinto /usr/share/nikto + doins -r plugins templates + + dodoc docs/*.txt + dohtml docs/nikto_manual.html +}