diff options
author | Niels Heinen <niels@FreeBSD.org> | 2010-08-18 21:20:40 +0000 |
---|---|---|
committer | Niels Heinen <niels@FreeBSD.org> | 2010-08-18 21:20:40 +0000 |
commit | 6cbf8e5f483bf17937e26a397106c06a911372ae (patch) | |
tree | de576cedf0aa3a0050d4fb414c62a42bc0c36a45 /security | |
parent | f5b99e29bc0a00440902b51d444dc4a2d6912d2f (diff) | |
download | ports-6cbf8e5f483bf17937e26a397106c06a911372ae.tar.gz ports-6cbf8e5f483bf17937e26a397106c06a911372ae.zip |
Notes
Diffstat (limited to 'security')
-rw-r--r-- | security/nikto/Makefile | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/security/nikto/Makefile b/security/nikto/Makefile index eac8b488b97c..037846aa84ac 100644 --- a/security/nikto/Makefile +++ b/security/nikto/Makefile @@ -9,6 +9,7 @@ PORTNAME= nikto PORTVERSION= 2.1.2 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security www MASTER_SITES= http://www.cirt.net/${PORTNAME}/ \ @@ -26,28 +27,20 @@ NO_BUILD= yes PORTDOCS= CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html OPTIONS+= SSLEAY "Use NET::SSLeay for ssl scanning" on -OPTIONS+= NMAP "Use security/nmap for port scanning" on .include <bsd.port.pre.mk> .ifdef(WITH_SSLEAY) -RUN_DEPENEDS+= p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay -.endif - -.ifdef(WITH_NMAP) -RUN_DEPENEDS+= nmap:${PORTSDIR}/security/nmap +RUN_DEPENDS+= p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay .endif post-patch: - @${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|" ${WRKSRC}/nikto.pl - @${REINPLACE_CMD} -e "s|/etc/nikto.conf|${PREFIX}/etc/nikto.conf|" ${WRKSRC}/nikto.pl - @${REINPLACE_CMD} -Ee "s|/usr/bin/nmap|${LOCALBASE}/bin/nmap|g" \ - -e "s|# (EXECDIR=)/usr/local/nikto|\1${DATADIR}|g" \ - ${WRKSRC}/nikto.conf - @${REINPLACE_CMD} -e 's:\$NIKTO{plugindir}/../docs/CHANGES.txt:\$NIKTO{plugindir}/../../docs/nikto/CHANGES.txt:' \ - -e 's:\$NIKTO{plugindir}/../CHANGES.txt:\$NIKTO{plugindir}/../../docs/nikto/CHANGES.txt:' \ - ${WRKSRC}/plugins/nikto_core.plugin - @${RM} ${WRKSRC}/plugins/*.bak + @${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 do-install: ${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto @@ -55,13 +48,9 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/ [ -f ${PREFIX}/etc/nikto.conf ] || \ ${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf - @${MKDIR} ${DATADIR} - @${MKDIR} ${DATADIR}/plugins - @${MKDIR} ${DATADIR}/templates - ${INSTALL_DATA} ${WRKSRC}/plugins/LW2.pm ${DATADIR}/plugins - ${INSTALL_DATA} ${WRKSRC}/plugins/db_* ${DATADIR}/plugins - ${INSTALL_DATA} ${WRKSRC}/plugins/*.plugin ${DATADIR}/plugins - ${INSTALL_DATA} ${WRKSRC}/templates/*.tmpl ${DATADIR}/templates + + ( cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} . ${DATADIR}/plugins ) + ( cd ${WRKSRC}/templates && ${COPYTREE_SHARE} . ${DATADIR}/templates ) .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} . for i in ${PORTDOCS} |