blob: e5ab02cc18f423e4c1bec7da7f9f36f37de1db7a (
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
|
# $NetBSD: Makefile,v 1.9 2012/10/03 21:56:56 wiz Exp $
#
DISTNAME= nsca-2.9.1
PKGNAME= nagios-${DISTNAME}
PKGREVISION= 1
CATEGORIES= net sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nagios.org/
COMMENT= Remote/passive network service for nagios
PKG_DESTDIR_SUPPORT= user-destdir
EGDIR= ${PREFIX}/share/examples/nagios
EGFILES= nsca.cfg
USE_TOOLS+= perl
.for files in ${EGFILES}
CONF_FILES+= ${EGDIR}/${files} ${PKG_SYSCONFDIR}/${files}
.endfor
.include "../../net/nagios-base/Makefile.common"
CONFIGURE_ARGS+= --with-nsca-user=${NAGIOS_USER}
CONFIGURE_ARGS+= --with-nsca-grp=${NAGIOS_GROUP}
PKG_GROUPS+= ${NAGIOS_GROUP}
PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}
PKG_GECOS.${NAGIOS_USER}= Nagios Runtime User
INSTALLATION_DIRS+= bin
BUILD_DEFS+= NAGIOS_USER NAGIOS_GROUP
post-install:
${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}
.include "../../security/libmcrypt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|