The entire /etc/munin should be backed up as it includes
user configuration for custom plugins and the muninlite.conf
config file which is useful to override the default NTP server.
Also we install muninlite.conf to /etc/munin/.
Signed-off-by: Rany Hany <rany_hany@riseup.net>
PKG_NAME:=muninlite
PKG_VERSION:=2.1.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/munin-monitoring/$(PKG_NAME)/releases/download/$(PKG_VERSION)/
define Package/muninlite/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/muninlite $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/etc/munin/plugins
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/muninlite.conf $(1)/etc/munin/
$(INSTALL_DIR) $(1)/etc/xinetd.d
$(INSTALL_DATA) ./files/etc/xinetd.d/muninlite $(1)/etc/xinetd.d/
- $(INSTALL_DIR) $(1)/etc/munin/plugins
endef
define Package/muninlite/conffiles
+/etc/munin/
/etc/xinetd.d/muninlite
endef