From 5b529766760293fbdc01fe488e9e3e2eed4e1af0 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 27 Aug 2024 21:57:22 +0200 Subject: [PATCH] plugins: add more boring variants glue If we want separate comments for each plugin this would be the way to do it. --- Mk/plugins.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 0dea226d9..ffaed1120 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -58,6 +58,8 @@ check: . endif .endfor +_PLUGIN_COMMENT:= ${PLUGIN_COMMENT} + .if defined(_PLUGIN_DEVEL) PLUGIN_DEVEL?:= ${_PLUGIN_DEVEL} .else @@ -85,6 +87,9 @@ PLUGIN_CONFLICTS+= ${${_PLUGIN_VARIANT}_NAME}${PLUGIN_SUFFIX} \ ${${_PLUGIN_VARIANT}_NAME} .endfor PLUGIN_DEPENDS+= ${${PLUGIN_VARIANT}_DEPENDS} +.if !empty(${PLUGIN_VARIANT}_COMMENT) +_PLUGIN_COMMENT:= ${${PLUGIN_VARIANT}_COMMENT} +.endif .endif .endif @@ -115,7 +120,7 @@ manifest: check @echo "name: ${PLUGIN_PKGNAME}" @echo "version: \"${PLUGIN_PKGVERSION}\"" @echo "origin: opnsense/${PLUGIN_PKGNAME}" - @echo "comment: \"${PLUGIN_COMMENT}\"" + @echo "comment: \"${_PLUGIN_COMMENT}\"" @echo "maintainer: \"${PLUGIN_MAINTAINER}\"" @echo "categories: [ \"${.CURDIR:S/\// /g:[-2]}\" ]" @echo "www: \"${PLUGIN_WWW}\""