Lines 4-46
Link Here
|
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/security/nikto/Makefile,v 1.13 2005/11/15 04:46:36 kris Exp $ |
5 |
# $FreeBSD: ports/security/nikto/Makefile,v 1.13 2005/11/15 04:46:36 kris Exp $ |
6 |
# |
6 |
# |
|
|
7 |
# $Tecnik: ports/security/nikto/Makefile,v 1.7 2005/12/13 16:26:20 itetcu Exp $ |
8 |
# |
7 |
|
9 |
|
8 |
PORTNAME= nikto |
10 |
PORTNAME= nikto |
9 |
PORTVERSION= 1.35 |
11 |
PORTVERSION= 1.35 |
|
|
12 |
PORTREVISON= 1 |
10 |
CATEGORIES= security www |
13 |
CATEGORIES= security www |
11 |
MASTER_SITES= http://www.cirt.net/nikto/ \ |
14 |
MASTER_SITES= http://www.cirt.net/${PORTNAME}/ \ |
12 |
ftp://ftp.bay13.net/pub/wiretapped/vulnerability-assessment/nikto/ \ |
15 |
http://www.mirrors.wiretapped.net/security/vulnerability-assessment/${PORTNAME}/ \ |
13 |
http://mirror1.internap.com/pub/localareasecurity/wiretapped/vulnerability-assessment/nikto/ \ |
16 |
http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/ |
14 |
ftp://ftp.localareasecurity.com/pub/wiretapped/vulnerability-assessment/nikto/ \ |
|
|
15 |
http://www.mirrors.wiretapped.net/security/vulnerability-assessment/nikto/ |
16 |
|
17 |
|
17 |
MAINTAINER= ports@FreeBSD.org |
18 |
MAINTAINER= itetcu@people.tecnik93.com |
18 |
COMMENT= Web and CGI vulnerability scanner with SSL support |
19 |
COMMENT= Web and CGI vulnerability scanner with SSL support |
19 |
|
20 |
|
20 |
BROKEN= Size mismatch |
21 |
USE_BZIP2= yes |
21 |
|
22 |
USE_PERL5_RUN= yes |
22 |
NO_BUILD= yes |
23 |
NO_BUILD= yes |
23 |
USE_REINPLACE= yes |
24 |
USE_REINPLACE= yes |
24 |
|
25 |
|
25 |
PORTDOCS= nikto_usage.txt nikto_usage.html CHANGES.txt README_plugins.txt |
26 |
PORTDOCS= CHANGES.txt README_plugins.txt nikto_usage.html nikto_usage.txt |
|
|
27 |
MAN1= ${PORTNAME}.1 |
28 |
|
29 |
OPTIONS+= SSLEAY "Use NET::SSLeay for ssl scanning" on |
30 |
OPTIONS+= NMAP "Use security/nmap for port scanning" on |
31 |
|
32 |
.include <bsd.port.pre.mk> |
33 |
|
34 |
.ifdef(WITH_SSLEAY) |
35 |
RUN_DEPENEDS+= p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay |
36 |
.endif |
37 |
|
38 |
.ifdef(WITH_NMAP) |
39 |
RUN_DEPENEDS+= nmap:${PORTSDIR}/security/nmap |
40 |
.endif |
26 |
|
41 |
|
27 |
post-patch: |
42 |
post-patch: |
28 |
@${REINPLACE_CMD} -Ee 's,(config.txt),${PREFIX}/etc/nikto/\1,g' ${WRKSRC}/nikto.pl |
43 |
@${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|" ${WRKSRC}/nikto.pl |
|
|
44 |
@${REINPLACE_CMD} -Ee "s,(config.txt),${PREFIX}/etc/nikto.conf," ${WRKSRC}/nikto.pl |
29 |
@${REINPLACE_CMD} -Ee "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" \ |
45 |
@${REINPLACE_CMD} -Ee "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" \ |
30 |
-e "s|# (PLUGINDIR=)/usr/local/nikto/plugins|\1${DATADIR}|g" \ |
46 |
-e "s|# (PLUGINDIR=)/usr/local/nikto/plugins|\1${DATADIR}|g" \ |
31 |
${WRKSRC}/config.txt |
47 |
${WRKSRC}/config.txt |
|
|
48 |
@${REINPLACE_CMD} "s/config.txt/nikto.conf/g" ${WRKSRC}/plugins/* ${WRKSRC}/docs/* |
49 |
@{MV} ${WRKSRC}/docs/nikto-1.34.man ${WRKSRC}/docs/nikto.1 |
32 |
|
50 |
|
33 |
do-install: |
51 |
do-install: |
34 |
${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto |
52 |
${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto |
35 |
@${MKDIR} ${PREFIX}/etc/nikto |
53 |
${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto.conf |
36 |
${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto |
|
|
37 |
@${MKDIR} ${DATADIR} |
54 |
@${MKDIR} ${DATADIR} |
38 |
${INSTALL_SCRIPT} ${WRKSRC}/plugins/* ${DATADIR} |
55 |
${INSTALL_DATA} ${WRKSRC}/plugins/LW.pm ${DATADIR} |
|
|
56 |
${INSTALL_DATA} ${WRKSRC}/plugins/*.db ${DATADIR} |
57 |
${INSTALL_DATA} ${WRKSRC}/plugins/nikto_plugin_order.txt ${DATADIR} |
58 |
${INSTALL_DATA} ${WRKSRC}/plugins/*.plugin ${DATADIR} |
59 |
|
39 |
.if !defined(NOPORTDOCS) |
60 |
.if !defined(NOPORTDOCS) |
40 |
@${MKDIR} ${DOCSDIR} |
61 |
@${MKDIR} ${DOCSDIR} |
41 |
.for i in ${PORTDOCS} |
62 |
. for i in ${PORTDOCS} |
42 |
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR} |
63 |
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR} |
43 |
.endfor |
64 |
. endfor |
44 |
.endif |
65 |
.endif |
|
|
66 |
${INSTALL_MAN} ${WRKSRC}/docs/${MAN1} ${MAN1PREFIX}/man/man1 |
45 |
|
67 |
|
46 |
.include <bsd.port.mk> |
68 |
.include <bsd.port.post.mk> |