package/avahi: Add sysusers.d snippet
Signed-off-by: Chris Lesiak <chris.lesiak@licor.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
0ccf773659
commit
7cbfcb322c
@ -190,6 +190,13 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUSERS),y)
|
||||||
|
define AVAHI_INSTALL_SYSTEMD_SYSUSERS
|
||||||
|
$(INSTALL) -D -m 644 package/avahi/avahi_sysusers.conf \
|
||||||
|
$(TARGET_DIR)/usr/lib/sysusers.d/avahi.conf
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define AVAHI_INSTALL_INIT_SYSTEMD
|
define AVAHI_INSTALL_INIT_SYSTEMD
|
||||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
|
||||||
@ -201,6 +208,8 @@ define AVAHI_INSTALL_INIT_SYSTEMD
|
|||||||
|
|
||||||
$(INSTALL) -D -m 644 package/avahi/avahi_tmpfiles.conf \
|
$(INSTALL) -D -m 644 package/avahi/avahi_tmpfiles.conf \
|
||||||
$(TARGET_DIR)/usr/lib/tmpfiles.d/avahi.conf
|
$(TARGET_DIR)/usr/lib/tmpfiles.d/avahi.conf
|
||||||
|
|
||||||
|
$(AVAHI_INSTALL_SYSTEMD_SYSUSERS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define AVAHI_INSTALL_DAEMON_INIT_SYSV
|
define AVAHI_INSTALL_DAEMON_INIT_SYSV
|
||||||
|
5
package/avahi/avahi_sysusers.conf
Normal file
5
package/avahi/avahi_sysusers.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# sysusers.d snippet for creating the avahi system user automatically
|
||||||
|
# at boot on systemd-based systems that ship with an unpopulated
|
||||||
|
# /etc. See sysusers.d(5) for details.
|
||||||
|
|
||||||
|
u avahi - "Avahi mDNS/DNS-SD Stack"
|
Loading…
Reference in New Issue
Block a user