Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 02:26:34 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172058: security/nikto: Update to version 2.1.5
Message-ID:  <20120926022634.2a39c6abf36fa4a339a2b829@yahoo.com>
Resent-Message-ID: <201209251820.q8PIKHoD035043@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172058
>Category:       ports
>Synopsis:       security/nikto: Update to version 2.1.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 18:20:17 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 2.1.5

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/security/nikto/Makefile security/nikto/Makefile
--- /usr/ports/security/nikto/Makefile	2011-11-21 14:14:34.000000000 +0900
+++ security/nikto/Makefile	2012-09-25 03:41:41.000000000 +0900
@@ -1,14 +1,8 @@
-# New ports collection makefile for: 	nikto
-# Date created: 			23 September 2002
-# Whom: 				pandzilla
-#
+# Created by: pandzilla
 # $FreeBSD: ports/security/nikto/Makefile,v 1.30 2011/11/21 05:14:34 cs Exp $
-#
-# $Tecnik: ports/security/nikto/Makefile,v 1.7 2005/12/13 16:26:20 itetcu Exp $
-#
 
 PORTNAME=	nikto
-PORTVERSION=	2.1.4
+PORTVERSION=	2.1.5
 PORTEPOCH=	1
 CATEGORIES=	security www
 MASTER_SITES=	http://www.cirt.net/${PORTNAME}/ \
@@ -17,44 +11,53 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Web and CGI vulnerability scanner with SSL support
 
-MAN1=		nikto.1
+LICENSE=	GPLv2
+
+OPTIONS_DEFINE=	SSLEAY DOCS
+OPTIONS_DEFAULT=SSLEAY
+SSLEAY_DESC=	Use NET::SSLeay for ssl scanning
 
-USE_BZIP2=	yes
-USE_PERL5_RUN=	yes
 NO_BUILD=	yes
 
-PORTDOCS=	CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html
+USE_BZIP2=	yes
+USE_PERL5_RUN=	yes
 
