# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
homepage http://cirt.net/nikto2
description Web server scanner
long_description Nikto is an Open Source (GPL) web server scanner \
which performs comprehensive tests against web \
servers for multiple items, including over 6400 \
potentially dangerous files/CGIs, checks for \
outdated versions of over 1200 servers, and version \
specific problems on over 270 servers. It also \
checks for server configuration items such as the \
presence of multiple index files, HTTP server \
options, and will attempt to identify installed web \
servers and software. Scan items and plugins are \
frequently updated and can be automatically updated.
master_sites https://cirt.net/nikto/
checksums rmd160 ba392c5301ab01fc44c63c62fc519b92c06f60b8 \
sha256 65b99c1fdec14d1d5e7cbc964f70fce162cbec50aee878e1500e2d22df079b34
patchfiles patch-nikto.conf.diff
reinplace "s|/etc/nikto.conf|${prefix}/etc/nikto/nikto.conf|g" ${worksrcpath}/nikto.pl
reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" ${worksrcpath}/nikto.pl
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/nikto.conf
xinstall -d ${destroot}${prefix}/etc/nikto
xinstall -d ${destroot}${prefix}/share/nikto
copy ${worksrcpath}/plugins ${destroot}${prefix}/share/${name}/plugins
copy ${worksrcpath}/databases ${destroot}${prefix}/share/${name}/databases
copy ${worksrcpath}/templates ${destroot}${prefix}/share/${name}/templates
copy ${worksrcpath}/docs ${destroot}${prefix}/share/${name}/docs
xinstall ${worksrcpath}/nikto.pl ${destroot}${prefix}/bin/nikto
xinstall -m 644 ${worksrcpath}/nikto.conf ${destroot}${prefix}/etc/nikto/nikto.conf.sample
if {![file exists ${prefix}/etc/nikto/nikto.conf]} {
copy ${prefix}/etc/nikto/nikto.conf.sample ${prefix}/etc/nikto/nikto.conf