summaryrefslogtreecommitdiff
path: root/net/nagios-base/Makefile.common
blob: 2585565887d0ea1593d2957675473ccb2d422992 (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
# $NetBSD: Makefile.common,v 1.11 2011/04/08 22:37:24 morr Exp $
#
# used by net/nagios-base/Makefile
# used by net/nagios-nsca/Makefile
# used by net/nagios-plugins/Makefile.common
# used by net/nagios-plugin-ldap/Makefile

.include "../../mk/bsd.prefs.mk"

PKG_GROUPS_VARS+=	NAGIOS_GROUP NAGIOSCMD_GROUP
PKG_USERS_VARS+=	NAGIOS_USER

GNU_CONFIGURE=		YES
USE_TOOLS+=		gmake

PKG_SYSCONFSUBDIR=	nagios

PERL5_REQD=		5.6

CONFIGURE_ARGS+=	--libexecdir=${PREFIX}/libexec/nagios
.if ${PKGPATH} != "net/nagios-nsca"
CONFIGURE_ARGS+=	--datarootdir=${PREFIX}/share/nagios
.endif
CONFIGURE_ARGS+=	--datadir=${PREFIX}/share
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--localstatedir=${NAGIOSDIR}

CONFIGURE_ARGS+=	--with-cgiurl=/nagios/cgi-bin
CONFIGURE_ARGS+=	--with-htmurl=/nagios

BUILD_DEFS+=		NAGIOSDIR