Fixup fromcvs/togit conversion
[pkgsrcv2.git] / security / nikto / Makefile
1 # $NetBSD: Makefile,v 1.15 2009/07/17 18:00:23 adrianp Exp $
2
3 DISTNAME=       nikto-1.36
4 CATEGORIES=     security www
5 MASTER_SITES=   http://www.cirt.net/nikto/
6
7 MAINTAINER=     pkgsrc-users@NetBSD.org
8 HOMEPAGE=       http://www.cirt.net/code/nikto.shtml
9 COMMENT=        URL scanner used to search for known vulnerable CGIs on websites
10
11 PKG_DESTDIR_SUPPORT=    user-destdir
12
13 DEPENDS+=       p5-Net-SSLeay>=1.20:../../security/p5-Net-SSLeay
14 DEPENDS+=       nmap>=2.00:../../net/nmap
15
16 USE_TOOLS+=     perl:run
17 REPLACE_PERL=   nikto.pl
18 NO_BUILD=       YES
19
20 # NOTE: this package will not work with pkgviews due to a hardcoded
21 # location for nmap.
22 #
23 SUBST_CLASSES+=         conf
24 SUBST_STAGE.conf=       post-patch
25 SUBST_FILES.conf=       config.txt
26 SUBST_SED.conf=         -e "s|@PREFIX@|${PREFIX}|g"
27 SUBST_MESSAGE.conf=     Fixing PREFIX in files.
28
29 CONF_FILES=     ${PREFIX}/share/examples/nikto/config.txt \
30                          ${PREFIX}/share/nikto/config.txt
31
32 INSTALLATION_DIRS=      bin libdata/nikto/docs libdata/nikto/plugins \
33                         share/doc/nikto share/examples/nikto share/nikto
34
35 do-install:
36         ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${PREFIX}/share/doc/nikto
37         ${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.txt ${DESTDIR}${PREFIX}/libdata/nikto/docs
38         ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DESTDIR}${PREFIX}/share/doc/nikto
39         ${INSTALL_DATA} ${WRKSRC}/config.txt ${DESTDIR}${PREFIX}/share/examples/nikto
40         ${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${DESTDIR}${PREFIX}/bin/nikto
41         ${INSTALL_DATA} ${WRKSRC}/plugins/*.plugin \
42             ${DESTDIR}${PREFIX}/libdata/nikto/plugins
43         ${INSTALL_DATA} ${WRKSRC}/plugins/LW.pm ${DESTDIR}${PREFIX}/libdata/nikto/plugins
44         ${INSTALL_DATA} ${WRKSRC}/plugins/*.db ${DESTDIR}${PREFIX}/libdata/nikto/plugins
45         ${INSTALL_DATA} ${WRKSRC}/plugins/*.txt ${DESTDIR}${PREFIX}/libdata/nikto/plugins
46
47 .include "../../mk/bsd.pkg.mk"