aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/lmon/Makefile
blob: abd9fd6d9c5448cedddc13a3d5fdd886c1e65f9e (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
42
43
44
45
46
47
48
49
50
51
52
# Created by: Anders Nordby <anders@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lmon
PORTVERSION=    1.2
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://www.bsdconsulting.no/tools/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Near-realtime log monitoring tool, sends alerts on hits and misses

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

BROKEN=     unfetchable
DEPRECATED= Unfetchable, unmaintained
EXPIRATION_DATE=    2019-10-16

RUN_DEPENDS=    p5-Config-IniFiles>=0:devel/p5-Config-IniFiles \
        p5-Mail-Sendmail>=0:mail/p5-Mail-Sendmail \
        p5-File-Tail>=0:devel/p5-File-Tail

USES=       perl5 shebangfix tar:tgz
SHEBANG_FILES=  control.pl lmon.pl
NO_BUILD=   yes
NO_ARCH=    yes

PORTDOCS=   README TODO
PORTEXAMPLES=   *

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
    ${INSTALL_SCRIPT} ${WRKSRC}/lmon.pl ${WRKSRC}/control.pl \
        ${STAGEDIR}${PREFIX}/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/examples/control.cfg \
        ${STAGEDIR}${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 \
        ${STAGEDIR}${PREFIX}/etc/rc.d/lmon.sh.sample

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.rules ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>