2019-08-11 15:17:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.30 2019/08/11 13:22:48 wiz Exp $
|
2003-12-05 18:45:23 +01:00
|
|
|
|
2016-11-18 17:40:19 +01:00
|
|
|
DISTNAME= nikto-2.1.5
|
2019-08-11 15:17:48 +02:00
|
|
|
PKGREVISION= 4
|
2003-12-05 18:45:23 +01:00
|
|
|
CATEGORIES= security www
|
|
|
|
MASTER_SITES= http://www.cirt.net/nikto/
|
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-03 10:36:49 +02:00
|
|
|
#HOMEPAGE= http://www.cirt.net/code/nikto.shtml
|
2003-12-05 18:45:23 +01:00
|
|
|
COMMENT= URL scanner used to search for known vulnerable CGIs on websites
|
|
|
|
|
|
|
|
DEPENDS+= p5-Net-SSLeay>=1.20:../../security/p5-Net-SSLeay
|
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2003-12-05 18:45:23 +01:00
|
|
|
REPLACE_PERL= nikto.pl
|
2016-11-18 17:40:19 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
AUTO_MKDIRS= yes
|
2003-12-05 18:45:23 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= conf
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.conf= pre-configure
|
2016-11-18 17:51:03 +01:00
|
|
|
SUBST_FILES.conf= nikto.pl docs/nikto.1
|
2016-11-18 17:40:19 +01:00
|
|
|
SUBST_SED.conf= -e "s|/etc/nikto\.conf|${PKG_SYSCONFDIR}/nikto.conf|g"
|
2016-11-18 17:51:03 +01:00
|
|
|
SUBST_SED.conf+= -e "s|/etc/nikto\\\&\.conf|${PKG_SYSCONFDIR}/nikto\\\\\\&.conf|g"
|
2016-11-18 17:40:19 +01:00
|
|
|
SUBST_MESSAGE.conf= Fixing path to nikto.conf
|
2004-10-16 13:55:27 +02:00
|
|
|
|
2016-11-18 17:40:19 +01:00
|
|
|
SUBST_CLASSES+= execdir
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.execdir= pre-configure
|
2016-11-18 17:40:19 +01:00
|
|
|
SUBST_FILES.execdir= nikto.conf
|
|
|
|
SUBST_SED.execdir= -e "s|^\# EXECDIR=/opt/nikto|EXECDIR=${PREFIX}/libdata/nikto|g"
|
|
|
|
SUBST_MESSAGE.execdir= Fixing path to EXECDIR
|
2003-12-05 18:45:23 +01:00
|
|
|
|
2016-11-18 17:40:19 +01:00
|
|
|
SUBST_CLASSES+= manual
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.manual= pre-configure
|
2016-11-18 17:40:19 +01:00
|
|
|
SUBST_FILES.manual= docs/nikto.1
|
|
|
|
SUBST_SED.manual= -e "s|/usr/local/bin/nikto|nikto|g"
|
|
|
|
SUBST_MESSAGE.manual= Fixing path to nikto
|
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/nikto/nikto.conf \
|
|
|
|
${PREFIX}/${PKG_SYSCONFDIR}/nikto.conf
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2003-12-05 18:45:23 +01:00
|
|
|
do-install:
|
2010-01-27 17:52:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${PREFIX}/share/doc/nikto
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.txt ${DESTDIR}${PREFIX}/libdata/nikto/docs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DESTDIR}${PREFIX}/share/doc/nikto
|
2016-11-18 17:40:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/nikto.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/nikto.conf ${DESTDIR}${PREFIX}/share/examples/nikto
|
2010-01-27 17:52:13 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nikto.pl ${DESTDIR}${PREFIX}/bin/nikto
|
2016-11-18 17:40:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/databases/db_* \
|
|
|
|
${DESTDIR}${PREFIX}/libdata/nikto/databases
|
2005-09-06 23:11:57 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/*.plugin \
|
2010-01-27 17:52:13 +01:00
|
|
|
${DESTDIR}${PREFIX}/libdata/nikto/plugins
|
2016-11-18 17:40:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/templates/*.tmpl \
|
|
|
|
${DESTDIR}${PREFIX}/libdata/nikto/templates
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/JSON-PP.pm ${DESTDIR}${PREFIX}/libdata/nikto/plugins
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/LW2.pm ${DESTDIR}${PREFIX}/libdata/nikto/plugins
|
2003-12-05 18:45:23 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|