collectd: add gps plugin support
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 22 Dec 2016 01:59:20 +0000 (22:59 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 23 Dec 2016 21:42:09 +0000 (22:42 +0100)
Add explicit support for the gps plugin that uses libgps from the gpsd
package.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/collectd/Config.in
package/collectd/collectd.mk

index 7cd6397e68fc7fb6e3c7bbfeb83c5ed677f62ab3..02c02b7f36f31bf51d75807291b9e5aa4c398234 100644 (file)
@@ -237,6 +237,13 @@ config BR2_PACKAGE_COLLECTD_FSCACHE
          Collects information about the file-system based caching
          infrastructure for network file-systems and other slow media.
 
+config BR2_PACKAGE_COLLECTD_GPS
+       bool "gps"
+       select BR2_PACKAGE_GPSD
+       help
+         Reports the number of sattelites seen by and precision
+         of a GPS receiver.
+
 config BR2_PACKAGE_COLLECTD_HUGEPAGES
        bool "hugepages"
        help
index b105e903ba63b9ef867c6807416fab85d3e130bf..520ce1c77c15364fb5aac6a271f9e80f3b833484 100644 (file)
@@ -57,6 +57,7 @@ COLLECTD_CONF_OPTS += \
        $(if $(BR2_PACKAGE_COLLECTD_FHCOUNT),--enable-fhcount,--disable-fhcount) \
        $(if $(BR2_PACKAGE_COLLECTD_FILECOUNT),--enable-filecount,--disable-filecount) \
        $(if $(BR2_PACKAGE_COLLECTD_FSCACHE),--enable-fscache,--disable-fscache) \
+       $(if $(BR2_PACKAGE_COLLECTD_GPS),--enable-gps,--disable-gps) \
        $(if $(BR2_PACKAGE_COLLECTD_GRAPHITE),--enable-write_graphite,--disable-write_graphite) \
        $(if $(BR2_PACKAGE_COLLECTD_HASHED),--enable-match_hashed,--disable-match_hashed) \
        $(if $(BR2_PACKAGE_COLLECTD_HUGEPAGES),--enable-hugepages,--disable-hugepages) \
@@ -131,6 +132,7 @@ COLLECTD_DEPENDENCIES = \
        $(if $(BR2_PACKAGE_COLLECTD_CURL_JSON),libcurl yajl) \
        $(if $(BR2_PACKAGE_COLLECTD_CURL_XML),libcurl libxml2) \
        $(if $(BR2_PACKAGE_COLLECTD_DNS),libpcap) \
+       $(if $(BR2_PACKAGE_COLLECTD_GPS),gpsd) \
        $(if $(BR2_PACKAGE_COLLECTD_IPTABLES),iptables) \
        $(if $(BR2_PACKAGE_COLLECTD_LOGSTASH),yajl) \
        $(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),libmemcached) \