avahi: run as avahi user/group instead of default
Create an avahi specific user/group and use it instead of the global 'default' one, so it can be removed. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
297fefa4ba
commit
d3ccfa362b
@ -80,10 +80,10 @@ AVAHI_CONF_OPT = --localstatedir=/var \
|
|||||||
--with-distro=none \
|
--with-distro=none \
|
||||||
--disable-manpages \
|
--disable-manpages \
|
||||||
$(if $(BR2_PACKAGE_AVAHI_AUTOIPD),--enable,--disable)-autoipd \
|
$(if $(BR2_PACKAGE_AVAHI_AUTOIPD),--enable,--disable)-autoipd \
|
||||||
--with-avahi-user=default \
|
--with-avahi-user=avahi \
|
||||||
--with-avahi-group=default \
|
--with-avahi-group=avahi \
|
||||||
--with-autoipd-user=default \
|
--with-autoipd-user=avahi \
|
||||||
--with-autoipd-group=default
|
--with-autoipd-group=avahi
|
||||||
|
|
||||||
AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-intltool \
|
AVAHI_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-intltool \
|
||||||
host-pkgconf host-gettext
|
host-pkgconf host-gettext
|
||||||
@ -136,6 +136,10 @@ endif
|
|||||||
|
|
||||||
AVAHI_MAKE_OPT += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),LIBS=-lintl)
|
AVAHI_MAKE_OPT += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),LIBS=-lintl)
|
||||||
|
|
||||||
|
define AVAHI_USERS
|
||||||
|
avahi -1 avahi -1 * - - -
|
||||||
|
endef
|
||||||
|
|
||||||
define AVAHI_REMOVE_INITSCRIPT
|
define AVAHI_REMOVE_INITSCRIPT
|
||||||
rm -rf $(TARGET_DIR)/etc/init.d/avahi-*
|
rm -rf $(TARGET_DIR)/etc/init.d/avahi-*
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user