summaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios-plugins/Makefile
blob: c70789aaadb7b4c0a8756aee8a693d3432b08aef (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:	netsaint-plugins
# Date created:				Wed 12 Jul 2000
# Whom:					will
#
# $FreeBSD$
#

PORTNAME=	netsaint-plugins
PORTVERSION=	1.2.9.3
CATEGORIES=	net
MASTER_SITES=	http://download.sourceforge.net/netsaintplug/
DISTNAME=	${PORTNAME}-1.2.9-3

MAINTAINER=	blaz@amis.net

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--sbindir=${PREFIX}/share/netsaint/sbin \
		--libexecdir=${PREFIX}/libexec/netsaint \
		--datadir=${PREFIX}/share/netsaint \
		--sysconfdir=${PREFIX}/etc/netsaint \
		--localstatedir=${PREFIX}/var/netsaint
CONFIGURE_ENV=	LOCALBASE=${LOCALBASE}
USE_AUTOMAKE=	yes
USE_GMAKE=	yes

.if defined(WANT_QSTAT)
BUILD_DEPENDS+=	qstat:${PORTSDIR}/games/qstat
RUN_DEPENDS+=	qstat:${PORTSDIR}/games/qstat
PLIST_SUB+=	WANT_QSTAT=""
.else
PLIST_SUB+=	WANT_QSTAT="@comment "
.endif

.if defined(WANT_FPING)
BUILD_DEPENDS+=	fping:${PORTSDIR}/net/fping
RUN_DEPENDS+=	fping:${PORTSDIR}/net/fping
PLIST_SUB+=	WANT_FPING=""
.else
PLIST_SUB+=	WANT_FPING="@comment "
.endif

.if defined(WANT_SNMP)
BUILD_DEPENDS+=	snmpcheck:${PORTSDIR}/net/net-snmp
RUN_DEPENDS+=	snmpcheck:${PORTSDIR}/net/net-snmp
PLIST_SUB+=	WANT_SNMP=""
CONFIGURE_ARGS+=--enable-snmp
.else
PLIST_SUB+=	WANT_SNMP="@comment "
.endif

.if defined(WANT_RADIUS)
LIB_DEPENDS+=	radiusclient.0:${PORTSDIR}/net/radiusclient
PLIST_SUB+=	WANT_RADIUS=""
CONFIGURE_ARGS+=--enable-radius
.else
PLIST_SUB+=	WANT_RADIUS="@comment "
.endif

.if defined(WANT_MYSQL)
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
PLIST_SUB+=	WANT_MYSQL=""
CONFIGURE_ARGS+=--with-mysqllibdir=${LOCALBASE}/lib/mysql
.else
PLIST_SUB+=	WANT_MYSQL="@comment "
.endif

pre-install:
	${PERL} ${SCRIPTDIR}/createuser

.include <bsd.port.mk>
OpenPOWER on IntegriCloud