From 0fb23478d072bb8d7c22127cc58e596b80ca3c0b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 4 Oct 2009 03:55:36 +0000 Subject: [PATCH 1/1] collectd: add mod-memory (patch from #5591) SVN-Revision: 17847 --- utils/collectd/Makefile | 20 +++++++++++++++---- .../patches/010-rrdtool-link-zlib.patch | 8 +++----- .../100-rrdtool-add-rrasingle-option.patch | 10 ++++------ 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 9b81a63373..826f41816b 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=collectd PKG_VERSION:=4.4.4 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://collectd.org/files/ @@ -28,7 +28,7 @@ define Package/collectd/common_info endef define Package/collectd/description - collectd is a small daemon which collects system information periodically + collectd is a small daemon which collects system information periodically and provides mechanismns to store the values in a variety of ways. endef @@ -154,6 +154,12 @@ define Package/collectd-mod-load DEPENDS:=collectd endef +define Package/collectd-mod-memory + $(call Package/collectd/common_info) + TITLE:=collectd - physical memory usage input plugin + DEPENDS:=collectd +endef + define Package/collectd-mod-netlink $(call Package/collectd/common_info) TITLE:=collectd - netlink input plugin (uses iproute2) @@ -252,8 +258,8 @@ define Package/collectd-mod-wireless endef -define Package/collectd/conffiles -/etc/collectd.conf +define Package/collectd/conffiles +/etc/collectd.conf endef define Build/Configure @@ -409,6 +415,11 @@ define Package/collectd-mod-logfile/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/logfile.so $(1)/usr/lib/collectd/ endef +define Package/collectd-mod-memory/install + $(INSTALL_DIR) $(1)/usr/lib/collectd + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/memory.so $(1)/usr/lib/collectd/ +endef + define Package/collectd-mod-netlink/install $(INSTALL_DIR) $(1)/usr/lib/collectd $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/collectd/netlink.so $(1)/usr/lib/collectd/ @@ -521,6 +532,7 @@ $(eval $(call BuildPackage,collectd-mod-iptables)) $(eval $(call BuildPackage,collectd-mod-irq)) $(eval $(call BuildPackage,collectd-mod-load)) $(eval $(call BuildPackage,collectd-mod-logfile)) +$(eval $(call BuildPackage,collectd-mod-memory)) $(eval $(call BuildPackage,collectd-mod-netlink)) $(eval $(call BuildPackage,collectd-mod-network)) $(eval $(call BuildPackage,collectd-mod-nginx)) diff --git a/utils/collectd/patches/010-rrdtool-link-zlib.patch b/utils/collectd/patches/010-rrdtool-link-zlib.patch index aa3b0b6bb5..b10af46cf2 100644 --- a/utils/collectd/patches/010-rrdtool-link-zlib.patch +++ b/utils/collectd/patches/010-rrdtool-link-zlib.patch @@ -1,8 +1,6 @@ -Index: collectd-4.4.3/configure -=================================================================== ---- collectd-4.4.3.orig/configure 2008-09-08 11:14:03.000000000 +0200 -+++ collectd-4.4.3/configure 2008-09-08 11:14:21.000000000 +0200 -@@ -31446,7 +31446,7 @@ +--- a/configure ++++ b/configure +@@ -31446,7 +31446,7 @@ if test "${with_rrdtool+set}" = set; the withval=$with_rrdtool; if test "x$withval" != "xno" && test "x$withval" != "xyes" then librrd_cflags="-I$withval/include" diff --git a/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch b/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch index 23c7861cde..dd0bb42be7 100644 --- a/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch +++ b/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch @@ -1,8 +1,6 @@ -Index: collectd-4.4.2/src/rrdtool.c -=================================================================== ---- collectd-4.4.2.orig/src/rrdtool.c 2008-07-17 19:30:00.000000000 +0200 -+++ collectd-4.4.2/src/rrdtool.c 2008-07-17 19:30:44.000000000 +0200 -@@ -87,6 +87,7 @@ +--- a/src/rrdtool.c ++++ b/src/rrdtool.c +@@ -87,6 +87,7 @@ static const char *config_keys[] = "HeartBeat", "RRARows", "RRATimespan", @@ -10,7 +8,7 @@ Index: collectd-4.4.2/src/rrdtool.c "XFF" }; static int config_keys_num = STATIC_ARRAY_SIZE (config_keys); -@@ -1077,6 +1078,14 @@ +@@ -1077,6 +1078,14 @@ static int rrd_config (const char *key, } xff = tmp; } -- 2.30.2