aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nrpe2/Makefile
blob: 00fff0c682f607dbe83df3ead756a0719fe8f0a1 (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
# New ports collection makefile for:    nrpe
# Date created:             1 Aug 2002
# Whom:                 Paul Dlug<paul@nerdlabs.com>
#
# $FreeBSD$
#

PORTNAME=       nrpe2
PORTVERSION=        2.0
PORTREVISION=       0
CATEGORIES=     net-mgmt
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= nagios
DISTNAME=       nrpe-${PORTVERSION}

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_BUILD=    yes

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

OPTIONS=        SSL "SSL support" off \
            ARGS "Enable command arguments *POTENTIAL SECURITY RISK*" off

.include <bsd.port.pre.mk>

.if defined(WITH_SSL)
USE_OPENSSL=    yes
CONFIGURE_ARGS+=    --enable-ssl
.else
CONFIGURE_ARGS+=    --disable-ssl
.endif

.if defined(WITH_ARGS)
CONFIGURE_ARGS+=    --enable-command-args
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe2
    ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios/check_nrpe2
    ${INSTALL_DATA} ${WRKSRC}/nrpe.cfg ${PREFIX}/etc/nrpe.cfg-sample
    ${INSTALL_SCRIPT} ${WRKSRC}/init-script.freebsd ${PREFIX}/etc/rc.d/nrpe.sh

.include <bsd.port.post.mk>