View | Details | Raw Unified | Return to bug 90344
Collapse All | Expand All

(-)Makefile (-17 / +39 lines)
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>
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
MD5 (nikto-1.35.tar.gz) = 908f6b5c670434324633db48bd4537cd
1
MD5 (nikto-1.35.tar.bz2) = 50d9c671a5285365bd93bcea7577950b
2
SIZE (nikto-1.35.tar.gz) = 190033
2
SHA256 (nikto-1.35.tar.bz2) = b73d54e9b364f08b2e92753c7e53549a864f24bee13658efa47d201a298e404d
3
SIZE (nikto-1.35.tar.bz2) = 166897
(-)pkg-plist (-2 / +1 lines)
Lines 1-5 Link Here
1
bin/nikto
1
bin/nikto
2
etc/nikto/config.txt
2
etc/nikto.conf
3
%%DATADIR%%/nikto_mutate.plugin
3
%%DATADIR%%/nikto_mutate.plugin
4
%%DATADIR%%/nikto_outdated.plugin
4
%%DATADIR%%/nikto_outdated.plugin
5
%%DATADIR%%/nikto_apacheusers.plugin
5
%%DATADIR%%/nikto_apacheusers.plugin
Lines 20-23 Link Here
20
%%DATADIR%%/servers.db
20
%%DATADIR%%/servers.db
21
%%DATADIR%%/LW.pm
21
%%DATADIR%%/LW.pm
22
@dirrm %%DATADIR%%
22
@dirrm %%DATADIR%%
23
@dirrm etc/nikto

Return to bug 90344