aboutsummaryrefslogtreecommitdiffstats
path: root/security/nikto/Makefile
blob: 2002eea9131ec04b6bd0e88442a1b6c5a17db8c7 (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
# New ports collection makefile for:    nikto
# Date created:             23 September 2002
# Whom:                 pandzilla
#
# $FreeBSD$
#

PORTNAME=   nikto
PORTVERSION=    1.32
PORTREVISION=   1
CATEGORIES= security www

MAINTAINER= ports@FreeBSD.org
COMMENT=    Web and CGI vulnerability scanner with SSL support

MASTER_SITES=   http://www.cirt.net/nikto/ \
        ftp://ftp.bay13.net/pub/wiretapped/vulnerability-assessment/nikto/ \
        http://mirror1.internap.com/pub/localareasecurity/wiretapped/vulnerability-assessment/nikto/ \
        ftp://ftp.localareasecurity.com/pub/wiretapped/vulnerability-assessment/nikto/ \
        http://www.mirrors.wiretapped.net/security/vulnerability-assessment/nikto/

RUN_DEPENDS=    ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
        ${SITE_PERL}/libwhisker/LW.pm:${PORTSDIR}/security/libwhisker

NO_BUILD=   yes
USE_REINPLACE=  yes

PORTDOCS=   nikto_usage.txt nikto_usage.html CHANGES.txt README_plugins.txt

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${PREFIX}/bin/nikto
    @${MKDIR} ${PREFIX}/etc/nikto && ${CHMOD} 755 ${PREFIX}/etc/nikto
    @${REINPLACE_CMD} -e "s|/usr/bin/nmap|${PREFIX}/bin/nmap|g" ${WRKSRC}/config.txt
    @${REINPLACE_CMD} -e "s|/usr/local/nikto|${PREFIX}/share/nikto|g" ${WRKSRC}/config.txt
    @${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto/
    @${MKDIR} ${PREFIX}/share/nikto/ && ${CHMOD} 755 ${PREFIX}/share/nikto/
    @for i in `${LS} ${WRKSRC}/plugins/` ; \
    do \
    ${INSTALL_SCRIPT} ${WRKSRC}/plugins/$$i ${PREFIX}/share/nikto; \
    done
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>