2012-11-13 19:54:15 +01:00
|
|
|
# Created by: pandzilla
|
2003-07-19 04:32:04 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nikto
|
2012-11-13 19:54:15 +01:00
|
|
|
PORTVERSION= 2.1.5
|
2010-01-12 18:54:03 +01:00
|
|
|
PORTEPOCH= 1
|
2004-04-10 19:26:55 +02:00
|
|
|
CATEGORIES= security www
|
2005-12-14 11:06:32 +01:00
|
|
|
MASTER_SITES= http://www.cirt.net/${PORTNAME}/ \
|
2010-07-23 14:55:15 +02:00
|
|
|
http://www.mirrors.wiretapped.net/security/vulnerability-assessment/${PORTNAME}/
|
2003-07-19 04:32:04 +02:00
|
|
|
|
2011-11-17 04:46:22 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-10-12 01:22:20 +02:00
|
|
|
COMMENT= Web and CGI vulnerability scanner with SSL support
|
|
|
|
|
2012-11-13 19:54:15 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= SSLEAY DOCS
|
|
|
|
OPTIONS_DEFAULT=SSLEAY
|
|
|
|
SSLEAY_DESC= Use NET::SSLeay for ssl scanning
|
2010-01-12 18:54:03 +01:00
|
|
|
|
2004-04-10 19:26:55 +02:00
|
|
|
NO_BUILD= yes
|
2003-07-19 04:32:04 +02:00
|
|
|
|
2012-11-13 19:54:15 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5_RUN= yes
|
2005-12-14 11:06:32 +01:00
|
|
|
|
2012-11-13 19:54:15 +01:00
|
|
|
MAN1= nikto.1
|
2005-12-14 11:06:32 +01:00
|
|
|
|
2012-11-13 19:54:15 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-12-14 11:06:32 +01:00
|
|
|
|
2012-11-13 19:54:15 +01:00
|
|
|
.if ${PORT_OPTIONS:MSSLEAY}
|
2010-08-18 23:20:40 +02:00
|
|
|
RUN_DEPENDS+= p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
|
2005-12-14 11:06:32 +01:00
|
|
|
.endif
|
2004-05-22 00:39:50 +02:00
|
|
|
|
2005-02-21 05:34:03 +01:00
|
|
|
post-patch:
|
2012-11-13 19:54:15 +01:00
|
|
|
@${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
|
2005-02-21 05:34:03 +01:00
|
|
|
|
2003-07-19 04:32:04 +02:00
|
|
|
do-install:
|
2007-08-04 13:41:30 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
|
2012-11-13 19:54:15 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/nikto.1
|
2010-01-12 18:54:03 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf.sample
|
2012-11-13 19:54:15 +01:00
|
|
|
.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}
|
2004-05-22 00:39:50 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2012-11-13 19:54:15 +01:00
|
|
|
.for i in CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
2004-05-22 00:39:50 +02:00
|
|
|
.endif
|
2003-07-19 04:32:04 +02:00
|
|
|
|
2012-11-13 19:54:15 +01:00
|
|
|
.include <bsd.port.mk>
|