-OPTIONS+=	SSLEAY "Use NET::SSLeay for ssl scanning" on
+MAN1=		nikto.1
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.ifdef(WITH_SSLEAY)
+.if ${PORT_OPTIONS:MSSLEAY}
 RUN_DEPENDS+=	p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|" \
-		-e "s|/etc/nikto.conf|${PREFIX}/etc/nikto.conf|" ${WRKSRC}/nikto.pl
-	@${REINPLACE_CMD} -Ee "s|# (EXECDIR=)/usr/local/nikto|\1${DATADIR}|g" \
-		-e "s|# (PLUGINDIR=)/opt/nikto/plugins|\1${DATADIR}/plugins|g" \
-		-e "s|# (TEMPLATEDIR=)/opt/nikto/templates|\1${DATADIR}/templates|g" \
-		-e "s|# (DOCDIR=)/opt/nikto/docs|\1${DOCSDIR}|g" ${WRKSRC}/nikto.conf
+	@${REINPLACE_CMD} -e \
+		's|/usr/local/bin/perl|${PERL}| ; \
+		 s|/etc/nikto.conf|${PREFIX}/etc/nikto.conf|' ${WRKSRC}/nikto.pl
+	@${REINPLACE_CMD} -Ee \
+		's|# (EXECDIR=).*/nikto|\1${DATADIR}| ; \
+		 s|# (DBDIR=).*/databases|\1${DATADIR}/databases| ; \
+		 s|# (PLUGINDIR=).*/plugins|\1${DATADIR}/plugins| ; \
+		 s|# (TEMPLATEDIR=).*/templates|\1${DATADIR}/templates| ; \
+		 s|# (DOCDIR=).*/docs|\1${DOCSDIR}|' ${WRKSRC}/nikto.conf
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
+	${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/nikto.1
 	${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf.sample
-	${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/
-	[ -f ${PREFIX}/etc/nikto.conf ] || \
-		${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf
-
-	( cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} .  ${DATADIR}/plugins )
-	( cd ${WRKSRC}/templates && ${COPYTREE_SHARE} .  ${DATADIR}/templates )
-.if !defined(NOPORTDOCS)
+.if !exists(${PREFIX}/etc/nikto.conf)
+	(cd ${PREFIX}/etc && ${CP} -p nikto.conf.sample nikto.conf)
+.endif
+	@${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/replay.pl ${DATADIR}
+.for i in databases plugins templates
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${DATADIR})
+.endfor
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.	for i in ${PORTDOCS}
-		${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
-.	endfor
+.for i in CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html
+	${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
+.endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/security/nikto/distinfo security/nikto/distinfo
--- /usr/ports/security/nikto/distinfo	2011-11-21 14:14:34.000000000 +0900
+++ security/nikto/distinfo	2012-09-19 02:28:21.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (nikto-2.1.4.tar.bz2) = 9af930fea3f124e262d0e63977244b6bd19e22749f4defa818bb4d9b107ad603
-SIZE (nikto-2.1.4.tar.bz2) = 288160
+SHA256 (nikto-2.1.5.tar.bz2) = 65b99c1fdec14d1d5e7cbc964f70fce162cbec50aee878e1500e2d22df079b34
+SIZE (nikto-2.1.5.tar.bz2) = 311580
diff -urN /usr/ports/security/nikto/pkg-plist security/nikto/pkg-plist
--- /usr/ports/security/nikto/pkg-plist	2011-11-21 14:14:34.000000000 +0900
+++ security/nikto/pkg-plist	2012-09-23 20:51:44.000000000 +0900
@@ -1,36 +1,47 @@
 bin/nikto
-etc/nikto.conf
+@unexec if cmp -s %D/etc/nikto.conf %D/etc/nikto.conf.sample; then rm -f %D/etc/nikto.conf; fi
 etc/nikto.conf.sample
+@exec if [ ! -f %D/etc/nikto.conf ] ; then cp -p %D/%F %B/nikto.conf; fi
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%PORTDOCS%%%%DOCSDIR%%/nikto.dtd
+%%PORTDOCS%%%%DOCSDIR%%/nikto_manual.html
+%%DATADIR%%/databases/db_404_strings
+%%DATADIR%%/databases/db_content_search
+%%DATADIR%%/databases/db_dictionary
+%%DATADIR%%/databases/db_embedded
+%%DATADIR%%/databases/db_favicon
+%%DATADIR%%/databases/db_headers
+%%DATADIR%%/databases/db_httpoptions
+%%DATADIR%%/databases/db_multiple_index
+%%DATADIR%%/databases/db_outdated
+%%DATADIR%%/databases/db_parked_strings
+%%DATADIR%%/databases/db_realms
+%%DATADIR%%/databases/db_server_msgs
+%%DATADIR%%/databases/db_subdomains
+%%DATADIR%%/databases/db_tests
+%%DATADIR%%/databases/db_variables
+%%DATADIR%%/plugins/JSON-PP.pm
 %%DATADIR%%/plugins/LW2.pm
-%%DATADIR%%/plugins/db_404_strings
-%%DATADIR%%/plugins/db_content_search
-%%DATADIR%%/plugins/db_embedded
-%%DATADIR%%/plugins/db_favicon
-%%DATADIR%%/plugins/db_headers
-%%DATADIR%%/plugins/db_httpoptions
-%%DATADIR%%/plugins/db_multiple_index
-%%DATADIR%%/plugins/db_outdated
-%%DATADIR%%/plugins/db_realms
-%%DATADIR%%/plugins/db_server_msgs
-%%DATADIR%%/plugins/db_subdomains
-%%DATADIR%%/plugins/db_tests
-%%DATADIR%%/plugins/db_variables
 %%DATADIR%%/plugins/nikto_apache_expect_xss.plugin
 %%DATADIR%%/plugins/nikto_apacheusers.plugin
 %%DATADIR%%/plugins/nikto_auth.plugin
 %%DATADIR%%/plugins/nikto_cgi.plugin
+%%DATADIR%%/plugins/nikto_clientaccesspolicy.plugin
 %%DATADIR%%/plugins/nikto_content_search.plugin
 %%DATADIR%%/plugins/nikto_cookies.plugin
 %%DATADIR%%/plugins/nikto_core.plugin
-%%DATADIR%%/plugins/nikto_core.plugin.debug
 %%DATADIR%%/plugins/nikto_dictionary_attack.plugin
 %%DATADIR%%/plugins/nikto_embedded.plugin
 %%DATADIR%%/plugins/nikto_favicon.plugin
+%%DATADIR%%/plugins/nikto_fileops.plugin
 %%DATADIR%%/plugins/nikto_headers.plugin
 %%DATADIR%%/plugins/nikto_httpoptions.plugin
 %%DATADIR%%/plugins/nikto_msgs.plugin
 %%DATADIR%%/plugins/nikto_multiple_index.plugin
 %%DATADIR%%/plugins/nikto_outdated.plugin
+%%DATADIR%%/plugins/nikto_parked.plugin
+%%DATADIR%%/plugins/nikto_paths.plugin
 %%DATADIR%%/plugins/nikto_put_del_test.plugin
 %%DATADIR%%/plugins/nikto_report_csv.plugin
 %%DATADIR%%/plugins/nikto_report_html.plugin
@@ -39,10 +50,11 @@
 %%DATADIR%%/plugins/nikto_report_text.plugin
 %%DATADIR%%/plugins/nikto_report_xml.plugin
 %%DATADIR%%/plugins/nikto_robots.plugin
-%%DATADIR%%/plugins/nikto_single.plugin
+%%DATADIR%%/plugins/nikto_siebel.plugin
 %%DATADIR%%/plugins/nikto_ssl.plugin
 %%DATADIR%%/plugins/nikto_subdomain.plugin
 %%DATADIR%%/plugins/nikto_tests.plugin
+%%DATADIR%%/replay.pl
 %%DATADIR%%/templates/htm_close.tmpl
 %%DATADIR%%/templates/htm_end.tmpl
 %%DATADIR%%/templates/htm_host_head.tmpl
@@ -60,4 +72,5 @@
 %%DATADIR%%/templates/xml_summary.tmpl
 @dirrm %%DATADIR%%/templates
 @dirrm %%DATADIR%%/plugins
+@dirrm %%DATADIR%%/databases
 @dirrm %%DATADIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120926022634.2a39c6abf36fa4a339a2b829>