2013-09-20 23:05:58 +00:00
|
|
|
# Created by: Anders Nordby <anders@FreeBSD.org>
|
2005-03-15 22:29:43 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lmon
|
2005-05-19 19:34:31 +00:00
|
|
|
PORTVERSION= 1.2
|
2005-03-15 22:29:43 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.bsdconsulting.no/tools/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= anders@FreeBSD.org
|
|
|
|
COMMENT= Near-realtime log monitoring tool, sends alerts on hits and misses
|
|
|
|
|
2012-06-29 10:05:08 +00:00
|
|
|
RUN_DEPENDS= p5-Config-IniFiles>=0:${PORTSDIR}/devel/p5-Config-IniFiles \
|
|
|
|
p5-Mail-Sendmail>=0:${PORTSDIR}/mail/p5-Mail-Sendmail \
|
|
|
|
p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail
|
2005-03-15 22:29:43 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2013-09-07 06:47:20 +00:00
|
|
|
USES= perl5
|
2005-03-15 22:29:43 +00:00
|
|
|
|
2013-09-20 23:05:58 +00:00
|
|
|
NO_STAGE= yes
|
2005-03-15 22:29:43 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL} -d -m 0755 ${PREFIX}/${PORTNAME}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lmon.pl ${PREFIX}/${PORTNAME}/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/control.pl ${PREFIX}/${PORTNAME}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/control.cfg ${PREFIX}/${PORTNAME}/control.cfg.sample
|
2005-05-23 07:22:57 +00:00
|
|
|
@${REINPLACE_CMD} -E -e "s@^(user=).*@\1\"root\"@;s@^(lmonhome=).*@\1\"${PREFIX}/${PORTNAME}\"@" ${WRKSRC}/examples/lmon.init
|
2005-03-15 22:29:43 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/lmon.init ${PREFIX}/etc/rc.d/lmon.sh.sample
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL} -d -m 0755 ${DOCSDIR}
|
|
|
|
.for f in LICENSE README TODO
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
${INSTALL} -d -m 0755 ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.rules ${EXAMPLESDIR}/
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|