Compare commits

..

9 commits

Author SHA1 Message Date
Steve Dickson
333233b7d5 Updated to latest upstream release: rpcbind-1_2_8 (bz 2300081)
Signed-off-by: Steve Dickson <steved@redhat.com>
2025-07-29 08:14:42 -04:00
Fedora Release Engineering
466d52c13d Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 12:05:17 +00:00
Scott Mayhew
03a3b8332e Fix rpm scriptlets to remove excessive restarts during upgrade
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
2025-05-08 11:14:56 -04:00
Zbigniew Jędrzejewski-Szmek
71db4a3831 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
Previously, a non-system user was created :(, sysusers does not support this.
2025-01-29 15:08:33 +01:00
Fedora Release Engineering
33d953ba50 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 22:39:42 +00:00
Panu Matilainen
58b2707a1d Add provides for the manually created rpc user and group
The provides are necessary to fix this compose failure:
https://pagure.io/releng/failed-composes/issue/7706

Such provides are normally auto-generated from sysusers.d config but since
the user is manually created, we need to manually add the provide too.
2025-01-14 11:47:01 +02:00
Zbigniew Jędrzejewski-Szmek
38448bc8b7 Rebuilt for the bin-sbin merge (2nd attempt)
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
2025-01-12 14:40:42 +01:00
Steve Dickson
bf5e416b30 Updated to latest upstream RC release: rpcbind-1_2_8-rc1
Signed-off-by: Steve Dickson <steved@redhat.com>
2024-09-09 06:45:35 -04:00
Steve Dickson
a2291b98bb Added Requirement for libtirpc (bz 2304327)
Signed-off-by: Steve Dickson <steved@redhat.com>
2024-08-13 11:07:30 -04:00

View file

@ -18,7 +18,7 @@ Conflicts: man-pages < 2.43-12
BuildRequires: make
BuildRequires: automake, autoconf, libtool, systemd, systemd-devel
BuildRequires: libtirpc-devel, quota-devel
Requires(pre): coreutils shadow-utils
Requires(pre): coreutils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd coreutils
@ -45,6 +45,11 @@ RPC calls on a server on that machine.
%prep
%autosetup -p1
# Create a sysusers.d config file
cat >rpcbind.sysusers.conf <<EOF
u rpc 32 'Rpcbind Daemon' /var/lib/rpcbind -
EOF
%build
autoreconf -fisv
%configure \
@ -76,19 +81,7 @@ ln -sf ../bin/rpcbind
ln -sf ../bin/rpcinfo
%endif
%pre
# Softly static allocate the rpc uid and gid.
getent group rpc >/dev/null || groupadd -f -g 32 -r rpc
if ! getent passwd rpc >/dev/null ; then
if ! getent passwd 32 >/dev/null ; then
useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \
-g rpc -M -s /sbin/nologin -o -u 32 rpc > /dev/null 2>&1
else
useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \
-g rpc -M -s /sbin/nologin rpc > /dev/null 2>&1
fi
fi
install -m0644 -D rpcbind.sysusers.conf %{buildroot}%{_sysusersdir}/rpcbind.conf
%post
%systemd_post rpcbind.service rpcbind.socket
@ -96,15 +89,16 @@ fi
%preun
%systemd_preun rpcbind.service rpcbind.socket
# NOTE: We only restart rpcbind.socket in the %postun scriptlet in order to
# avoid the race described in:
#
# https://github.com/systemd/systemd/issues/13271
# https://github.com/systemd/systemd/issues/8102
#
# Restarting rpcbind.socket causes rpcbind.service to be restarted automatically
# due to "Requires=rpcbind.socket" in the rpcbind.service unit file.
%postun
%systemd_postun_with_restart rpcbind.service rpcbind.socket
%triggerin -- rpcbind > 0.2.2-2.0
if systemctl -q is-enabled rpcbind.socket
then
/bin/systemctl reenable rpcbind.socket >/dev/null 2>&1 || :
/bin/systemctl restart rpcbind.socket >/dev/null 2>&1 || :
fi
%systemd_postun_with_restart rpcbind.socket
%files
%license COPYING
@ -121,11 +115,30 @@ fi
%{_unitdir}/%{name}.socket
%{_tmpfilesdir}/%{name}.conf
%attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir}
%{_sysusersdir}/rpcbind.conf
%changelog
* Sat Jul 26 2025 Steve Dickson <steved@redhat.com> 1.2.8-0
- Updated to latest upstream release: rpcbind-1_2_8 (bz 2300081)
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-2.rc1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed May 7 2025 Scott Mayhew <smayhew@redhat.com> - 1.2.7-2.rc1
- Fix rpm scriptlets to remove excessive restarts during upgrade
* Wed Jan 29 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-1.rc1.4
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-1.rc1.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Tue Jan 14 2025 Panu Matilainen <pmatilai@redhat.com> - 1.2.7-1.rc1.2
- Add provides for the manually created rpc user and group
* Sun Jan 12 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.7-1.rc1.1
- Rebuilt for the bin-sbin merge (2nd attempt)
* Mon Sep 9 2024 Steve Dickson <steved@redhat.com> 1.2.8-rc1
- Updated to latest upstream RC release: rpcbind-1_2_8-rc1