/[gentoo-x86]/net-analyzer/nikto/nikto-1.35.ebuild
Gentoo

Contents of /net-analyzer/nikto/nikto-1.35.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Mar 20 16:02:06 2009 UTC (11 years ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump (#208165), Cleanup
(Portage version: 2.2_rc26/cvs/Linux x86_64)

1 armin76 1.3 # Copyright 1999-2007 Gentoo Foundation
2 mcummings 1.1 # Distributed under the terms of the GNU General Public License v2
3 dertobi123 1.5 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-1.35.ebuild,v 1.4 2007/03/22 14:47:31 gustavoz Exp $
4 mcummings 1.1
5     DESCRIPTION="Web Server vulnerability scanner."
6     HOMEPAGE="http://www.cirt.net/code/nikto.shtml"
7     SRC_URI="http://www.cirt.net/source/nikto/ARCHIVE/${P}.tar.gz"
8    
9     LICENSE="GPL-2"
10     SLOT="0"
11 gustavoz 1.4 KEYWORDS="~amd64 ~ppc sparc x86"
12 mcummings 1.1 RDEPEND="dev-lang/perl
13     >=net-analyzer/nmap-3.00
14     ssl? ( dev-libs/openssl )"
15     IUSE="ssl"
16    
17     src_compile() {
18     sed -i -e 's:config.txt:nikto.conf:' \
19     -i -e 's:\$CFG{configfile}="nikto.conf":\$CFG{configfile}="/etc/nikto/nikto.conf":' \
20     nikto.pl
21    
22     mv config.txt nikto.conf
23    
24     sed -i -e 's:^#NMAP:NMAP:' \
25     -i -e 's:^PROXYHOST:#PROXYHOST:' \
26     -i -e 's:^PROXYPORT:#PROXYPORT:' \
27     -i -e 's:^PROXYUSER:#PROXYUSER:' \
28     -i -e 's:^PROXYPASS:#PROXYPASS:' \
29     -i -e 's:# PLUGINDIR=/usr/local/nikto/plugins:PLUGINDIR=/usr/share/nikto/plugins:' \
30     nikto.conf
31    
32     cp ${S}/docs/nikto-1.34.man ${WORKDIR}/${PN}.1
33     }
34    
35     src_install() {
36     insinto /etc/nikto
37     doins nikto.conf
38    
39     dodir /usr/bin
40     dobin nikto.pl
41     dosym /usr/bin/nikto.pl /usr/bin/nikto
42    
43     dodir /usr/share/nikto/plugins
44     insinto /usr/share/nikto/plugins
45     doins plugins/*
46    
47     cd docs
48     dodoc CHANGES.txt LICENSE.txt README_plugins.txt nikto_usage.txt
49     dohtml nikto_usage.html
50     doman ${WORKDIR}/${PN}.1
51     }

  ViewVC Help
Powered by ViewVC 1.1.20