2003-07-19 02:32:04 +00:00
|
|
|
# New ports collection makefile for: nikto
|
|
|
|
# Date created: 23 September 2002
|
|
|
|
# Whom: pandzilla
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2005-12-14 10:06:32 +00:00
|
|
|
# $Tecnik: ports/security/nikto/Makefile,v 1.7 2005/12/13 16:26:20 itetcu Exp $
|
|
|
|
#
|
2003-07-19 02:32:04 +00:00
|
|
|
|
|
|
|
PORTNAME= nikto
|
2005-07-10 17:54:53 +00:00
|
|
|
PORTVERSION= 1.35
|
2005-12-14 10:06:32 +00:00
|
|
|
PORTREVISION= 1
|
2004-04-10 17:26:55 +00:00
|
|
|
CATEGORIES= security www
|
2005-12-14 10:06:32 +00:00
|
|
|
MASTER_SITES= http://www.cirt.net/${PORTNAME}/ \
|
|
|
|
http://www.mirrors.wiretapped.net/security/vulnerability-assessment/${PORTNAME}/ \
|
|
|
|
http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
|
2003-07-19 02:32:04 +00:00
|
|
|
|
2005-12-14 10:06:32 +00:00
|
|
|
MAINTAINER= itetcu@people.tecnik93.com
|
2004-10-11 23:22:20 +00:00
|
|
|
COMMENT= Web and CGI vulnerability scanner with SSL support
|
|
|
|
|
2005-12-14 10:06:32 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5_RUN= yes
|
2004-04-10 17:26:55 +00:00
|
|
|
NO_BUILD= yes
|
2003-07-19 02:32:04 +00:00
|
|
|
|
2005-12-14 10:06:32 +00:00
|
|
|
PORTDOCS= CHANGES.txt README_plugins.txt nikto_usage.html nikto_usage.txt
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
|
|
|
|
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
|
|
|
|
.endif
|
2004-05-21 22:39:50 +00:00
|
|
|
|
2005-02-21 04:34:03 +00:00
|
|
|
post-patch:
|
2005-12-14 10:06:32 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|" ${WRKSRC}/nikto.pl
|
|
|
|
@${REINPLACE_CMD} -Ee "s,(config.txt),${PREFIX}/etc/nikto.conf," ${WRKSRC}/nikto.pl
|
2005-02-21 04:34:03 +00:00
|
|
|
@${REINPLACE_CMD} -Ee "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" \
|
|
|
|
-e "s|# (PLUGINDIR=)/usr/local/nikto/plugins|\1${DATADIR}|g" \
|
|
|
|
${WRKSRC}/config.txt
|
2005-12-14 10:06:32 +00:00
|
|
|
@${REINPLACE_CMD} "s/config.txt/nikto.conf/g" ${WRKSRC}/plugins/* ${WRKSRC}/docs/*
|
|
|
|
@${MV} ${WRKSRC}/docs/nikto-1.34.man ${WRKSRC}/docs/nikto.1
|
2005-02-21 04:34:03 +00:00
|
|
|
|
2003-07-19 02:32:04 +00:00
|
|
|
do-install:
|
2005-02-21 04:34:03 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
|
2005-12-14 10:06:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto.conf.sample
|
|
|
|
[ -f ${PREFIX}/etc/nikto.conf ] || \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto.conf
|
2005-02-21 04:34:03 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2005-12-14 10:06:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/LW.pm ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/*.db ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/nikto_plugin_order.txt ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/*.plugin ${DATADIR}
|
|
|
|
|
2004-05-21 22:39:50 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-12-14 10:06:32 +00:00
|
|
|
. for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
|
|
|
|
. endfor
|
2004-05-21 22:39:50 +00:00
|
|
|
.endif
|
2005-12-14 10:06:32 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MAN1PREFIX}/man/man1
|
2003-07-19 02:32:04 +00:00
|
|
|
|
2005-12-14 10:06:32 +00:00
|
|
|
.include <bsd.port.post.mk>
|