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

(-)security/nikto/Makefile (-32 / +35 lines)
Lines 1-14 Link Here
1
# New ports collection makefile for: 	nikto
1
# Created by: pandzilla
2
# Date created: 			23 September 2002
3
# Whom: 				pandzilla
4
#
5
# $FreeBSD: ports/security/nikto/Makefile,v 1.30 2011/11/21 05:14:34 cs Exp $
2
# $FreeBSD: ports/security/nikto/Makefile,v 1.30 2011/11/21 05:14:34 cs Exp $
6
#
7
# $Tecnik: ports/security/nikto/Makefile,v 1.7 2005/12/13 16:26:20 itetcu Exp $
8
#
9
3
10
PORTNAME=	nikto
4
PORTNAME=	nikto
11
PORTVERSION=	2.1.4
5
PORTVERSION=	2.1.5
12
PORTEPOCH=	1
6
PORTEPOCH=	1
13
CATEGORIES=	security www
7
CATEGORIES=	security www
14
MASTER_SITES=	http://www.cirt.net/${PORTNAME}/ \
8
MASTER_SITES=	http://www.cirt.net/${PORTNAME}/ \
Lines 17-60 Link Here
17
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	Web and CGI vulnerability scanner with SSL support
12
COMMENT=	Web and CGI vulnerability scanner with SSL support
19
13
20
MAN1=		nikto.1
14
LICENSE=	GPLv2
15
16
OPTIONS_DEFINE=	SSLEAY DOCS
17
OPTIONS_DEFAULT=SSLEAY
18
SSLEAY_DESC=	Use NET::SSLeay for ssl scanning
21
19
22
USE_BZIP2=	yes
23
USE_PERL5_RUN=	yes
24
NO_BUILD=	yes
20
NO_BUILD=	yes
25
21
26
PORTDOCS=	CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html
22
USE_BZIP2=	yes
23
USE_PERL5_RUN=	yes
27
24
28
OPTIONS+=	SSLEAY "Use NET::SSLeay for ssl scanning" on
25
MAN1=		nikto.1
29
26
30
.include <bsd.port.pre.mk>
27
.include <bsd.port.options.mk>
31
28
32
.ifdef(WITH_SSLEAY)
29
.if ${PORT_OPTIONS:MSSLEAY}
33
RUN_DEPENDS+=	p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
30
RUN_DEPENDS+=	p5-Net-SSLeay>0:${PORTSDIR}/security/p5-Net-SSLeay
34
.endif
31
.endif
35
32
36
post-patch:
33
post-patch:
37
	@${REINPLACE_CMD} -e "s|/usr/local/bin/perl|${PERL}|" \
34
	@${REINPLACE_CMD} -e \
38
		-e "s|/etc/nikto.conf|${PREFIX}/etc/nikto.conf|" ${WRKSRC}/nikto.pl
35
		's|/usr/local/bin/perl|${PERL}| ; \
39
	@${REINPLACE_CMD} -Ee "s|# (EXECDIR=)/usr/local/nikto|\1${DATADIR}|g" \
36
		 s|/etc/nikto.conf|${PREFIX}/etc/nikto.conf|' ${WRKSRC}/nikto.pl
40
		-e "s|# (PLUGINDIR=)/opt/nikto/plugins|\1${DATADIR}/plugins|g" \
37
	@${REINPLACE_CMD} -Ee \
41
		-e "s|# (TEMPLATEDIR=)/opt/nikto/templates|\1${DATADIR}/templates|g" \
38
		's|# (EXECDIR=).*/nikto|\1${DATADIR}| ; \
42
		-e "s|# (DOCDIR=)/opt/nikto/docs|\1${DOCSDIR}|g" ${WRKSRC}/nikto.conf
39
		 s|# (DBDIR=).*/databases|\1${DATADIR}/databases| ; \
40
		 s|# (PLUGINDIR=).*/plugins|\1${DATADIR}/plugins| ; \
41
		 s|# (TEMPLATEDIR=).*/templates|\1${DATADIR}/templates| ; \
42
		 s|# (DOCDIR=).*/docs|\1${DOCSDIR}|' ${WRKSRC}/nikto.conf
