blob: e5aa8cd6f3cacdafb07f19a628d4c5b34b6d26f4 (
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
|
# $NetBSD: Makefile,v 1.8 2015/08/11 14:15:00 he Exp $
PKGREVISION= 3
.include "../../sysutils/collectd/Makefile.common"
COMMENT= Statistics collection daemon base
RCD_SCRIPTS= collectd
.include "../../mk/bsd.prefs.mk"
# Simple plugins that have no dependencies
DEFAULT_PLUGINS+= aggregation apcups csv email exec filecount \
hddtemp logfile match_empty_counter match_hashed\
match_regex match_timediff match_value mbmon \
ntpd olsrd openvpn powerdns statsd table tail \
tail_csv target_notification target_replace \
target_scale target_set target_v5upgrade \
teamspeak2 threshold unixsock uuid write_graphite
.for option in ${DEFAULT_PLUGINS}
CONFIGURE_ARGS+= --enable-${option}
.endfor
# Several libs not generated in time for linking collectd
MAKE_JOBS_SAFE= no
.include "options.mk"
CONF_FILES+= share/examples/collectd/collectd.conf \
${PKG_SYSCONFDIR}/collectd.conf
OWN_DIRS+= ${VARBASE}/db/collectd
COLLECTD_USER?= collectd
COLLECTD_GROUP?= ${COLLECTD_USER}
PKG_USERS_VARS+= COLLECTD_USER
PKG_GROUPS_VARS+= COLLECTD_GROUP
PKG_GROUPS= ${COLLECTD_GROUP}
PKG_USERS= ${COLLECTD_USER}:${COLLECTD_GROUP}
PKG_GECOS.${COLLECTD_USER}= collectd unprivileged user
.include "../../mk/bsd.pkg.mk"
|