pkgsrc/sysutils/collectd/options.mk
he d17ee82f5b Reinstate the "processes" plugin for NetBSD by initializing the
two per-process context switch counters to -1, indicating no support.
Our kinfo_lwp structure doesn't contain the context switch counters,
which in the kernel is part of the lwp structure.

Also make this build on netbsd-6 and on ports which don't yet have
nearbyint() by simply defining it as rint() on NetBSD.

Bump PKGREVISION.
2017-01-19 17:20:42 +00:00

36 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.9 2017/01/19 17:20:42 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
PKG_SUPPORTED_OPTIONS.NetBSD+= contextswitch disk entropy irq pf netstat_udp
PKG_SUPPORTED_OPTIONS.NetBSD+= swap tcpconns users processes
PKG_SUGGESTED_OPTIONS.NetBSD+= contextswitch disk entropy irq pf netstat_udp
PKG_SUGGESTED_OPTIONS.NetBSD+= swap tcpconns users processes
PKG_SUPPORTED_OPTIONS.FreeBSD+= contextswitch pf processes swap tcpconns zfs-arc
PKG_SUGGESTED_OPTIONS.FreeBSD+= contextswitch pf processes swap tcpconns zfs-arc
PKG_SUPPORTED_OPTIONS.Darwin+= apple-sensors battery contextswitch disk
PKG_SUPPORTED_OPTIONS.Darwin+= processes swap tcpconns users
PKG_SUGGESTED_OPTIONS.Darwin+= apple-sensors battery contextswitch disk
PKG_SUGGESTED_OPTIONS.Darwin+= processes swap tcpconns users
PKG_SUPPORTED_OPTIONS.SunOS+= disk nfs swap users zfs-arc zone
PKG_SUGGESTED_OPTIONS.SunOS+= disk nfs swap users zfs-arc zone
.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 zone
.for option in ${PLIST_VARS}
. if !empty(PKG_OPTIONS:M${option})
CONFIGURE_ARGS+= --enable-${option:S/-/_/}
PLIST.${option}= yes
. endif
.endfor