openbsd-ports/security/nikto/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

60 lines
1.7 KiB
Makefile

COMMENT = web and CGI vulnerability scanner with SSL support
GH_ACCOUNT = sullo
GH_PROJECT = nikto
GH_TAGNAME = 2.1.6
REVISION = 2
EPOCH = 0
CATEGORIES = security www
HOMEPAGE = https://www.cirt.net/nikto2
MAINTAINER = Nigel Taylor <nigel@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
RUN_DEPENDS = security/p5-Net-SSLeay
NO_BUILD = Yes
NO_TEST = Yes
PKG_ARCH = *
pre-configure:
sed -i 's%# EXECDIR=.*%EXECDIR=${PREFIX}/share/nikto%; \
s%# DOCDIR=.*%DOCDIR=${PREFIX}/share/doc/nikto%; \
s%# DBDIR=.*%DBDIR=/var/db/nikto/databases%; \
s%NIKTODTD=.*%NIKTODTD=${PREFIX}/share/doc/nikto/nikto.dtd%' \
${WRKSRC}/program/nikto.conf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/nikto/databases
${INSTALL_DATA_DIR} ${PREFIX}/share/nikto/plugins
${INSTALL_DATA_DIR} ${PREFIX}/share/nikto/templates
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nikto
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nikto
${INSTALL_SCRIPT} ${WRKSRC}/program/nikto.pl ${PREFIX}/bin/nikto
${INSTALL_SCRIPT} ${WRKSRC}/program/replay.pl ${PREFIX}/bin/replay
${INSTALL_DATA} ${WRKSRC}/program/nikto.conf \
${PREFIX}/share/examples/nikto/nikto.conf
${INSTALL_DATA} ${WRKSRC}/program/databases/!(*.orig) \
${PREFIX}/share/nikto/databases
${INSTALL_DATA} ${WRKSRC}/program/plugins/!(*.orig) \
${PREFIX}/share/nikto/plugins
${INSTALL_DATA} ${WRKSRC}/program/templates/!(*.orig) \
${PREFIX}/share/nikto/templates
${INSTALL_DATA} ${WRKSRC}/program/docs/nikto_manual.html \
${PREFIX}/share/doc/nikto
${INSTALL_DATA} ${WRKSRC}/program/docs/CHANGES.txt \
${PREFIX}/share/doc/nikto
${INSTALL_DATA} ${WRKSRC}/program/docs/nikto.dtd \
${PREFIX}/share/doc/nikto
${INSTALL_MAN} ${WRKSRC}/program/docs/nikto.1 \
${PREFIX}/man/man1/nikto.1
.include <bsd.port.mk>