muninlite: add /etc/munin to conffiles and install muninlite.conf
authorRany Hany <rany_hany@riseup.net>
Wed, 1 Jan 2025 17:21:37 +0000 (17:21 +0000)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 9 Jan 2025 23:11:38 +0000 (00:11 +0100)
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>
admin/muninlite/Makefile

index d7f0918b47db3fc2f3ddc2fba6127d8bdb85406e..95ad48d326ceaf1099c6c9dbc335de6ca7c9fb46 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 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)/
@@ -37,12 +37,14 @@ endef
 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