blob: 465303de59cc20cc04b43f8feddc483ca00d84ea (
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
45
|
# $NetBSD: options.mk,v 1.6 2015/09/12 19:04:56 he Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.collectd
PKG_SUPPORTED_OPTIONS= cpu df interface load memory syslog uptime
PKG_SUGGESTED_OPTIONS+= cpu df interface load memory syslog uptime
.if ${OPSYS} == "NetBSD"
PKG_SUPPORTED_OPTIONS+= contextswitch disk entropy irq pf netstat_udp
PKG_SUPPORTED_OPTIONS+= processes swap tcpconns users
PKG_SUGGESTED_OPTIONS+= contextswitch disk entropy irq pf netstat_udp
PKG_SUGGESTED_OPTIONS+= processes swap tcpconns users
.endif
.if ${OPSYS} == "FreeBSD"
PKG_SUPPORTED_OPTIONS+= contextswitch pf processes swap tcpconns zfs-arc
PKG_SUGGESTED_OPTIONS+= contextswitch pf processes swap tcpconns zfs-arc
.endif
.if ${OPSYS} == "Darwin"
PKG_SUPPORTED_OPTIONS+= apple-sensors battery contextswitch disk processes swap \
tcpconns users
PKG_SUGGESTED_OPTIONS+= apple-sensors battery contextswitch disk processes swap \
tcpconns users
.endif
.if ${OPSYS} == "SunOS"
PKG_SUPPORTED_OPTIONS+= disk nfs swap users zfs-arc
PKG_SUGGESTED_OPTIONS+= disk nfs swap users zfs-arc
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= apple-sensors battery contextswitch cpu entropy \
df disk \
interface irq load netstat_udp \
memory nfs pf processes swap \
syslog tcpconns uptime users zfs-arc
.for option in ${PLIST_VARS}
. if !empty(PKG_OPTIONS:M${option})
CONFIGURE_ARGS+= --enable-${option:S/-/_/}
PLIST.${option}= yes
. endif
.endfor
|