aboutsummaryrefslogtreecommitdiff
path: root/security/nikto
diff options
context:
space:
mode:
Diffstat (limited to 'security/nikto')
-rw-r--r--security/nikto/Makefile26
-rw-r--r--security/nikto/pkg-plist40
2 files changed, 32 insertions, 34 deletions
diff --git a/security/nikto/Makefile b/security/nikto/Makefile
index e8eca1d23897..523e1b7beeeb 100644
--- a/security/nikto/Makefile
+++ b/security/nikto/Makefile
@@ -17,29 +17,27 @@ MASTER_SITES= http://www.cirt.net/nikto/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Web and CGI vulnerability scanner with SSL support
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
- ${SITE_PERL}/libwhisker/LW.pm:${PORTSDIR}/security/libwhisker
-
NO_BUILD= yes
USE_REINPLACE= yes
PORTDOCS= nikto_usage.txt nikto_usage.html CHANGES.txt README_plugins.txt
+post-patch:
+ @${REINPLACE_CMD} -Ee 's,(config.txt),${PREFIX}/etc/nikto/\1,g' ${WRKSRC}/nikto.pl
+ @${REINPLACE_CMD} -Ee "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" \
+ -e "s|# (PLUGINDIR=)/usr/local/nikto/plugins|\1${DATADIR}|g" \
+ ${WRKSRC}/config.txt
+
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
- @${MKDIR} ${PREFIX}/etc/nikto && ${CHMOD} 755 ${PREFIX}/etc/nikto
- @${REINPLACE_CMD} -e "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" ${WRKSRC}/config.txt
- @${REINPLACE_CMD} -e "s|/usr/local/nikto|${PREFIX}/share/nikto|g" ${WRKSRC}/config.txt
- @${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto/
- @${MKDIR} ${PREFIX}/share/nikto/ && ${CHMOD} 755 ${PREFIX}/share/nikto/
- @for i in `${LS} ${WRKSRC}/plugins/` ; \
- do \
- ${INSTALL_SCRIPT} ${WRKSRC}/plugins/$$i ${PREFIX}/share/nikto; \
- done
+ ${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
+ @${MKDIR} ${PREFIX}/etc/nikto
+ ${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/plugins/* ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
.endfor
.endif
diff --git a/security/nikto/pkg-plist b/security/nikto/pkg-plist
index 93333c1bb41f..f0ef23857ef6 100644
--- a/security/nikto/pkg-plist
+++ b/security/nikto/pkg-plist
@@ -1,23 +1,23 @@
bin/nikto
etc/nikto/config.txt
-share/nikto/nikto_mutate.plugin
-share/nikto/nikto_outdated.plugin
-share/nikto/nikto_apacheusers.plugin
-share/nikto/nikto_passfiles.plugin
-share/nikto/nikto_httpoptions.plugin
-share/nikto/nikto_msgs.plugin
-share/nikto/server_msgs.db
-share/nikto/outdated.db
-share/nikto/scan_database.db
-share/nikto/nikto_core.plugin
-share/nikto/nikto_headers.plugin
-share/nikto/nikto_plugin_order.txt
-share/nikto/nikto_realms.plugin
-share/nikto/nikto_robots.plugin
-share/nikto/nikto_user_enum_apache.plugin
-share/nikto/nikto_user_enum_cgiwrap.plugin
-share/nikto/realms.db
-share/nikto/servers.db
-share/nikto/LW.pm
-@dirrm share/nikto
+%%DATADIR%%/nikto_mutate.plugin
+%%DATADIR%%/nikto_outdated.plugin
+%%DATADIR%%/nikto_apacheusers.plugin
+%%DATADIR%%/nikto_passfiles.plugin
+%%DATADIR%%/nikto_httpoptions.plugin
+%%DATADIR%%/nikto_msgs.plugin
+%%DATADIR%%/server_msgs.db
+%%DATADIR%%/outdated.db
+%%DATADIR%%/scan_database.db
+%%DATADIR%%/nikto_core.plugin
+%%DATADIR%%/nikto_headers.plugin
+%%DATADIR%%/nikto_plugin_order.txt
+%%DATADIR%%/nikto_realms.plugin
+%%DATADIR%%/nikto_robots.plugin
+%%DATADIR%%/nikto_user_enum_apache.plugin
+%%DATADIR%%/nikto_user_enum_cgiwrap.plugin
+%%DATADIR%%/realms.db
+%%DATADIR%%/servers.db
+%%DATADIR%%/LW.pm
+@dirrm %%DATADIR%%
@dirrm etc/nikto