[packages/mosquitto] move mosquitto_ctrl to -admin subpackage
atler
atler at pld-linux.org
Wed Sep 13 02:58:11 CEST 2023
commit b0e5c6a8ebf41926052b446182ca19fe62f87bb9
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Sep 13 00:18:57 2023 +0200
move mosquitto_ctrl to -admin subpackage
can be used to manage mosquitto instance remotely so don't require
entire server installation in this scenario
mosquitto.spec | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/mosquitto.spec b/mosquitto.spec
index bad171f..fd04f84 100644
--- a/mosquitto.spec
+++ b/mosquitto.spec
@@ -30,6 +30,7 @@ Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
+Suggests: %{name}-admin = %{version}-%{release}
Suggests: %{name}-clients = %{version}-%{release}
Suggests: %{name}-plugin-dynamic-security = %{version}-%{release}
Provides: group(mosquitto)
@@ -47,6 +48,14 @@ machine" messaging such as with low power sensors or mobile devices
such as phones, embedded computers or micro-controllers like the
Arduino.
+%package admin
+Summary: Tools to manage Mosquitto configuration
+Group: Applications/Networking
+Requires: libmosquitto = %{version}-%{release}
+
+%description admin
+Tools to manage Mosquitto configuration.
+
%package clients
Summary: Mosquitto command line pub/sub clients
Group: Applications/Networking
@@ -181,18 +190,21 @@ fi
%attr(600,mosquitto,mosquitto) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/aclfile
%attr(600,mosquitto,mosquitto) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/pskfile
%attr(600,mosquitto,mosquitto) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/pwfile
-%attr(755,root,root) %{_bindir}/mosquitto_ctrl
%attr(755,root,root) %{_bindir}/mosquitto_passwd
%attr(755,root,root) %{_sbindir}/mosquitto
%{?with_systemd:%{systemdunitdir}/mosquitto.service}
-%{_mandir}/man1/mosquitto_ctrl.1*
-%{_mandir}/man1/mosquitto_ctrl_dynsec.1*
%{_mandir}/man1/mosquitto_passwd.1*
%{_mandir}/man5/mosquitto.conf.5*
%{_mandir}/man7/mosquitto-tls.7*
%{_mandir}/man7/mqtt.7*
%{_mandir}/man8/mosquitto.8*
+%files admin
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mosquitto_ctrl
+%{_mandir}/man1/mosquitto_ctrl.1*
+%{_mandir}/man1/mosquitto_ctrl_dynsec.1*
+
%files clients
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/mosquitto_pub
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mosquitto.git/commitdiff/b0e5c6a8ebf41926052b446182ca19fe62f87bb9
More information about the pld-cvs-commit
mailing list