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

Contents of /net-analyzer/nikto/nikto-1.34-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

1 mcummings 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dertobi123 1.2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nikto/nikto-1.34-r2.ebuild,v 1.1 2005/05/14 13:44:22 mcummings 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     http://www.cirt.net/nikto/${P}.man"
9    
10     LICENSE="GPL-2"
11     SLOT="0"
12     KEYWORDS="~x86 ~ppc ~sparc"
13     RDEPEND="dev-lang/perl
14     >=net-analyzer/nmap-3.00
15     ssl? ( dev-libs/openssl )"
16     IUSE="ssl"
17    
18     src_compile() {
19     sed -i -e 's:config.txt:nikto.conf:' \
20     -i -e 's:\$CFG{configfile}="nikto.conf":\$CFG{configfile}="/etc/nikto/nikto.conf":' \
21     nikto.pl
22    
23     mv config.txt nikto.conf
24    
25     sed -i -e 's:^#NMAP:NMAP:' \
26     -i -e 's:^PROXYHOST:#PROXYHOST:' \
27     -i -e 's:^PROXYPORT:#PROXYPORT:' \
28     -i -e 's:^PROXYUSER:#PROXYUSER:' \
29     -i -e 's:^PROXYPASS:#PROXYPASS:' \
30     -i -e 's:# PLUGINDIR=/usr/local/nikto/plugins:PLUGINDIR=/usr/share/nikto/plugins:' \
31     nikto.conf
32    
33     cp ${DISTDIR}/${P}.man ${WORKDIR}/${P}.1
34     }
35    
36     src_install() {
37     insinto /etc/nikto
38     doins nikto.conf
39    
40     dodir /usr/bin
41     dobin nikto.pl
42     dosym /usr/bin/nikto.pl /usr/bin/nikto
43    
44     dodir /usr/share/nikto/plugins
45     insinto /usr/share/nikto/plugins
46     doins plugins/*
47    
48     cd docs
49     dodoc CHANGES.txt LICENSE.txt README_plugins.txt nikto_usage.txt
50     dohtml nikto_usage.html
51     doman ${WORKDIR}/${P}.1
52     }

  ViewVC Help
Powered by ViewVC 1.1.20