Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37513063
en ru br
ALT Linux repos
S:2.1.6-alt1.git6f8c472
5.0: 2.03-alt1
4.1: 1.36-alt3
4.0: 1.36-alt1

Group :: Security/Networking
RPM: nikto

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# SPEC file for nikto web server scanner

Name: nikto
Version: 2.1.6
Release: alt1.git6f8c472

Epoch: 1

Summary: web server vulnerability scaner
Summary(ru_RU.UTF-8): сканер уязвимостей веб-серверов

License: %gpl2only
Group: Security/Networking
#URL: http://www.cirt.net/nikto2
URL: https://github.com/sullo/nikto

Packager: Nikolay A. Fetisov <naf at altlinux.org>

Source0: %name-%version.tar
Patch0:  %name-%version-%release.patch

BuildArch: noarch
BuildRequires(pre): rpm-build-licenses

AutoReqProv: perl, yes

Requires: perl-Net-SSLeay openssl perl-bignum

%description
Nikto is an Open Source (GPL) web server scanner which performs
comprehensive tests  against  web servers  for multiple  items,
including  over 3500 potentially dangerous files/CGIs, versions
on over  900 servers, and version specific problems on over 250
servers.

%description -l ru_RU.UTF-8
Nikto  - это сканер веб-серверов, который производит подробное
тестирование  веб-серверов по целому ряду параметров,  включая
проверку на наличие свыше  3500 потенциально  опасных файлов и
CGI-скриптов для более чем 900 версий серверов, а также других
проблем, специфичных для более чем 250 версий серверов.


%define execdir  %_datadir/%name
%define _perl_lib_path %execdir/plugins

%prep
%setup
%patch0 -p1

%build
pushd program

# Fix location of config file

sed -e 's at "nikto.conf" at "%_sysconfdir/%name/nikto.conf" at ' -i nikto.pl

# Fix pathes in config.txt

sed -e 's at NIKTODTD=.*/nikto.dtd at NIKTODTD=%_sysconfdir/%name/nikto.dtd at ' -i nikto.conf
sed -e 's at # EXECDIR=.*/nikto at EXECDIR=%execdir at ' -i nikto.conf

sed -e 's at # PLUGINDIR=.*/plugins at # PLUGINDIR=%execdir/plugins at '         -i nikto.conf
sed -e 's at # DBDIR=.*/databases at # DBDIR=%execdir/databases at '             -i nikto.conf
sed -e 's at # TEMPLATEDIR=.*/templates at # TEMPLATEDIR=%execdir/templates at ' -i nikto.conf
sed -e 's at # DOCDIR=.*/docs at # DOCDIR=%execdir/docs at '                     -i nikto.conf

popd

%install
pushd program

install -m 0755 -d -- %buildroot%_sysconfdir/%name
install -m 0644 -- nikto.conf     %buildroot%_sysconfdir/%name/nikto.conf
install -m 0644 -- docs/%name.dtd %buildroot%_sysconfdir/%name/%name.dtd

install -m 0755 -d -- %buildroot/%_bindir
install -D -m 0755 -- %name.pl    %buildroot%_bindir/%name

install -m 0755 -d -- %buildroot/%execdir/plugins
install -m 0644 -- plugins/* %buildroot%execdir/plugins/

install -m 0755 -d -- %buildroot/%execdir/templates
install -m 0644 -- templates/* %buildroot%execdir/templates/

install -m 0755 -d -- %buildroot/%execdir/databases
install -m 0644 -- databases/* %buildroot%execdir/databases/

popd

%files
%doc README.md program/docs/CHANGES.txt program/docs/LICENSE.txt program/docs/nikto_manual.html

%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/nikto.conf
%config %_sysconfdir/%name/%name.dtd

%_bindir/%name
%dir %_datadir/%name
    %_datadir/%name/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin