collectd: add memcachec plugin support
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Sat, 19 Jul 2014 14:35:34 +0000 (11:35 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 19 Jul 2014 15:12:00 +0000 (17:12 +0200)
Now that we've got a libmemcached package we can add support for the
memcachec plugin.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/collectd/Config.in
package/collectd/collectd.mk

index fbb4282d6135f8038f10314fed053aeb698619b5..75c90d13938c4c241ca32a25ca34b687b555d025 100644 (file)
@@ -226,6 +226,16 @@ config BR2_PACKAGE_COLLECTD_MD
        help
          Collects software-RAID device information.
 
+config BR2_PACKAGE_COLLECTD_MEMCACHEC
+       bool "memcachec"
+       depends on BR2_INSTALL_LIBSTDCPP
+       select BR2_PACKAGE_LIBMEMCACHED
+       help
+         Query and parse data from a memcache daemon.
+
+comment "memcachec needs a toolchain w/ C++"
+       depends on !BR2_INSTALL_LIBSTDCPP
+
 config BR2_PACKAGE_COLLECTD_MEMCACHED
        bool "memcached"
        help
index 90404060d4fe2480943cebaed2421e397a1ef07e..e5ac62667f3bc9e2dfef384493ff00b8585c4efc 100644 (file)
@@ -57,6 +57,7 @@ COLLECTD_CONF_OPT += --with-nan-emulation --with-fp-layout=nothing \
        $(if $(BR2_PACKAGE_COLLECTD_LOAD),--enable-load,--disable-load) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGFILE),--enable-logfile,--disable-logfile) \
        $(if $(BR2_PACKAGE_COLLECTD_MD),--enable-md,--disable-md) \
+       $(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),--enable-memcachec,--disable-memcachec) \
        $(if $(BR2_PACKAGE_COLLECTD_MEMCACHED),--enable-memcached,--disable-memcached) \
        $(if $(BR2_PACKAGE_COLLECTD_MEMORY),--enable-memory,--disable-memory) \
        $(if $(BR2_PACKAGE_COLLECTD_MYSQL),--enable-mysql,--disable-mysql) \
@@ -105,6 +106,7 @@ COLLECTD_DEPENDENCIES = host-pkgconf \
        $(if $(BR2_PACKAGE_COLLECTD_CURL_XML),libcurl libxml2) \
        $(if $(BR2_PACKAGE_COLLECTD_DNS),libpcap) \
        $(if $(BR2_PACKAGE_COLLECTD_IPTABLES),iptables) \
+       $(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),libmemcached) \
        $(if $(BR2_PACKAGE_COLLECTD_MYSQL),mysql) \
        $(if $(BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL),libesmtp) \
        $(if $(BR2_PACKAGE_COLLECTD_PING),liboping) \