[Buildroot] [PATCH] package/avahi: Add sysusers.d snippet

Samuel Martin s.martin49 at gmail.com
Tue Feb 6 14:56:32 UTC 2018


Chris, all,

On Wed, Jan 24, 2018 at 12:20 AM, Chris Lesiak <chris.lesiak at licor.com> wrote:
> Signed-off-by: Chris Lesiak <chris.lesiak at licor.com>
> ---
>  package/avahi/avahi.mk            | 9 +++++++++
>  package/avahi/avahi_sysusers.conf | 5 +++++
>  2 files changed, 14 insertions(+)
>  create mode 100644 package/avahi/avahi_sysusers.conf
>
> diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk
> index ef621620f0..baffe3cb69 100644
> --- a/package/avahi/avahi.mk
> +++ b/package/avahi/avahi.mk
> @@ -190,6 +190,13 @@ endif
>
>  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
>         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 \
>                 $(TARGET_DIR)/usr/lib/tmpfiles.d/avahi.conf
> +
> +       $(AVAHI_INSTALL_SYSTEMD_SYSUSERS)
>  endef
>
>  define AVAHI_INSTALL_DAEMON_INIT_SYSV
> diff --git a/package/avahi/avahi_sysusers.conf b/package/avahi/avahi_sysusers.conf
> new file mode 100644
> index 0000000000..463ce97cea
> --- /dev/null
> +++ b/package/avahi/avahi_sysusers.conf
> @@ -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"
> --
> 2.13.6
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


Reviewed-by: Samuel Martin <s.martin49 at gmail.com>

Regards,

-- 
Samuel


More information about the buildroot mailing list