[08/15] package/dante: adapt to preset-all
diff mbox series

Message ID 20191103165640.21819-9-jeremy.rosen@smile.fr
State Superseded
Headers show
Series
  • use host-systemd to enable units
Related show

Commit Message

Jérémy Rosen Nov. 3, 2019, 4:56 p.m. UTC
dante was not enabled, we now need to disable it explicitely

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
---
 package/dante/50-dante.preset | 1 +
 package/dante/dante.mk        | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 package/dante/50-dante.preset

Comments

James Hilliard Nov. 3, 2019, 5:17 p.m. UTC | #1
On Sun, Nov 3, 2019 at 11:57 AM Jérémy Rosen <jeremy.rosen@smile.fr> wrote:
>
> dante was not enabled, we now need to disable it explicitly
Isn't it a bug that dante was not enabled previously? Is there a
reason it should
not be enabled?
>
> Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
> ---
>  package/dante/50-dante.preset | 1 +
>  package/dante/dante.mk        | 2 ++
>  2 files changed, 3 insertions(+)
>  create mode 100644 package/dante/50-dante.preset
>
> diff --git a/package/dante/50-dante.preset b/package/dante/50-dante.preset
> new file mode 100644
> index 0000000000..9fc7ab171a
> --- /dev/null
> +++ b/package/dante/50-dante.preset
> @@ -0,0 +1 @@
> +disable dante.service
> diff --git a/package/dante/dante.mk b/package/dante/dante.mk
> index 0bd036d37e..82b7b9629f 100644
> --- a/package/dante/dante.mk
> +++ b/package/dante/dante.mk
> @@ -31,6 +31,8 @@ DANTE_POST_INSTALL_TARGET_HOOKS += DANTE_INSTALL_CONFIG_FILE
>  define DANTE_INSTALL_INIT_SYSTEMD
>         $(INSTALL) -D -m 644 package/dante/dante.service \
>                 $(TARGET_DIR)/usr/lib/systemd/system/dante.service
> +       $(INSTALL) -D -m 644 package/dante/50-dante.preset \
> +               $(TARGET_DIR)/usr/lib/systemd/system-preset/50-dante.preset
>  endef
>
>  define DANTE_INSTALL_INIT_SYSV
> --
> 2.24.0.rc1
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Patch
diff mbox series

diff --git a/package/dante/50-dante.preset b/package/dante/50-dante.preset
new file mode 100644
index 0000000000..9fc7ab171a
--- /dev/null
+++ b/package/dante/50-dante.preset
@@ -0,0 +1 @@ 
+disable dante.service
diff --git a/package/dante/dante.mk b/package/dante/dante.mk
index 0bd036d37e..82b7b9629f 100644
--- a/package/dante/dante.mk
+++ b/package/dante/dante.mk
@@ -31,6 +31,8 @@  DANTE_POST_INSTALL_TARGET_HOOKS += DANTE_INSTALL_CONFIG_FILE
 define DANTE_INSTALL_INIT_SYSTEMD
 	$(INSTALL) -D -m 644 package/dante/dante.service \
 		$(TARGET_DIR)/usr/lib/systemd/system/dante.service
+	$(INSTALL) -D -m 644 package/dante/50-dante.preset \
+		$(TARGET_DIR)/usr/lib/systemd/system-preset/50-dante.preset
 endef
 
 define DANTE_INSTALL_INIT_SYSV