1 # $NetBSD: Makefile,v 1.15 2009/07/17 18:00:23 adrianp Exp $
4 CATEGORIES= security www
5 MASTER_SITES= http://www.cirt.net/nikto/
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
11 PKG_DESTDIR_SUPPORT= user-destdir
13 DEPENDS+= p5-Net-SSLeay>=1.20:../../security/p5-Net-SSLeay
14 DEPENDS+= nmap>=2.00:../../net/nmap
17 REPLACE_PERL= nikto.pl
20 # NOTE: this package will not work with pkgviews due to a hardcoded
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.
29 CONF_FILES= ${PREFIX}/share/examples/nikto/config.txt \
30 ${PREFIX}/share/nikto/config.txt
32 INSTALLATION_DIRS= bin libdata/nikto/docs libdata/nikto/plugins \
33 share/doc/nikto share/examples/nikto share/nikto
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
47 .include "../../mk/bsd.pkg.mk"