1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/security/lynis/Makefile
Lars Engels ab5fe5b5c7 security/lynis: Update to 3.0.0
This is a major release but also fixes two security problems.

MFH:		2020Q2
Security:	CVE-2019-13033 CVE-2020-13882
2020-06-18 14:31:43 +00:00

47 lines
1.4 KiB
Makefile

# Created by: Cory McIntire (loon@noncensored.com)
# $FreeBSD$
PORTNAME= lynis
PORTVERSION= 3.0.0
CATEGORIES= security
MASTER_SITES= https://cisofy.com/files/
MAINTAINER= lme@FreeBSD.org
COMMENT= Security and system auditing tool
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= lsof:sysutils/lsof
USES= cpe
CPE_VENDOR= cisofy
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= FAQ README *.md
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/tINCLUDE_TARGETS/ s|".*"|"${DATADIR}/include"|; \
/tPLUGIN_TARGETS/ s|".*"|"${DATADIR}/plugins"|; \
/tDB_TARGETS=/ s|\(tDB_TARGETS\)=".*"|\1="${DATADIR}/db"|' ${WRKSRC}/${PORTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/default.prf \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}/default.prf.sample
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "include db plugins" ${STAGEDIR}${DATADIR}/
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/extras/bash_completion.d/${PORTNAME} \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>