openbsd-ports/sysutils/logtail/Makefile
2012-05-11 03:35:29 +00:00

37 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.3 2012/05/11 03:35:29 william Exp $
COMMENT= mail anomalies in the system logfiles to the administrator
V= 1.3.14
DISTNAME= logcheck_${V}
REVISION= 1
PKGNAME= logtail-${V}
CATEGORIES= sysutils
MAINTAINER= William Yodlowsky <william@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://ftp.de.debian.org/debian/pool/main/l/logcheck/
WRKDIST= ${WRKDIR}/${DISTNAME:S/_/-/}
NO_BUILD= Yes
DTR= 10-savelog 20-logrotate 30-logrotate-dateext
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/logtail ${PREFIX}/bin/logtail
${SUBST_CMD} -c -o root -g wheel ${WRKSRC}/src/logtail2 ${PREFIX}/bin/logtail2
${INSTALL_DATA_DIR} ${PREFIX}/share/logtail/detectrotate
.for i in ${DTR}
${INSTALL_SCRIPT} ${WRKSRC}/src/detectrotate/${i}.dtr \
${PREFIX}/share/logtail/detectrotate
.endfor
${INSTALL_DATA} ${WRKSRC}/docs/logtail.8 ${PREFIX}/man/man8/logtail.8
${INSTALL_DATA} ${WRKSRC}/docs/logtail2.8 ${PREFIX}/man/man8/logtail2.8
.include <bsd.port.mk>