Update buidlroot to version 2016.08.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
config BR2_PACKAGE_COLLECTD
|
||||
menuconfig BR2_PACKAGE_COLLECTD
|
||||
bool "collectd"
|
||||
# Uses fork()
|
||||
depends on BR2_USE_MMU
|
||||
@@ -39,6 +39,7 @@ config BR2_PACKAGE_COLLECTD_VALUE
|
||||
bool "value"
|
||||
help
|
||||
Select values by their data sources' values.
|
||||
|
||||
endmenu
|
||||
|
||||
menu "misc plugins"
|
||||
@@ -333,7 +334,7 @@ config BR2_PACKAGE_COLLECTD_OPENLDAP
|
||||
Read monitoring information from OpenLDAP's cn=Monitor subtree.
|
||||
|
||||
comment "openldap support needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
config BR2_PACKAGE_COLLECTD_OPENVPN
|
||||
bool "openvpn"
|
||||
@@ -385,7 +386,7 @@ config BR2_PACKAGE_COLLECTD_SMART
|
||||
and bad sectors.
|
||||
|
||||
comment "SMART requires udev to be enabled"
|
||||
depends on !BR2_PACKAGE_HAS_UDEV
|
||||
depends on !BR2_PACKAGE_HAS_UDEV
|
||||
|
||||
config BR2_PACKAGE_COLLECTD_STATSD
|
||||
bool "StatsD"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# From https://collectd.org/files/SHA256SUM
|
||||
sha256 f9c5d526e1f0429a7db1ccd90bdf9e23923a2fd43b7285cfda8f0341e5c0bc3f collectd-5.5.1.tar.bz2
|
||||
sha256 017f3a4062187e594d8ab6af685655fb82a8a942dc574668e68242bdb8ba820f collectd-5.5.2.tar.bz2
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
COLLECTD_VERSION = 5.5.1
|
||||
COLLECTD_VERSION = 5.5.2
|
||||
COLLECTD_SITE = http://collectd.org/files
|
||||
COLLECTD_SOURCE = collectd-$(COLLECTD_VERSION).tar.bz2
|
||||
COLLECTD_CONF_ENV = ac_cv_lib_yajl_yajl_alloc=yes
|
||||
@@ -16,7 +16,7 @@ COLLECTD_LICENSE_FILES = COPYING
|
||||
COLLECTD_PLUGINS_DISABLE = \
|
||||
amqp apple_sensors aquaero ascent barometer dbi email \
|
||||
gmond hddtemp ipmi java libvirt lpar lvm madwifi mbmon \
|
||||
mic multimeter netapp notify_desktop notify_email numa \
|
||||
mic multimeter netapp notify_desktop notify_email numa \
|
||||
nut onewire oracle perl pf pinba powerdns python redis routeros \
|
||||
rrdcached sigrok tape target_v5upgrade teamspeak2 ted \
|
||||
tokyotyrant turbostat uuid varnish virt vserver write_kafka \
|
||||
@@ -185,4 +185,12 @@ define COLLECTD_INSTALL_TARGET_CMDS
|
||||
rm -f $(TARGET_DIR)/usr/share/collectd/postgresql_default.conf
|
||||
endef
|
||||
|
||||
define COLLECTD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/collectd/collectd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/collectd.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -fs ../../../../usr/lib/systemd/system/collectd.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/collectd.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
17
bsp/buildroot/package/collectd/collectd.service
Normal file
17
bsp/buildroot/package/collectd/collectd.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Statistics collection and monitoring daemon
|
||||
After=local-fs.target network.target
|
||||
Requires=local-fs.target network.target
|
||||
ConditionPathExists=/etc/collectd.conf
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=main
|
||||
EnvironmentFile=-/etc/default/collectd
|
||||
ExecStartPre=/usr/sbin/collectd -t
|
||||
ExecStart=/usr/sbin/collectd
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user