mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] mosquitto: Add possibility to add mosquitto_passwd
@ 2025-09-02 10:35 Fabian Pflug
  2025-09-02 11:59 ` Thorsten Scherer
  2025-09-02 14:28 ` [ptxdist] [PATCH v2] " Fabian Pflug
  0 siblings, 2 replies; 3+ messages in thread
From: Fabian Pflug @ 2025-09-02 10:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pflug

Add a new config option to install mosquitto_passwd if needed onto the
target.

Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
 rules/mosquitto.in   | 6 ++++++
 rules/mosquitto.make | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/rules/mosquitto.in b/rules/mosquitto.in
index 3c751ede7..e38b1e8c8 100644
--- a/rules/mosquitto.in
+++ b/rules/mosquitto.in
@@ -37,6 +37,12 @@ config MOSQUITTO_SRV
 	bool
 	prompt "SRV lookup support"
 
+config MOSQUITTO_PASSWD
+	bool
+	prompt "install mosquitto passwd"
+	help
+		Installs the file /usr/bin/mosquitto_passwd
+
 config MOSQUITTO_WEBSOCKETS
 	bool
 	depends on MOSQUITTO_BROKER
diff --git a/rules/mosquitto.make b/rules/mosquitto.make
index 239f1fe3c..d337ae630 100644
--- a/rules/mosquitto.make
+++ b/rules/mosquitto.make
@@ -106,6 +106,11 @@ ifdef PTXCONF_MOSQUITTO_SYSTEMD_UNIT
 endif
 endif
 
+ifdef PTXCONF_MOSQUITTO_PASSWD
+	# password file management
+	@$(call install_copy, mosquitto, 0, 0, 0755, -, /usr/bin/mosquitto_passwd)
+endif
+
 	@$(call install_finish, mosquitto)
 
 	@$(call touch)
-- 
2.47.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH] mosquitto: Add possibility to add mosquitto_passwd
  2025-09-02 10:35 [ptxdist] [PATCH] mosquitto: Add possibility to add mosquitto_passwd Fabian Pflug
@ 2025-09-02 11:59 ` Thorsten Scherer
  2025-09-02 14:28 ` [ptxdist] [PATCH v2] " Fabian Pflug
  1 sibling, 0 replies; 3+ messages in thread
From: Thorsten Scherer @ 2025-09-02 11:59 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pflug

Hello Fabian,

On Tue, Sep 02, 2025 at 12:35:38PM +0200, Fabian Pflug wrote:
> Add a new config option to install mosquitto_passwd if needed onto the
> target.
> 
> Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
> ---
>  rules/mosquitto.in   | 6 ++++++
>  rules/mosquitto.make | 5 +++++
>  2 files changed, 11 insertions(+)
> 
> diff --git a/rules/mosquitto.in b/rules/mosquitto.in
> index 3c751ede7..e38b1e8c8 100644
> --- a/rules/mosquitto.in
> +++ b/rules/mosquitto.in
> @@ -37,6 +37,12 @@ config MOSQUITTO_SRV
>  	bool
>  	prompt "SRV lookup support"
>  
> +config MOSQUITTO_PASSWD
> +	bool
> +	prompt "install mosquitto passwd"
> +	help
> +		Installs the file /usr/bin/mosquitto_passwd

the helptext should be indented with "<Tab><Space><Space>"

> +
>  config MOSQUITTO_WEBSOCKETS
>  	bool
>  	depends on MOSQUITTO_BROKER
> diff --git a/rules/mosquitto.make b/rules/mosquitto.make
> index 239f1fe3c..d337ae630 100644
> --- a/rules/mosquitto.make
> +++ b/rules/mosquitto.make
> @@ -106,6 +106,11 @@ ifdef PTXCONF_MOSQUITTO_SYSTEMD_UNIT
>  endif
>  endif
>  
> +ifdef PTXCONF_MOSQUITTO_PASSWD
> +	# password file management
> +	@$(call install_copy, mosquitto, 0, 0, 0755, -, /usr/bin/mosquitto_passwd)
> +endif
> +
>  	@$(call install_finish, mosquitto)
>  
>  	@$(call touch)
> -- 
> 2.47.2
> 
> 

Best regards
Thorsten



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ptxdist] [PATCH v2] mosquitto: Add possibility to add mosquitto_passwd
  2025-09-02 10:35 [ptxdist] [PATCH] mosquitto: Add possibility to add mosquitto_passwd Fabian Pflug
  2025-09-02 11:59 ` Thorsten Scherer
@ 2025-09-02 14:28 ` Fabian Pflug
  1 sibling, 0 replies; 3+ messages in thread
From: Fabian Pflug @ 2025-09-02 14:28 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pflug

Add a new config option to install mosquitto_passwd if needed onto the
target.

Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
 rules/mosquitto.in   | 6 ++++++
 rules/mosquitto.make | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/rules/mosquitto.in b/rules/mosquitto.in
index 3c751ede7..5ebc6ef2f 100644
--- a/rules/mosquitto.in
+++ b/rules/mosquitto.in
@@ -37,6 +37,12 @@ config MOSQUITTO_SRV
 	bool
 	prompt "SRV lookup support"
 
+config MOSQUITTO_PASSWD
+	bool
+	prompt "install mosquitto passwd"
+	help
+	  Installs the file /usr/bin/mosquitto_passwd
+
 config MOSQUITTO_WEBSOCKETS
 	bool
 	depends on MOSQUITTO_BROKER
diff --git a/rules/mosquitto.make b/rules/mosquitto.make
index 239f1fe3c..d337ae630 100644
--- a/rules/mosquitto.make
+++ b/rules/mosquitto.make
@@ -106,6 +106,11 @@ ifdef PTXCONF_MOSQUITTO_SYSTEMD_UNIT
 endif
 endif
 
+ifdef PTXCONF_MOSQUITTO_PASSWD
+	# password file management
+	@$(call install_copy, mosquitto, 0, 0, 0755, -, /usr/bin/mosquitto_passwd)
+endif
+
 	@$(call install_finish, mosquitto)
 
 	@$(call touch)
-- 
2.47.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-02 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-02 10:35 [ptxdist] [PATCH] mosquitto: Add possibility to add mosquitto_passwd Fabian Pflug
2025-09-02 11:59 ` Thorsten Scherer
2025-09-02 14:28 ` [ptxdist] [PATCH v2] " Fabian Pflug

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox