bfd39978e5
as a package - Bump PORTREVISION Reported by: Forrest Aldrich <forrie@forrie.com> PR: 50915 Submitted by: Sergei Kolobov <sergei@kolobov.com>
58 lines
1.8 KiB
Makefile
58 lines
1.8 KiB
Makefile
# Ports collection makefile for: logcheck
|
|
# Date created: 9 December 1999
|
|
# Whom: Dan Langille <dan@freebsddiary.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= logcheck
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://sensimilia.eu.org/pub/software/sys/ \
|
|
http://www.ukc.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
|
|
http://people.FreeBSD.org/~foxfair/distfiles/
|
|
DISTNAME= logsentry-${PORTVERSION}
|
|
|
|
MAINTAINER= sergei@kolobov.com
|
|
COMMENT= Auditing tool for system logs on Unix boxes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
# Install binaries and config files readable to root only
|
|
BINMODE= 700
|
|
SHAREMODE= 600
|
|
|
|
LOGCHECK_TMP?= /var/run/logcheck
|
|
PLIST_SUB+= LOGCHECK_TMP=${LOGCHECK_TMP}
|
|
|
|
CONFIG_FILES= logcheck.hacking logcheck.ignore \
|
|
logcheck.violations logcheck.violations.ignore
|
|
DOCS= CREDITS INSTALL README README.how.to.interpret README.keywords
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/src && ${CC} ${CFLAGS} -o logtail logtail.c
|
|
${REINPLACE_CMD} -e 's!/usr/local/bin/logtail!${PREFIX}/bin/logtail!' \
|
|
-e 's!/usr/local/etc/tmp!${LOGCHECK_TMP}!' \
|
|
-e 's!/usr/local/etc/logcheck!${PREFIX}/etc/logcheck!' \
|
|
${WRKSRC}/systems/freebsd/logcheck.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for file in ${CONFIG_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${EXAMPLESDIR}
|
|
@${TEST} -f ${PREFIX}/etc/${file} || \
|
|
${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${PREFIX}/etc
|
|
.endfor
|
|
${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP}
|
|
${CHOWN} root:wheel ${LOGCHECK_TMP}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|