Changeset 42469


Ignore:
Timestamp:
2014-09-11T14:27:26+02:00 (3 years ago)
Author:
blogic
Message:

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

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/package-defaults.mk

    r39980 r42469  
    5454  URL:= 
    5555  VARIANT:= 
     56  USERID:= 
    5657endef 
    5758 
  • trunk/include/package-dumpinfo.mk

    r42002 r42469  
    4242Title: $(TITLE) 
    4343Maintainer: $(MAINTAINER) 
    44 Source: $(PKG_SOURCE) 
     44$(if $(USERID),Require-User: $(USERID) 
     45)Source: $(PKG_SOURCE) 
    4546Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg)) 
    4647$(if $(KCONFIG),Kernel-Config: $(KCONFIG) 
  • trunk/include/package-ipkg.mk

    r42090 r42469  
    166166                $(if $(PKG_LICENSE_FILES), echo "LicenseFiles: $(PKG_LICENSE_FILES)"; ) \ 
    167167                echo "Section: $(SECTION)"; \ 
     168                $(if $(USERID),echo "Require-User: $(USERID)"; ) \ 
    168169                $(if $(filter hold,$(PKG_FLAGS)),echo "Status: unknown hold not-installed"; ) \ 
    169170                $(if $(filter essential,$(PKG_FLAGS)), echo "Essential: yes"; ) \ 
Note: See TracChangeset for help on using the changeset viewer.