diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2009-03-20 16:02:06 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2009-03-20 16:02:06 +0000 |
commit | e11ed6ba130e71fb9bd24ce41b56c2fe19d43ad5 (patch) | |
tree | 700f9783c2a361649fcbc6ab1c3f53a109b45445 /net-analyzer/nikto/nikto-2.03.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-e11ed6ba130e71fb9bd24ce41b56c2fe19d43ad5.tar.gz gentoo-2-e11ed6ba130e71fb9bd24ce41b56c2fe19d43ad5.tar.bz2 gentoo-2-e11ed6ba130e71fb9bd24ce41b56c2fe19d43ad5.zip |
Version bump (#208165), Cleanup
(Portage version: 2.2_rc26/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nikto/nikto-2.03.ebuild')
-rw-r--r-- | net-analyzer/nikto/nikto-2.03.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-analyzer/nikto/nikto-2.03.ebuild b/net-analyzer/nikto/nikto-2.03.ebuild new file mode 100644 index 000000000000..46c21ad3c63b --- /dev/null +++ b/net-analyzer/nikto/nikto-2.03.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2009 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() { + cd nikto + + mv config.txt nikto.conf + + 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() { + cd nikto + + insinto /etc/nikto + doins nikto.conf + + dobin nikto.pl + dosym /usr/bin/nikto.pl /usr/bin/nikto + + dodir /usr/share/nikto + insinto /usr/share/nikto + doins -r plugins templates + + dodoc plugins/nikto_plugin_order.txt + dodoc docs/*.txt + dohtml docs/nikto_manual.html +} |