43
43
44
do-install:
44
do-install:
45
	${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
45
	${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
46
	${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/nikto.1
46
	${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf.sample
47
	${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf.sample
47
	${INSTALL_MAN} ${WRKSRC}/docs/nikto.1 ${PREFIX}/man/man1/
48
.if !exists(${PREFIX}/etc/nikto.conf)
48
	[ -f ${PREFIX}/etc/nikto.conf ] || \
49
	(cd ${PREFIX}/etc && ${CP} -p nikto.conf.sample nikto.conf)
49
		${INSTALL_DATA} ${WRKSRC}/nikto.conf ${PREFIX}/etc/nikto.conf
50
.endif
50
51
	@${MKDIR} ${DATADIR}
51
	( cd ${WRKSRC}/plugins && ${COPYTREE_SHARE} .  ${DATADIR}/plugins )
52
	${INSTALL_DATA} ${WRKSRC}/replay.pl ${DATADIR}
52
	( cd ${WRKSRC}/templates && ${COPYTREE_SHARE} .  ${DATADIR}/templates )
53
.for i in databases plugins templates
53
.if !defined(NOPORTDOCS)
54
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${DATADIR})
55
.endfor
56
.if ${PORT_OPTIONS:MDOCS}
54
	@${MKDIR} ${DOCSDIR}
57
	@${MKDIR} ${DOCSDIR}
55
.	for i in ${PORTDOCS}
58
.for i in CHANGES.txt LICENSE.txt nikto.dtd nikto_manual.html
56
		${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
59
	${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
57
.	endfor
60
.endfor
58
.endif
61
.endif
59
62
60
.include <bsd.port.post.mk>
63
.include <bsd.port.mk>
(-)security/nikto/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (nikto-2.1.4.tar.bz2) = 9af930fea3f124e262d0e63977244b6bd19e22749f4defa818bb4d9b107ad603
1
SHA256 (nikto-2.1.5.tar.bz2) = 65b99c1fdec14d1d5e7cbc964f70fce162cbec50aee878e1500e2d22df079b34
2
SIZE (nikto-2.1.4.tar.bz2) = 288160
2
SIZE (nikto-2.1.5.tar.bz2) = 311580
(-)security/nikto/pkg-plist (-16 / +29 lines)
Lines 1-36 Link Here
1
bin/nikto
1
bin/nikto
2
etc/nikto.conf
2
@unexec if cmp -s %D/etc/nikto.conf %D/etc/nikto.conf.sample; then rm -f %D/etc/nikto.conf; fi
3
etc/nikto.conf.sample
3
etc/nikto.conf.sample
4
@exec if [ ! -f %D/etc/nikto.conf ] ; then cp -p %D/%F %B/nikto.conf; fi
5
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
6
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
7
%%PORTDOCS%%%%DOCSDIR%%/nikto.dtd
8
%%PORTDOCS%%%%DOCSDIR%%/nikto_manual.html
9
%%DATADIR%%/databases/db_404_strings
10
%%DATADIR%%/databases/db_content_search
11
%%DATADIR%%/databases/db_dictionary
12
%%DATADIR%%/databases/db_embedded
13
%%DATADIR%%/databases/db_favicon
14
%%DATADIR%%/databases/db_headers
15
%%DATADIR%%/databases/db_httpoptions
16
%%DATADIR%%/databases/db_multiple_index
17
%%DATADIR%%/databases/db_outdated
18
%%DATADIR%%/databases/db_parked_strings
19
%%DATADIR%%/databases/db_realms
20
%%DATADIR%%/databases/db_server_msgs
21
%%DATADIR%%/databases/db_subdomains
22
%%DATADIR%%/databases/db_tests
23
%%DATADIR%%/databases/db_variables
24
%%DATADIR%%/plugins/JSON-PP.pm
4
%%DATADIR%%/plugins/LW2.pm
25
%%DATADIR%%/plugins/LW2.pm
5
%%DATADIR%%/plugins/db_404_strings
6
%%DATADIR%%/plugins/db_content_search
7
%%DATADIR%%/plugins/db_embedded
8
%%DATADIR%%/plugins/db_favicon
9
%%DATADIR%%/plugins/db_headers
10
%%DATADIR%%/plugins/db_httpoptions
11
%%DATADIR%%/plugins/db_multiple_index
12
%%DATADIR%%/plugins/db_outdated
13
%%DATADIR%%/plugins/db_realms
14
%%DATADIR%%/plugins/db_server_msgs
15
%%DATADIR%%/plugins/db_subdomains
16
%%DATADIR%%/plugins/db_tests
17
%%DATADIR%%/plugins/db_variables
18
%%DATADIR%%/plugins/nikto_apache_expect_xss.plugin
26
%%DATADIR%%/plugins/nikto_apache_expect_xss.plugin
19
%%DATADIR%%/plugins/nikto_apacheusers.plugin
27
%%DATADIR%%/plugins/nikto_apacheusers.plugin
20
%%DATADIR%%/plugins/nikto_auth.plugin
28
%%DATADIR%%/plugins/nikto_auth.plugin
21
%%DATADIR%%/plugins/nikto_cgi.plugin
29
%%DATADIR%%/plugins/nikto_cgi.plugin
30
%%DATADIR%%/plugins/nikto_clientaccesspolicy.plugin
22
%%DATADIR%%/plugins/nikto_content_search.plugin
31
%%DATADIR%%/plugins/nikto_content_search.plugin
23
%%DATADIR%%/plugins/nikto_cookies.plugin
32
%%DATADIR%%/plugins/nikto_cookies.plugin
24
%%DATADIR%%/plugins/nikto_core.plugin
33
%%DATADIR%%/plugins/nikto_core.plugin
25
%%DATADIR%%/plugins/nikto_core.plugin.debug
26
%%DATADIR%%/plugins/nikto_dictionary_attack.plugin
34
%%DATADIR%%/plugins/nikto_dictionary_attack.plugin
27
%%DATADIR%%/plugins/nikto_embedded.plugin
35
%%DATADIR%%/plugins/nikto_embedded.plugin
28
%%DATADIR%%/plugins/nikto_favicon.plugin
36
%%DATADIR%%/plugins/nikto_favicon.plugin
37
%%DATADIR%%/plugins/nikto_fileops.plugin
29
%%DATADIR%%/plugins/nikto_headers.plugin
38
%%DATADIR%%/plugins/nikto_headers.plugin
30
%%DATADIR%%/plugins/nikto_httpoptions.plugin
39
%%DATADIR%%/plugins/nikto_httpoptions.plugin
31
%%DATADIR%%/plugins/nikto_msgs.plugin
40
%%DATADIR%%/plugins/nikto_msgs.plugin
32
%%DATADIR%%/plugins/nikto_multiple_index.plugin
41
%%DATADIR%%/plugins/nikto_multiple_index.plugin
33
%%DATADIR%%/plugins/nikto_outdated.plugin
42
%%DATADIR%%/plugins/nikto_outdated.plugin
43
%%DATADIR%%/plugins/nikto_parked.plugin
44
%%DATADIR%%/plugins/nikto_paths.plugin
34
%%DATADIR%%/plugins/nikto_put_del_test.plugin
45
%%DATADIR%%/plugins/nikto_put_del_test.plugin
35
%%DATADIR%%/plugins/nikto_report_csv.plugin
46
%%DATADIR%%/plugins/nikto_report_csv.plugin
36
%%DATADIR%%/plugins/nikto_report_html.plugin
47
%%DATADIR%%/plugins/nikto_report_html.plugin
Lines 39-48 Link Here
39
%%DATADIR%%/plugins/nikto_report_text.plugin
50
%%DATADIR%%/plugins/nikto_report_text.plugin
40
%%DATADIR%%/plugins/nikto_report_xml.plugin
51
%%DATADIR%%/plugins/nikto_report_xml.plugin
41
%%DATADIR%%/plugins/nikto_robots.plugin
52
%%DATADIR%%/plugins/nikto_robots.plugin
42
%%DATADIR%%/plugins/nikto_single.plugin
53
%%DATADIR%%/plugins/nikto_siebel.plugin
43
%%DATADIR%%/plugins/nikto_ssl.plugin
54
%%DATADIR%%/plugins/nikto_ssl.plugin
44
%%DATADIR%%/plugins/nikto_subdomain.plugin
55
%%DATADIR%%/plugins/nikto_subdomain.plugin
45
%%DATADIR%%/plugins/nikto_tests.plugin
56
%%DATADIR%%/plugins/nikto_tests.plugin
57
%%DATADIR%%/replay.pl
46
%%DATADIR%%/templates/htm_close.tmpl
58
%%DATADIR%%/templates/htm_close.tmpl
47
%%DATADIR%%/templates/htm_end.tmpl
59
%%DATADIR%%/templates/htm_end.tmpl
48
%%DATADIR%%/templates/htm_host_head.tmpl
60
%%DATADIR%%/templates/htm_host_head.tmpl
Lines 60-63 Link Here
60
%%DATADIR%%/templates/xml_summary.tmpl
72
%%DATADIR%%/templates/xml_summary.tmpl
61
@dirrm %%DATADIR%%/templates
73
@dirrm %%DATADIR%%/templates
62
@dirrm %%DATADIR%%/plugins
74
@dirrm %%DATADIR%%/plugins
75
@dirrm %%DATADIR%%/databases
63
@dirrm %%DATADIR%%
76
@dirrm %%DATADIR%%

Return to bug 172058