aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/lmon/Makefile
blob: 2e16f290da3e8c4fdba3d9b52e4b5e042bb06e77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    lmon
# Date created:             15 Mar 2005
# Whom:                 Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   lmon
PORTVERSION=    1.2
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

RUN_DEPENDS=    ${SITE_PERL}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles \
        ${SITE_PERL}/Mail/Sendmail.pm:${PORTSDIR}/mail/p5-Mail-Sendmail \
        ${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail

NO_BUILD=   yes
USE_PERL5=  yes

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
    @${REINPLACE_CMD} -E -e "s@^(user=).*@\1\"root\"@;s@^(lmonhome=).*@\1\"${PREFIX}/${PORTNAME}\"@" ${WRKSRC}/examples/lmon.init
    ${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>