removed Requires(pre): /sbin/nologin; rebuilt in /usr [release 2.5.4-2mamba;Thu Aug 05 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:37:51 +01:00
parent 2476b6ea40
commit 9778877f7d

View File

@ -9,7 +9,7 @@
Name: nfs-utils Name: nfs-utils
Version: 2.5.4 Version: 2.5.4
Release: 1mamba Release: 2mamba
Summary: NFS utilities and supporting clients and daemons for the kernel NFS server Summary: NFS utilities and supporting clients and daemons for the kernel NFS server
Group: Network/File Systems Group: Network/File Systems
Vendor: openmamba Vendor: openmamba
@ -49,9 +49,9 @@ BuildRequires: libz-devel
#%endif #%endif
BuildRequires: rpcsvc-proto-devel BuildRequires: rpcsvc-proto-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
# build libraries needed to support nfsv4 # build libraries needed to support nfsv4
#BuildRequires: tcp_wrappers-devel >= 7.6 #BuildRequires: tcp_wrappers-devel >= 7.6
Requires(pre): /sbin/nologin #Requires(pre): /sbin/nologin
Requires: rpcbind Requires: rpcbind
Requires: libnfsidmap = %{?epoch:%epoch:}%{version}-%{release} Requires: libnfsidmap = %{?epoch:%epoch:}%{version}-%{release}
%systemd_requires %systemd_requires
@ -145,7 +145,10 @@ make all CC=%{_host}-gcc CFLAGS="%{optflags}" \
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall statduser=$USER generator_dir=%{_systemdgeneratordir} %makeinstall \
sbindir=%{_sbindir} \
statduser=$USER \
generator_dir=%{_systemdgeneratordir}
install -d %{buildroot}/var/lib/nfs/rpc_pipefs install -d %{buildroot}/var/lib/nfs/rpc_pipefs
install -d %{buildroot}/var/lib/nfs/statd install -d %{buildroot}/var/lib/nfs/statd
@ -173,9 +176,6 @@ install -D -m0644 nfs.conf %{buildroot}%{_sysconfdir}/nfs.conf
%pre %pre
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
chkconfig nfs off 2>/dev/null || true
rm -f /etc/rc*.d/S55nfs
chkconfig nfslock off 2>/dev/null || true
/usr/sbin/groupadd -g %{rpcuser_gid} rpcuser 2>/dev/null /usr/sbin/groupadd -g %{rpcuser_gid} rpcuser 2>/dev/null
/usr/sbin/useradd -c "RPC Service User" \ /usr/sbin/useradd -c "RPC Service User" \
-s /bin/false -u %{rpcuser_uid} -g rpcuser -d /var/lib/nfs rpcuser 2>/dev/null -s /bin/false -u %{rpcuser_uid} -g rpcuser -d /var/lib/nfs rpcuser 2>/dev/null
@ -219,10 +219,10 @@ fi
%config(noreplace) %{_sysconfdir}/nfs.conf %config(noreplace) %{_sysconfdir}/nfs.conf
#%config(noreplace) %{_sysconfdir}/sysconfig/nfs #%config(noreplace) %{_sysconfdir}/sysconfig/nfs
%if %{with_mount} %if %{with_mount}
%attr(4755,root,root) /sbin/mount.nfs %attr(4755,root,root) %{_sbindir}/mount.nfs
/sbin/mount.nfs4 %{_sbindir}/mount.nfs4
/sbin/umount.nfs %{_sbindir}/umount.nfs
/sbin/umount.nfs4 %{_sbindir}/umount.nfs4
%endif %endif
%{_sbindir}/blkmapd %{_sbindir}/blkmapd
%{_sbindir}/mountstats %{_sbindir}/mountstats
@ -295,7 +295,7 @@ fi
%{_sbindir}/rpc.mountd %{_sbindir}/rpc.mountd
%{_sbindir}/rpc.nfsd %{_sbindir}/rpc.nfsd
%{_sbindir}/nfsdclnts %{_sbindir}/nfsdclnts
/sbin/nfsdcltrack %{_sbindir}/nfsdcltrack
%ifarch x86_64 %ifarch x86_64
%{_sbindir}/nfsdclddb %{_sbindir}/nfsdclddb
%{_sbindir}/nfsdcld %{_sbindir}/nfsdcld
@ -351,6 +351,9 @@ fi
%changelog %changelog
* Thu Aug 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.4-2mamba
- removed Requires(pre): /sbin/nologin; rebuilt in /usr
* Sat Jun 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.4-1mamba * Sat Jun 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.4-1mamba
- update to 2.5.4 - update to 2.5.4