File nikto.spec of Package nikto

#
# spec file for package nikto
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           nikto
Version:        2.1.5
Release:        1.0
Url:            http://cirt.net/nikto2
Source:         http://cirt.net/nikto/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE nikto-config.patch -- make paths FHS compliant
Patch0:         nikto-config.patch
# PATCH-FIX-UPSTREAM nikto-fsf-address.patch [] -- fix FSF Address
Patch1:         nikto-fsf-address.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Requires:       nmap
%if 0%{?suse_version} > 1100
Requires:       perl-Net-SSLeay
%else
Requires:       perl-Net_SSLeay
%endif
Summary:        Web server scanner
License:        GPL-2.0
Group:          Productivity/Networking/Security

%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. Scan 
items and plugins are frequently updated and can be automatically 
updated (if desired).

%prep
%setup
%patch0 -p1
%patch1 -p1

%build

%install
%__install -Dm 0755 nikto.pl %{buildroot}%{_bindir}/nikto
%__install -Dm 0644 nikto.conf %{buildroot}%{_sysconfdir}/nikto.conf
%__mkdir_p %{buildroot}%{_localstatedir}/lib/nikto/databases
%__cp -r plugins %{buildroot}%{_localstatedir}/lib/nikto
%__cp -r templates %{buildroot}%{_localstatedir}/lib/nikto
%__install -Dm 0644 docs/nikto.1 %{buildroot}%{_mandir}/man1/nikto.1
mkdir -p %{buildroot}%{_docdir}/nikto

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc docs/CHANGES.txt docs/nikto.dtd docs/nikto_manual.html
%config(noreplace) %{_sysconfdir}/nikto.conf
%config %{_localstatedir}/lib/nikto
%{_bindir}/nikto
%{_mandir}/man1/nikto.1.*

%changelog
openSUSE Build Service is sponsored by