summaryrefslogtreecommitdiff
path: root/include/package-dumpinfo.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-09-11 12:27:26 +0000
committerJohn Crispin <john@openwrt.org>2014-09-11 12:27:26 +0000
commit285012d8972b1891c78d9d77b8a2f7d4e81ae829 (patch)
treedfcf938e14bbfbcb1ba92dda067751f798c7c4f3 /include/package-dumpinfo.mk
parentb05c2aad3cf60ff9b55de616d310b86f6eac5104 (diff)
downloadmtk-20170518-285012d8972b1891c78d9d77b8a2f7d4e81ae829.zip
mtk-20170518-285012d8972b1891c78d9d77b8a2f7d4e81ae829.tar.gz
mtk-20170518-285012d8972b1891c78d9d77b8a2f7d4e81ae829.tar.bz2
include: add a meta data field for required system user:group
this is in preparation of having services run as !root with ACL'ed access to ubus. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42469
Diffstat (limited to 'include/package-dumpinfo.mk')
-rw-r--r--include/package-dumpinfo.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/package-dumpinfo.mk b/include/package-dumpinfo.mk
index 9dc847d..0241580 100644
--- a/include/package-dumpinfo.mk
+++ b/include/package-dumpinfo.mk
@@ -41,7 +41,8 @@ $(if $(VARIANT),Build-Variant: $(VARIANT)
Category: $(CATEGORY)
Title: $(TITLE)
Maintainer: $(MAINTAINER)
-Source: $(PKG_SOURCE)
+$(if $(USERID),Require-User: $(USERID)
+)Source: $(PKG_SOURCE)
Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
$(if $(KCONFIG),Kernel-Config: $(KCONFIG)
)$(if $(BUILDONLY),Build-Only: $(BUILDONLY)