aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fetchlog/Makefile
blob: 7d162795671d5a4e5789fdd95472855396cfa2c2 (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
# Created by: Alexander Haderer <alexander.haderer@loescap.de>
# $FreeBSD$

PORTNAME=   fetchlog
PORTVERSION=    1.4
CATEGORIES= sysutils
MASTER_SITES=   SF

MAINTAINER= alexander.haderer@loescap.de
COMMENT=    Fetch and convert new messages of a logfile

PORTDOCS=   CHANGES README README.Nagios README.SNMP
PORTEXAMPLES=   fetchlog.cfg fetchlog_service.cfg notify.cfg.example

PLIST_FILES=    bin/fetchlog man/man1/fetchlog.1.gz

OPTIONS_DEFINE= DOCS EXAMPLES

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/fetchlog ${STAGEDIR}${PREFIX}/bin
    cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 \
        ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} \
        ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>