nikto has been moved to github so portroach can't find latest version. Attached diff updates to github and version 2.1.6
builds on amd64 Ok?
Index: Makefile =================================================================== RCS file: /home/cvs/ports/security/nikto/Makefile,v retrieving revision 1.23 diff -u -p -r1.23 Makefile --- Makefile 28 Jul 2015 10:07:59 -0000 1.23 +++ Makefile 24 Aug 2017 09:45:25 -0000 @@ -2,7 +2,10 @@ COMMENT = web and CGI vulnerability scanner with SSL support -DISTNAME = nikto-2.1.5 +GH_ACCOUNT = sullo +GH_PROJECT = nikto +GH_TAGNAME = 2.1.6 + EPOCH = 0 CATEGORIES = security www @@ -13,11 +16,6 @@ MAINTAINER = Nigel Taylor <nigel@openbsd # GPLv2 PERMIT_PACKAGE_CDROM = Yes -MASTER_SITES = http://www.cirt.net/nikto/ \ - http://www.cirt.net/nikto/ARCHIVE/ - -EXTRACT_SUFX = .tar.bz2 - RUN_DEPENDS = security/p5-Net_SSLeay NO_BUILD = Yes @@ -28,7 +26,7 @@ pre-configure: sed -i 's%# EXECDIR=.*%EXECDIR=${PREFIX}/share/nikto%; \ s%# DOCDIR=.*%DOCDIR=${PREFIX}/share/doc/nikto%; \ s%# DBDIR=.*%DBDIR=/var/db/nikto/databases%' \ - ${WRKSRC}/nikto.conf + ${WRKSRC}/program/nikto.conf do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/nikto/databases @@ -37,17 +35,25 @@ do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nikto ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nikto - ${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto - ${INSTALL_DATA} ${WRKSRC}/nikto.conf \ + ${INSTALL_SCRIPT} ${WRKSRC}/program/nikto.pl ${PREFIX}/bin/nikto + ${INSTALL_SCRIPT} ${WRKSRC}/program/replay.pl ${PREFIX}/bin/replay + ${INSTALL_DATA} ${WRKSRC}/program/nikto.conf \ ${PREFIX}/share/examples/nikto/nikto.conf - ${INSTALL_DATA} ${WRKSRC}/databases/!(*.orig) ${PREFIX}/share/nikto/databases - ${INSTALL_DATA} ${WRKSRC}/plugins/!(*.orig) ${PREFIX}/share/nikto/plugins - ${INSTALL_DATA} ${WRKSRC}/templates/!(*.orig) ${PREFIX}/share/nikto/templates - - ${INSTALL_DATA} ${WRKSRC}/docs/nikto_manual.html ${PREFIX}/share/doc/nikto - ${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.txt ${PREFIX}/share/doc/nikto - ${INSTALL_DATA} ${WRKSRC}/docs/nikto.dtd ${PREFIX}/share/doc/nikto - ${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/nikto.1 + ${INSTALL_DATA} ${WRKSRC}/program/databases/!(*.orig) \ + ${PREFIX}/share/nikto/databases + ${INSTALL_DATA} ${WRKSRC}/program/plugins/!(*.orig) \ + ${PREFIX}/share/nikto/plugins + ${INSTALL_DATA} ${WRKSRC}/program/templates/!(*.orig) \ + ${PREFIX}/share/nikto/templates + + ${INSTALL_DATA} ${WRKSRC}/program/docs/nikto_manual.html \ + ${PREFIX}/share/doc/nikto + ${INSTALL_DATA} ${WRKSRC}/program/docs/CHANGES.txt \ + ${PREFIX}/share/doc/nikto + ${INSTALL_DATA} ${WRKSRC}/program/docs/nikto.dtd \ + ${PREFIX}/share/doc/nikto + ${INSTALL_MAN} ${WRKSRC}/program/docs/nikto.1 \ + ${PREFIX}/man/man1/nikto.1 .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /home/cvs/ports/security/nikto/distinfo,v retrieving revision 1.15 diff -u -p -r1.15 distinfo --- distinfo 12 Jan 2013 17:38:14 -0000 1.15 +++ distinfo 1 Feb 2016 19:03:27 -0000 @@ -1,2 +1,2 @@ -SHA256 (nikto-2.1.5.tar.bz2) = ZbmcH97BTR1efLyWT3D84WLL7FCu6HjhUA4tIt8HmzQ= -SIZE (nikto-2.1.5.tar.bz2) = 311580 +SHA256 (nikto-2.1.6.tar.gz) = wXMa5BM9OHlxi7dgWo05WyA2ZoUF7/vLvKpNrk6fJ/I= +SIZE (nikto-2.1.6.tar.gz) = 490743 Index: patches/patch-nikto_pl =================================================================== RCS file: patches/patch-nikto_pl diff -N patches/patch-nikto_pl --- patches/patch-nikto_pl 12 Jan 2013 17:38:14 -0000 1.6 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-nikto_pl,v 1.6 2013/01/12 17:38:14 nigel Exp $ ---- nikto.pl.orig Mon Sep 10 05:22:36 2012 -+++ nikto.pl Tue Sep 25 14:13:34 2012 -@@ -333,7 +333,7 @@ sub setup_dirs { - $CONFIGFILE{'TEMPLATEDIR'} = "$CONFIGFILE{'EXECDIR'}/templates"; - } - unless (defined $CONFIGFILE{'DOCUMENTDIR'}) { -- $CONFIGFILE{'DOCUMENTDIR'} = "$CONFIGFILE{'EXECDIR'}/docs"; -+ $CONFIGFILE{'DOCUMENTDIR'} = "$CONFIGFILE{'DOCDIR'}/docs"; - } - unless (defined $CONFIGFILE{'DBDIR'}) { - $CONFIGFILE{'DBDIR'} = "$CONFIGFILE{'EXECDIR'}/databases"; Index: patches/patch-plugins_nikto_core_plugin =================================================================== RCS file: patches/patch-plugins_nikto_core_plugin diff -N patches/patch-plugins_nikto_core_plugin --- patches/patch-plugins_nikto_core_plugin 12 Jan 2013 17:38:14 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ -$OpenBSD: patch-plugins_nikto_core_plugin,v 1.1 2013/01/12 17:38:14 nigel Exp $ ---- plugins/nikto_core.plugin.orig Fri Sep 14 07:52:12 2012 -+++ plugins/nikto_core.plugin Thu Sep 27 16:24:36 2012 -@@ -1901,8 +1901,7 @@ sub check_updates { - if ($remotemsg ne "") { nprint("+ $server message: $remotemsg"); } - exit; - } -- push(@DBTOGET, $remotefile); -- if ($remotefile !~ /^db_/) { $code_updates = 1; } -+ if ($remotefile =~ /^db_/) { push(@DBTOGET, $remotefile); } - } - } - Index: patches/patch-program_nikto_pl =================================================================== RCS file: patches/patch-program_nikto_pl diff -N patches/patch-program_nikto_pl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-program_nikto_pl 1 Feb 2016 19:38:14 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- program/nikto.pl.orig Thu Jul 9 15:06:04 2015 ++++ program/nikto.pl Mon Feb 1 19:37:41 2016 +@@ -358,7 +358,7 @@ sub setup_dirs { + $CONFIGFILE{'TEMPLATEDIR'} = "$CONFIGFILE{'EXECDIR'}/templates"; + } + unless (defined $CONFIGFILE{'DOCDIR'}) { +- $CONFIGFILE{'DOCDIR'} = "$CONFIGFILE{'EXECDIR'}/docs"; ++ $CONFIGFILE{'DOCDIR'} = "$CONFIGFILE{'DOCDIR'}/docs"; + } + unless (defined $CONFIGFILE{'DBDIR'}) { + $CONFIGFILE{'DBDIR'} = "$CONFIGFILE{'EXECDIR'}/databases"; Index: patches/patch-program_plugins_nikto_core_plugin =================================================================== RCS file: patches/patch-program_plugins_nikto_core_plugin diff -N patches/patch-program_plugins_nikto_core_plugin --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-program_plugins_nikto_core_plugin 1 Feb 2016 19:28:19 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- program/plugins/nikto_core.plugin.orig Thu Jul 9 15:06:04 2015 ++++ program/plugins/nikto_core.plugin Mon Feb 1 19:27:53 2016 +@@ -1967,8 +1967,7 @@ sub check_updates { + if ($remotemsg ne "") { nprint("+ $server message: $remotemsg"); } + exit; + } +- push(@DBTOGET, $remotefile); +- if ($remotefile !~ /^db_/) { $code_updates = 1; } ++ if ($remotefile =~ /^db_/) { push(@DBTOGET, $remotefile); } + } + } + Index: pkg/PLIST =================================================================== RCS file: /home/cvs/ports/security/nikto/pkg/PLIST,v retrieving revision 1.13 diff -u -p -r1.13 PLIST --- pkg/PLIST 12 Jan 2013 17:38:14 -0000 1.13 +++ pkg/PLIST 27 Mar 2017 13:59:09 -0000 @@ -2,6 +2,7 @@ @newgroup _nikto:710 @newuser _nikto:710:710:daemon:Nikto web scanner:/nonexistent:/sbin/nologin bin/nikto +bin/replay @man man/man1/nikto.1 share/doc/nikto/ share/doc/nikto/CHANGES.txt @@ -20,6 +21,8 @@ share/nikto/databases/db_content_search @sample /var/db/nikto/databases/db_content_search share/nikto/databases/db_dictionary @sample /var/db/nikto/databases/db_dictionary +share/nikto/databases/db_drupal +@sample /var/db/nikto/databases/db_durpal share/nikto/databases/db_embedded @sample /var/db/nikto/databases/db_embedded share/nikto/databases/db_favicon @@ -47,7 +50,6 @@ share/nikto/databases/db_variables @exec chown -R _nikto:_nikto /var/db/nikto/databases @exec chmod -R g+w /var/db/nikto/databases share/nikto/plugins/ -share/nikto/plugins/JSON-PP.pm share/nikto/plugins/LW2.pm share/nikto/plugins/nikto_apache_expect_xss.plugin share/nikto/plugins/nikto_apacheusers.plugin @@ -58,25 +60,30 @@ share/nikto/plugins/nikto_content_search share/nikto/plugins/nikto_cookies.plugin share/nikto/plugins/nikto_core.plugin share/nikto/plugins/nikto_dictionary_attack.plugin +share/nikto/plugins/nikto_drupal.plugin share/nikto/plugins/nikto_embedded.plugin share/nikto/plugins/nikto_favicon.plugin share/nikto/plugins/nikto_fileops.plugin share/nikto/plugins/nikto_headers.plugin share/nikto/plugins/nikto_httpoptions.plugin +share/nikto/plugins/nikto_ms10_070.plugin share/nikto/plugins/nikto_msgs.plugin share/nikto/plugins/nikto_multiple_index.plugin +share/nikto/plugins/nikto_negotiate.plugin share/nikto/plugins/nikto_outdated.plugin share/nikto/plugins/nikto_parked.plugin share/nikto/plugins/nikto_paths.plugin share/nikto/plugins/nikto_put_del_test.plugin share/nikto/plugins/nikto_report_csv.plugin share/nikto/plugins/nikto_report_html.plugin -share/nikto/plugins/nikto_report_msf.plugin share/nikto/plugins/nikto_report_nbe.plugin +share/nikto/plugins/nikto_report_sqlg.plugin share/nikto/plugins/nikto_report_text.plugin share/nikto/plugins/nikto_report_xml.plugin share/nikto/plugins/nikto_robots.plugin +share/nikto/plugins/nikto_shellshock.plugin share/nikto/plugins/nikto_siebel.plugin +share/nikto/plugins/nikto_sitefiles.plugin share/nikto/plugins/nikto_ssl.plugin share/nikto/plugins/nikto_subdomain.plugin share/nikto/plugins/nikto_tests.plugin