From 99c3f69dc3461b579543b19e1bba10f95f60c42d Mon Sep 17 00:00:00 2001 From: Stephen Walker Date: Fri, 15 Jan 2010 21:58:28 +0000 Subject: [PATCH] collectd: lazily evaluate CONFIGURE_PLUGIN (thanks nbd) (#6447), update to 4.9.1 SVN-Revision: 19154 --- utils/collectd/Makefile | 13 +++++-------- utils/collectd/files/collectd.conf | 5 +++++ .../patches/100-rrdtool-add-rrasingle-option.patch | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index c6add0c02..379f9d3a4 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,14 +8,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=collectd -PKG_VERSION:=4.9.0 +PKG_VERSION:=4.9.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://collectd.org/files/ -PKG_MD5SUM:=5b2e5f57716f2485a3b4eb57774a3818 +PKG_MD5SUM:=5753496651c8c84afaea1fe290876bfc PKG_FIXUP:=libtool +PKG_INSTALL:=1 COLLECTD_PLUGINS_DISABLED:= \ apple_sensors \ @@ -147,7 +148,7 @@ CONFIGURE_VARS+= \ LDFLAGS="$$$$LDFLAGS -lm -lz" \ KERNEL_DIR="$(LINUX_DIR)" \ -CONFIGURE_PLUGIN:= \ +CONFIGURE_PLUGIN= \ $(foreach m, $(1), \ $(if $(CONFIG_PACKAGE_collectd-mod-$(m)),--enable-$(m),--disable-$(m)) \ ) @@ -177,10 +178,6 @@ ifneq ($(CONFIG_PACKAGE_collectd-mod-rrdtool),) CONFIGURE_ARGS+= --with-librrd="$(STAGING_DIR)/usr/lib/rrdtool-1.0" endif -MAKE_FLAGS += \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - all install - define Package/collectd/conffiles /etc/collectd.conf endef diff --git a/utils/collectd/files/collectd.conf b/utils/collectd/files/collectd.conf index 15a7c18c0..2ef78fe7f 100644 --- a/utils/collectd/files/collectd.conf +++ b/utils/collectd/files/collectd.conf @@ -71,7 +71,12 @@ LoadPlugin wireless # # Host "host.foo.bar" +# Interval 1.0 +# Timeout 0.9 # TTL 255 +# SourceAddress "1.2.3.4" +# Device "eth0" +# MaxMissed -1 # # diff --git a/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch b/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch index 6ac75225f..611a729c9 100644 --- a/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch +++ b/utils/collectd/patches/100-rrdtool-add-rrasingle-option.patch @@ -17,7 +17,7 @@ /* consolidation_functions = */ NULL, /* consolidation_functions_num = */ 0 }; -@@ -975,6 +978,14 @@ static int rrd_config (const char *key, +@@ -976,6 +979,14 @@ static int rrd_config (const char *key, free (value_copy); } -- 2.30.2