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
This commit is contained in:
John Crispin 2014-09-11 12:27:26 +00:00
parent b05c2aad3c
commit 285012d897
3 changed files with 4 additions and 1 deletions

View file

@ -53,6 +53,7 @@ define Package/Default
HIDDEN:=
URL:=
VARIANT:=
USERID:=
endef
Build/Patch:=$(Build/Patch/Default)

View file

@ -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)

View file

@ -165,6 +165,7 @@ ifeq ($(DUMP),)
$(if $(PKG_LICENSE), echo "License: $(PKG_LICENSE)"; ) \
$(if $(PKG_LICENSE_FILES), echo "LicenseFiles: $(PKG_LICENSE_FILES)"; ) \
echo "Section: $(SECTION)"; \
$(if $(USERID),echo "Require-User: $(USERID)"; ) \
$(if $(filter hold,$(PKG_FLAGS)),echo "Status: unknown hold not-installed"; ) \
$(if $(filter essential,$(PKG_FLAGS)), echo "Essential: yes"; ) \
$(if $(MAINTAINER),echo "Maintainer: $(MAINTAINER)"; ) \