1 # $NetBSD: Makefile,v 1.17 2012/10/23 17:18:39 asau Exp $
5 PKGNAME
= nagios-
${DISTNAME}
7 CATEGORIES
= net sysutils
8 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=nagios
/}
10 MAINTAINER
= pkgsrc-users@NetBSD.org
11 HOMEPAGE
= http
://sourceforge.net
/projects
/nagios
/
12 COMMENT
= Nagios remote program execution daemon
14 .
include "../../mk/bsd.prefs.mk"
19 PKG_SYSCONFSUBDIR
= nagios
20 CONFIGURE_ARGS
+= --libexecdir
=${PREFIX}/libexec
/nagios
21 CONFIGURE_ARGS
+= --sysconfdir
=${PKG_SYSCONFDIR
:Q
}
23 PKG_GROUPS
+= ${NAGIOS_GROUP}
24 PKG_USERS
+= ${NAGIOS_USER}:${NAGIOS_GROUP}
25 PKG_GECOS.
${NAGIOS_USER}= Nagios Runtime User
27 PKG_GROUPS_VARS
+= NAGIOS_GROUP
28 PKG_USERS_VARS
+= NAGIOS_USER
30 CONFIGURE_ARGS
+= --with-nrpe-user
=${NAGIOS_USER
:Q
}
31 CONFIGURE_ARGS
+= --with-nrpe-group
=${NAGIOS_GROUP
:Q
}
32 CONFIGURE_ARGS
+= --with-nagios-user
=${NAGIOS_USER
:Q
}
33 CONFIGURE_ARGS
+= --with-nagios-group
=${NAGIOS_GROUP
:Q
}
35 CONF_FILES
+= ${PREFIX}/share
/examples
/nagios
/nrpe.cfg
${PKG_SYSCONFDIR}/nrpe.cfg
38 INSTALLATION_DIRS
= sbin libexec
/nagios share
/examples
/nagios share
/examples
/rc.d
43 ${INSTALL_PROGRAM} ${WRKSRC}/src
/nrpe
${DESTDIR}${PREFIX}/sbin
44 ${INSTALL_PROGRAM} ${WRKSRC}/src
/check_nrpe
${DESTDIR}${PREFIX}/libexec
/nagios
45 ${INSTALL_DATA} ${WRKSRC}/sample-config
/nrpe.cfg
${DESTDIR}${PREFIX}/share
/examples
/nagios
46 ${INSTALL_SCRIPT} ${WRKDIR}/nrpe
${DESTDIR}${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
48 .
include "../../mk/bsd.pkg.mk"