blob: faf14796177d8afb079a56a2343321dd3eeb085b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Created by: pandzilla
# $FreeBSD$
PORTNAME= nikto
PORTVERSION= 2.1.5
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security www
MASTER_SITES= http://www.cirt.net/${PORTNAME}/ \
http://www.mirrors.wiretapped.net/security/vulnerability-assessment/${PORTNAME}/
MAINTAINER= johans@FreeBSD.org
COMMENT= Web and CGI vulnerability scanner with SSL support
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 shebangfix
USE_PERL5= run
SHEBANG_FILES= nikto.pl
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 \
'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: .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} ${STAGEDIR}${DATADIR}
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs; ${INSTALL_DATA} CHANGES.txt LICENSE.txt nikto.dtd \
nikto_manual.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|