Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2012 18:54:15 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307388 - head/security/nikto
Message-ID:  <201211131854.qADIsFZG000294@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Nov 13 18:54:15 2012
New Revision: 307388
URL: http://svnweb.freebsd.org/changeset/ports/307388

Log:
  - Update to version 2.1.5
  - Add LICENSE
  - Convert to optionsNG
  - Don't overwrite user modified config
  
  PR:		ports/172058
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Modified:
  head/security/nikto/Makefile
  head/security/nikto/distinfo
  head/security/nikto/pkg-plist

Modified: head/security/nikto/Makefile
==============================================================================
--- head/security/nikto/Makefile	Tue Nov 13 18:17:13 2012	(r307387)
+++ head/security/nikto/Makefile	Tue Nov 13 18:54:15 2012	(r307388)
@@ -1,14 +1,8 @@
-# New ports collection makefile for: 	nikto
-# Date created: 			23 September 2002
-# Whom: 				pandzilla
-#
+# Created by: pandzilla
 # $FreeBSD$
-#
-# $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 @@ MASTER_SITES=	http://www.cirt.net/${PORT
 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>

Modified: head/security/nikto/distinfo
==============================================================================
--- head/security/nikto/distinfo	Tue Nov 13 18:17:13 2012	(r307387)
+++ head/security/nikto/distinfo	Tue Nov 13 18:54:15 2012	(r307388)
@@ -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

Modified: head/security/nikto/pkg-plist
==============================================================================
--- head/security/nikto/pkg-plist	Tue Nov 13 18:17:13 2012	(r307387)
+++ head/security/nikto/pkg-plist	Tue Nov 13 18:54:15 2012	(r307388)
@@ -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 @@ etc/nikto.conf.sample
 %%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,6 @@ etc/nikto.conf.sample
 %%DATADIR%%/templates/xml_summary.tmpl
 @dirrm %%DATADIR%%/templates
 @dirrm %%DATADIR%%/plugins
+@dirrm %%DATADIR%%/databases
 @dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%



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