aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nrpe/Makefile
blob: b17384d56891d84f1cda259d53c1489a38af6d55 (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:    nrpe
# Date created:             1 Aug 2002
# Whom:                 Paul Dlug<paul@nerdlabs.com>
#
# $FreeBSD$
#

PORTNAME=   nrpe
PORTVERSION=    1.9
PORTREVISION=   2
CATEGORIES= net-mgmt
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nagios

MAINTAINER= paul@nerdlabs.com
COMMENT=    Nagios Remote Plugin Executor

RUN_DEPENDS=    ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins

GNU_CONFIGURE=  yes
USE_PERL5=  yes
USE_REINPLACE=  yes
USE_RC_SUBR=    yes
SUB_FILES=  nrpe.sh pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message

CONFIGURE_ARGS= \
        --libexecdir=${PREFIX}/libexec/nagios --sysconfdir=${PREFIX}/etc \
        --sbindir=${PREFIX}/sbin --bindir=${PREFIX}/sbin

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe
    ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe \
        ${PREFIX}/libexec/nagios/check_nrpe
    ${INSTALL_DATA} ${WRKSRC}/nrpe.cfg ${PREFIX}/etc/nrpe.cfg-sample
    ${INSTALL_SCRIPT} ${WRKDIR}/nrpe.sh ${PREFIX}/etc/rc.d

post-install:
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>