From: Karol Babioch <karol@babioch.de>
Date: Mon, 17 Feb 2020 22:12:11 +0000 (+0100)
Subject: luci-app-snmpd: Add snmpd as dependency
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F3641%2Fhead;p=oweals%2Fluci.git

luci-app-snmpd: Add snmpd as dependency

luci-app-snmpd allows to configure snmpd via LuCI. Without making sure that
the snmpd package is installed, the daemon that is about to be configured via
luci-app-snmpd might be missing (unless explicitly installed otherwise).

This is not only counter-intuitive, but also inconsistent with other LuCI based
applications, as they always include the underlying package(s) in order to make
sure that the software being configured is being available in the first place.

Signed-off-by: Karol Babioch <karol@babioch.de>
---

diff --git a/applications/luci-app-snmpd/Makefile b/applications/luci-app-snmpd/Makefile
index fc998ba28..48be986ae 100644
--- a/applications/luci-app-snmpd/Makefile
+++ b/applications/luci-app-snmpd/Makefile
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 LUCI_TITLE:= Net-SNMP LuCI interface
-LUCI_DEPENDS:=+luci-compat +luci-base
+LUCI_DEPENDS:=+luci-compat +luci-base +snmpd
 LUCI_PKGARCH:=all
 LUCI_DESCRIPTION:=Some common net-snmp config items. In no way is this comprehensive.