- Resolves: RHEL-80063
- Add support for sysusers.d functionality (RHEL-80063) Signed-off-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
parent
aef0661a76
commit
43dd00fe80
@ -11,10 +11,11 @@
|
|||||||
Name: corosync-qdevice
|
Name: corosync-qdevice
|
||||||
Summary: The Corosync Cluster Engine Qdevice
|
Summary: The Corosync Cluster Engine Qdevice
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 7%{?gitver}%{?dist}
|
Release: 8%{?gitver}%{?dist}
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/corosync/corosync-qdevice
|
URL: https://github.com/corosync/corosync-qdevice
|
||||||
Source0: https://github.com/corosync/corosync-qdevice/releases/download/v%{version}%{?gittarver}/%{name}-%{version}%{?gittarver}.tar.gz
|
Source0: https://github.com/corosync/corosync-qdevice/releases/download/v%{version}%{?gittarver}/%{name}-%{version}%{?gittarver}.tar.gz
|
||||||
|
Source1: corosync-qnetd.sysusers.conf
|
||||||
|
|
||||||
# Runtime bits
|
# Runtime bits
|
||||||
Requires: corosync >= 2.4.0
|
Requires: corosync >= 2.4.0
|
||||||
@ -42,6 +43,7 @@ BuildRequires: nss-devel
|
|||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?gittarver}
|
%setup -q -n %{name}-%{version}%{?gittarver}
|
||||||
@ -88,6 +90,8 @@ sed -i -e 's/^COROSYNC_QNETD_RUNAS=""$/COROSYNC_QNETD_RUNAS="coroqnetd"/' \
|
|||||||
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd
|
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/corosync-qnetd.conf
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the Corosync Cluster Engine Qdevice, script for creating
|
This package contains the Corosync Cluster Engine Qdevice, script for creating
|
||||||
NSS certificates and an init script.
|
NSS certificates and an init script.
|
||||||
@ -149,21 +153,19 @@ The Corosync Cluster Engine Qdevice
|
|||||||
%package -n corosync-qnetd
|
%package -n corosync-qnetd
|
||||||
Summary: The Corosync Cluster Engine Qdevice Network Daemon
|
Summary: The Corosync Cluster Engine Qdevice Network Daemon
|
||||||
Requires: nss-tools
|
Requires: nss-tools
|
||||||
Requires(pre): shadow-utils
|
|
||||||
|
|
||||||
%if %{with systemd}
|
%if %{with systemd}
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%{?sysusers_requires_compat}
|
||||||
|
|
||||||
%description -n corosync-qnetd
|
%description -n corosync-qnetd
|
||||||
This package contains the Corosync Cluster Engine Qdevice Network Daemon,
|
This package contains the Corosync Cluster Engine Qdevice Network Daemon,
|
||||||
script for creating NSS certificates and an init script.
|
script for creating NSS certificates and an init script.
|
||||||
|
|
||||||
%pre -n corosync-qnetd
|
%pre -n corosync-qnetd
|
||||||
getent group coroqnetd >/dev/null || groupadd -r coroqnetd
|
%sysusers_create_compat %{SOURCE1}
|
||||||
getent passwd coroqnetd >/dev/null || \
|
|
||||||
useradd -r -g coroqnetd -d / -s /sbin/nologin -c "User for corosync-qnetd" coroqnetd
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%post -n corosync-qnetd
|
%post -n corosync-qnetd
|
||||||
%if %{with systemd} && 0%{?systemd_post:1}
|
%if %{with systemd} && 0%{?systemd_post:1}
|
||||||
@ -205,8 +207,14 @@ fi
|
|||||||
%{_mandir}/man8/corosync-qnetd-tool.8*
|
%{_mandir}/man8/corosync-qnetd-tool.8*
|
||||||
%{_mandir}/man8/corosync-qnetd-certutil.8*
|
%{_mandir}/man8/corosync-qnetd-certutil.8*
|
||||||
%{_mandir}/man8/corosync-qnetd.8*
|
%{_mandir}/man8/corosync-qnetd.8*
|
||||||
|
%{_sysusersdir}/corosync-qnetd.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 18 2025 Jan Friesse <jfriesse@redhat.com> - 3.0.3-8
|
||||||
|
- Resolves: RHEL-80063
|
||||||
|
|
||||||
|
- Add support for sysusers.d functionality (RHEL-80063)
|
||||||
|
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.0.3-7
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.0.3-7
|
||||||
- Bump release for October 2024 mass rebuild:
|
- Bump release for October 2024 mass rebuild:
|
||||||
Resolves: RHEL-64018
|
Resolves: RHEL-64018
|
||||||
|
1
corosync-qnetd.sysusers.conf
Normal file
1
corosync-qnetd.sysusers.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
u coroqnetd - 'User for corosync-qnetd' - -
|
Loading…
Reference in New Issue
Block a user