From d63715a8fcaee73db09133a66665b9d9da9d6807 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 5 Dec 2011 13:54:46 +0000 Subject: [PATCH] [packages] collectd: fix olsrd plugin statistics. Recent olsr-mod-txtinfo versions require the client to send "/all" to report all stats SVN-Revision: 29435 --- utils/collectd/Makefile | 2 +- utils/collectd/patches/400-fix-olsrd-get-all.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 utils/collectd/patches/400-fix-olsrd-get-all.patch diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 0e418ef50c..2d9afd4253 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=collectd PKG_VERSION:=4.10.2 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://collectd.org/files/ diff --git a/utils/collectd/patches/400-fix-olsrd-get-all.patch b/utils/collectd/patches/400-fix-olsrd-get-all.patch new file mode 100644 index 0000000000..b49a0e7398 --- /dev/null +++ b/utils/collectd/patches/400-fix-olsrd-get-all.patch @@ -0,0 +1,11 @@ +--- a/src/olsrd.c ++++ b/src/olsrd.c +@@ -653,7 +653,7 @@ static int olsrd_read (void) /* {{{ */ + if (fh == NULL) + return (-1); + +- fputs ("\r\n", fh); ++ fputs ("/all \r\n", fh); + fflush (fh); + + while (fgets (buffer, sizeof (buffer), fh) != NULL) -- 2.30.2