rpms/nikto/FC-6 nikto-1.36-libwhisker.patch, NONE, 1.1 nikto-database-license.txt, NONE, 1.1 nikto.spec, NONE, 1.1 sources, 1.1, 1.2

Sindre Pedersen Bjørdal (sindrepb) fedora-extras-commits at redhat.com
Wed Jun 6 18:51:50 UTC 2007


Author: sindrepb

Update of /cvs/extras/rpms/nikto/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7811

Modified Files:
	sources 
Added Files:
	nikto-1.36-libwhisker.patch nikto-database-license.txt 
	nikto.spec 
Log Message:
add files to branch

nikto-1.36-libwhisker.patch:

--- NEW FILE nikto-1.36-libwhisker.patch ---
--- nikto-1.36/nikto.pl.orig	2007-05-04 17:26:09.000000000 +0200
+++ nikto-1.36/nikto.pl	2007-05-04 17:26:20.000000000 +0200
@@ -63,8 +63,8 @@ my $STARTTIME=localtime();
 load_configs();
 find_plugins();
 require "$NIKTO{plugindir}/nikto_core.plugin";
-require "$NIKTO{plugindir}/LW.pm";
-# use LW;
+#require "$NIKTO{plugindir}/LW.pm";
+ use LW;
 
 general_config();
 


--- NEW FILE nikto-database-license.txt ---
#license as stated in .db files

# http://www.cirt.net

# This file may only be distributed and used with the full Nikto package.
# This file may not be used with any software product without written permission from CIRT, Inc.
# (c) 2001-2007 CIRT, Inc., All Rights Reserved.

# By sending any database updates to cirt.net, it is assumed that you 
# grant cirt.net the unlimited, non-exclusive right to reuse, modify and relicense the changes.


--- NEW FILE nikto.spec ---
Name:           nikto
Version:        1.36
Release:        3%{?dist}
Summary:        Web server scanner 

Group:          Applications/Internet
License:        Custom, see LICENSE.txt
URL:            http://www.cirt.net/code/nikto.shtml
Source0:        http://www.cirt.net/nikto/%{name}-%{version}.tar.bz2
#use system libwhisker
Source1:        nikto-database-license.txt
Patch0:         nikto-1.36-libwhisker.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
Requires:       nmap


%description
Nikto is a web server scanner which performs comprehensive tests against web
servers for multiple items, including over 3300 potentially dangerous
files/CGIs, versions on over 625 servers, and version specific problems
on over 230 servers. Scan items and plugins are frequently updated and
can be automatically updated (if desired).

%prep
%setup -q
%patch0 -p1

#change configfile path
sed -i "s:$CFG{configfile}=\"config.txt\":$CFG{configfile}=\"%{_sysconfdir}/nikto/config\":" nikto.pl
#enable nmap by default and set plugindir path
sed -i "s:#NMAP=/usr/bin/nmap:NMAP=%{_bindir}/nmap:;
        s:# PLUGINDIR=/usr/local/nikto/plugins:PLUGINDIR=%{_datadir}/nikto/plugins:" config.txt

%build
#no build required


%install
rm -rf $RPM_BUILD_ROOT
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-%{version}/database-license.txt
install -pD nikto.pl $RPM_BUILD_ROOT%{_bindir}/nikto
install -m 0644 -pD docs/nikto-%{version}.man $RPM_BUILD_ROOT%{_mandir}/man1/nikto.1
mkdir -p $RPM_BUILD_ROOT%{_datadir}/nikto/plugins/
install -m 0644 -p plugins/* $RPM_BUILD_ROOT%{_datadir}/nikto/plugins/
install -m 0644 -pD config.txt $RPM_BUILD_ROOT%{_sysconfdir}/nikto/config

#remove unneeded files
rm -f $RPM_BUILD_ROOT%{_datadir}/nikto/plugins/LW.pm

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc docs/CHANGES.txt docs/LICENSE.txt docs/README_plugins.txt database-license.txt
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/nikto
%{_datadir}/nikto
%{_mandir}/man?/*


%changelog
* Wed May 30 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 1.36-3
- Add sed magic to really replace nikto-1.36-config.patch
* Mon May 28 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 1.36-2
- Remove libwhisker Requires
- Replace configfile patch with sed magic
- Update License
- Add database-license.txt to %%doc
* Fri May 04 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 1.36-1
- Initial build


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/nikto/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	6 Jun 2007 16:19:00 -0000	1.1
+++ sources	6 Jun 2007 18:51:15 -0000	1.2
@@ -0,0 +1 @@
+d70107deb225489ecf20e2b46684674e  nikto-1.36.tar.bz2




More information about the fedora-extras-commits mailing list