kamailio: add descriptions via BuildKamailioModule
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 16 Oct 2022 15:09:21 +0000 (17:09 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 16 Oct 2022 15:09:24 +0000 (17:09 +0200)
The Makefile currently advertises that descriptions can be added by
specifying a string in argument 3 of BuildKamailioModule, but there's
actually no mechanism for this. This commit adds the missing pieces.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/kamailio/Makefile

index 69b45f317cc04b5f3ef574db849b162511ed5b43..509fb82bf815fa214258204e41f4199de5539442 100644 (file)
@@ -370,6 +370,9 @@ define BuildKamailioModule
   endef
   define Package/kamailio-mod-$(subst _,-,$(1))/conffiles
 $(subst $(space),$(newline),$(foreach c,$(6),/etc/kamailio/$(c)))
+  endef
+  define Package/kamailio-mod-$(subst _,-,$(1))/description
+$(subst \n,$(newline),$(3))
   endef
   define Package/kamailio-mod-$(subst _,-,$(1))/install
 $(call Package/kamailio/install/module,$$(1),$(1))