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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Mar 13 20:51:10 2005 UTC (15 years ago) by mcummings
Branch: MAIN
Changes since 1.6: +2 -2 lines
bug 70465
(Portage version: 2.0.51.19)

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

  ViewVC Help
Powered by ViewVC 1.1.20