Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2014 15:13:07 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339513 - head/security/nikto
Message-ID:  <201401121513.s0CFD7VT068212@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Sun Jan 12 15:13:07 2014
New Revision: 339513
URL: http://svnweb.freebsd.org/changeset/ports/339513

Log:
  - Enable stage support
  - Correct perl path
  - Bump PORTREVISION

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

Modified: head/security/nikto/Makefile
==============================================================================
--- head/security/nikto/Makefile	Sun Jan 12 15:09:29 2014	(r339512)
+++ head/security/nikto/Makefile	Sun Jan 12 15:13:07 2014	(r339513)
@@ -3,6 +3,7 @@
 
 PORTNAME=	nikto
 PORTVERSION=	2.1.5
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security www
 MASTER_SITES=	http://www.cirt.net/${PORTNAME}/ \
@@ -16,50 +17,37 @@ LICENSE=	GPLv2
 OPTIONS_DEFINE=	SSLEAY DOCS
 OPTIONS_DEFAULT=SSLEAY
 SSLEAY_DESC=	Use NET::SSLeay for ssl scanning
+SSLEAY_RUN_DEPENDS=	p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
 
 NO_BUILD=	yes
 
 USE_BZIP2=	yes
-USES=		perl5
+USES=		perl5 shebangfix
 USE_PERL5=	run
+SHEBANG_FILES=	nikto.pl
 
-MAN1=		nikto.1
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSSLEAY}
-RUN_DEPENDS+=	p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
-.endif
-
-post-patch:
-	@${REINPLACE_CMD} -e \
+post-patch:	.SILENT
+	${REINPLACE_CMD} -e \
 		's|/usr/local/bin/perl|${PERL}| ; \
 		 s|/etc/nikto.conf|${PREFIX}/etc/nikto.conf|' ${WRKSRC}/nikto.pl
-	@${REINPLACE_CMD} -Ee \
+	${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
-.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}
+do-install:	.SILENT
+	${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${STAGEDIR}${PREFIX}/bin/nikto
+	${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${STAGEDIR}${PREFIX}/man/man1/nikto.1
+	${INSTALL_DATA} ${WRKSRC}/nikto.conf ${STAGEDIR}${PREFIX}/etc/nikto.conf.sample
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/replay.pl ${STAGEDIR}${DATADIR}
 .for i in databases plugins templates
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${DATADIR})
-.endfor
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for i in CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html
-	${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
+	cd ${WRKSRC}; ${COPYTREE_SHARE} ${i} ${STAGEDIR}${DATADIR}
 .endfor
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/docs; ${INSTALL_DATA} CHANGES.txt LICENSE.txt nikto.dtd \
+		nikto_manual.html ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/security/nikto/pkg-plist
==============================================================================
--- head/security/nikto/pkg-plist	Sun Jan 12 15:09:29 2014	(r339512)
+++ head/security/nikto/pkg-plist	Sun Jan 12 15:13:07 2014	(r339513)
@@ -2,6 +2,7 @@ bin/nikto
 @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
+man/man1/nikto.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
 %%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
 %%PORTDOCS%%%%DOCSDIR%%/nikto.dtd



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