2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2021/05/24 19:53:20 wiz Exp $
|
2006-02-18 18:13:45 +01:00
|
|
|
#
|
|
|
|
|
2012-09-24 16:21:08 +02:00
|
|
|
DISTNAME= nsca-2.9.1
|
2006-02-18 18:13:45 +01:00
|
|
|
PKGNAME= nagios-${DISTNAME}
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 9
|
2006-02-18 18:13:45 +01:00
|
|
|
CATEGORIES= net sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-03 10:53:04 +02:00
|
|
|
HOMEPAGE= https://www.nagios.org/
|
2006-02-18 18:13:45 +01:00
|
|
|
COMMENT= Remote/passive network service for nagios
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/nagios
|
|
|
|
EGFILES= nsca.cfg
|
|
|
|
|
2006-03-01 23:43:04 +01:00
|
|
|
USE_TOOLS+= perl
|
|
|
|
|
2006-02-18 18:13:45 +01:00
|
|
|
.for files in ${EGFILES}
|
2007-02-22 20:26:05 +01:00
|
|
|
CONF_FILES+= ${EGDIR}/${files} ${PKG_SYSCONFDIR}/${files}
|
2006-02-18 18:13:45 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../net/nagios-base/Makefile.common"
|
|
|
|
|
2011-04-09 00:45:43 +02:00
|
|
|
CONFIGURE_ARGS+= --with-nsca-user=${NAGIOS_USER}
|
|
|
|
CONFIGURE_ARGS+= --with-nsca-grp=${NAGIOS_GROUP}
|
2007-11-26 23:14:23 +01:00
|
|
|
|
|
|
|
PKG_GROUPS+= ${NAGIOS_GROUP}
|
|
|
|
PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}
|
|
|
|
PKG_GECOS.${NAGIOS_USER}= Nagios Runtime User
|
2011-04-09 00:45:43 +02:00
|
|
|
INSTALLATION_DIRS+= bin
|
|
|
|
|
|
|
|
BUILD_DEFS+= NAGIOS_USER NAGIOS_GROUP
|
2007-11-26 23:14:23 +01:00
|
|
|
|
2006-02-18 18:13:45 +01:00
|
|
|
post-install:
|
2011-04-09 00:45:43 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${DESTDIR}${EGDIR}
|
2006-03-01 23:43:04 +01:00
|
|
|
|
|
|
|
.include "../../security/libmcrypt/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|