aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-01-31 20:10:39 +0800
committermiwi <miwi@FreeBSD.org>2011-01-31 20:10:39 +0800
commit81a08414b3db04272780deb2902fe3a791151881 (patch)
tree54288d4639144d8154f4868e3ee3fe0c63bc57f5 /net-mgmt
parent90ededbc3287461843630531c590be9417c214ad (diff)
downloadfreebsd-ports-graphics-81a08414b3db04272780deb2902fe3a791151881.tar.gz
freebsd-ports-graphics-81a08414b3db04272780deb2902fe3a791151881.tar.zst
freebsd-ports-graphics-81a08414b3db04272780deb2902fe3a791151881.zip
- Add disk plugin support
PR: 153643 Submitted by: Benjamin Lee <ben@b1c1l1.com> Approved by: maintainer Feature safe: yes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/collectd/Makefile12
-rw-r--r--net-mgmt/collectd/pkg-plist3
-rw-r--r--net-mgmt/collectd5/Makefile12
-rw-r--r--net-mgmt/collectd5/pkg-plist3
4 files changed, 26 insertions, 4 deletions
diff --git a/net-mgmt/collectd/Makefile b/net-mgmt/collectd/Makefile
index 5a4eeb91cc9..0179458e680 100644
--- a/net-mgmt/collectd/Makefile
+++ b/net-mgmt/collectd/Makefile
@@ -7,7 +7,7 @@
PORTNAME= collectd
PORTVERSION= 4.9.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/
@@ -26,6 +26,7 @@ OPTIONS= CGI "Install collection.cgi (requires RRDTOOL)" Off \
APCUPS "Input: APC UPS (apcupsd)" Off \
CURL "Input: CURL generic web statistics" Off \
DBI "Input: database abstraction library" Off \
+ DISK "Input: Disk performance statistics" Off \
NUTUPS "Input: NUT UPS daemon" Off \
INTERFACE "Input: Network interfaces (libstatgrab)" On \
MBMON "Input: MBMon" Off \
@@ -74,7 +75,6 @@ CONFIGURE_ARGS= --localstatedir=/var \
--disable-contextswitch \
--disable-cpufreq \
--disable-curl_json \
- --disable-disk \
--disable-entropy \
--disable-fscache \
--disable-gmond \
@@ -195,6 +195,14 @@ CONFIGURE_ARGS+=--disable-dbi
PLIST_SUB+= DBI="@comment "
.endif
+.if defined(WITH_DISK)
+CONFIGURE_ARGS+=--enable-disk
+PLIST_SUB+= DISK=""
+.else
+CONFIGURE_ARGS+=--disable-disk
+PLIST_SUB+= DISK="@comment "
+.endif
+
.if defined(WITH_NUTUPS)
CONFIGURE_ARGS+=--enable-nut
BUILD_DEPENDS+= ${LOCALBASE}/include/upsclient.h:${PORTSDIR}/sysutils/nut
diff --git a/net-mgmt/collectd/pkg-plist b/net-mgmt/collectd/pkg-plist
index 202a92bda82..b899a8f03e4 100644
--- a/net-mgmt/collectd/pkg-plist
+++ b/net-mgmt/collectd/pkg-plist
@@ -35,6 +35,9 @@ lib/collectd/csv.so
%%DBI%%lib/collectd/dbi.a
%%DBI%%lib/collectd/dbi.la
%%DBI%%lib/collectd/dbi.so
+%%DISK%%lib/collectd/disk.a
+%%DISK%%lib/collectd/disk.la
+%%DISK%%lib/collectd/disk.so
lib/collectd/df.a
lib/collectd/df.la
lib/collectd/df.so
diff --git a/net-mgmt/collectd5/Makefile b/net-mgmt/collectd5/Makefile
index 5a4eeb91cc9..0179458e680 100644
--- a/net-mgmt/collectd5/Makefile
+++ b/net-mgmt/collectd5/Makefile
@@ -7,7 +7,7 @@
PORTNAME= collectd
PORTVERSION= 4.9.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://collectd.org/files/
@@ -26,6 +26,7 @@ OPTIONS= CGI "Install collection.cgi (requires RRDTOOL)" Off \
APCUPS "Input: APC UPS (apcupsd)" Off \
CURL "Input: CURL generic web statistics" Off \
DBI "Input: database abstraction library" Off \
+ DISK "Input: Disk performance statistics" Off \
NUTUPS "Input: NUT UPS daemon" Off \
INTERFACE "Input: Network interfaces (libstatgrab)" On \
MBMON "Input: MBMon" Off \
@@ -74,7 +75,6 @@ CONFIGURE_ARGS= --localstatedir=/var \
--disable-contextswitch \
--disable-cpufreq \
--disable-curl_json \
- --disable-disk \
--disable-entropy \
--disable-fscache \
--disable-gmond \
@@ -195,6 +195,14 @@ CONFIGURE_ARGS+=--disable-dbi
PLIST_SUB+= DBI="@comment "
.endif
+.if defined(WITH_DISK)
+CONFIGURE_ARGS+=--enable-disk
+PLIST_SUB+= DISK=""
+.else
+CONFIGURE_ARGS+=--disable-disk
+PLIST_SUB+= DISK="@comment "
+.endif
+
.if defined(WITH_NUTUPS)
CONFIGURE_ARGS+=--enable-nut
BUILD_DEPENDS+= ${LOCALBASE}/include/upsclient.h:${PORTSDIR}/sysutils/nut
diff --git a/net-mgmt/collectd5/pkg-plist b/net-mgmt/collectd5/pkg-plist
index 202a92bda82..b899a8f03e4 100644
--- a/net-mgmt/collectd5/pkg-plist
+++ b/net-mgmt/collectd5/pkg-plist
@@ -35,6 +35,9 @@ lib/collectd/csv.so
%%DBI%%lib/collectd/dbi.a
%%DBI%%lib/collectd/dbi.la
%%DBI%%lib/collectd/dbi.so
+%%DISK%%lib/collectd/disk.a
+%%DISK%%lib/collectd/disk.la
+%%DISK%%lib/collectd/disk.so
lib/collectd/df.a
lib/collectd/df.la
lib/collectd/df.so