1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/security/lynis/Makefile
2014-11-14 17:51:22 +00:00

39 lines
1.2 KiB
Makefile

# Created by: Cory McIntire (loon@noncensored.com)
# $FreeBSD$
PORTNAME= lynis
PORTVERSION= 1.6.4
CATEGORIES= security
MASTER_SITES= http://cisofy.com/files/
MAINTAINER= lme@FreeBSD.org
COMMENT= Security and system auditing tool
LICENSE= GPLv3
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
PORTDOCS= 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/${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}${EXAMPLESDIR}/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/extras/bash_completion.d/${PORTNAME} \
${STAGEDIR}${EXAMPLESDIR}/bash_completion.d/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>