1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/security/lynis/Makefile
Antoine Brodin 201e666057 Set proper permissions on tests, or lynis will skip them
PR:		ports/184143
Submitted by:	Kozlov Sergey
Approved by:	maintainer timeout (3 weeks)
2013-12-14 20:10:52 +00:00

35 lines
1.0 KiB
Makefile

# Created by: Cory McIntire (loon@noncensored.com)
# $FreeBSD$
PORTNAME= lynis
PORTVERSION= 1.3.5
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://cisofy.com/files/
MAINTAINER= loon@noncensored.com
COMMENT= Security and system auditing tool
LICENSE= GPLv3
NO_BUILD= yes
PORTDOCS= INSTALL FAQ LICENSE README
post-patch:
@${REINPLACE_CMD} -e '/tINCLUDE_TARGETS/ s|".*"|"${DATADIR}/include"|; \
/tPLUGIN_TARGETS/ s|".*"|"${DATADIR}/plugins"|; \
/tDB_TARGETS/ s|".*"|"${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/lynis
${INSTALL_DATA} ${WRKSRC}/default.prf ${STAGEDIR}${PREFIX}/etc/lynis
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "include db dev plugins" ${STAGEDIR}${DATADIR}/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>