Accepting request 784479 from Base:System
- statd-user.conf: create user via sysusers.d template - Use ordering for systemd instead of hard requires (forwarded request 782892 from kukuk) OBS-URL: https://build.opensuse.org/request/show/784479 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfs-utils?expand=0&rev=152
This commit is contained in:
commit
d3ffab3b4c
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 9 10:04:10 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- statd-user.conf: create user via sysusers.d template
|
||||||
|
- Use ordering for systemd instead of hard requires
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 10 18:58:59 UTC 2020 - Petr Vorel <pvorel@suse.cz>
|
Mon Feb 10 18:58:59 UTC 2020 - Petr Vorel <pvorel@suse.cz>
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ Source1: nfs.doc.tar.bz2
|
|||||||
Source4: sysconfig.nfs
|
Source4: sysconfig.nfs
|
||||||
Source6: README.NFSv4
|
Source6: README.NFSv4
|
||||||
Source11: idmapd.conf
|
Source11: idmapd.conf
|
||||||
|
Source12: statd-user.conf
|
||||||
Source13: nfs-utils.rpmlintrc
|
Source13: nfs-utils.rpmlintrc
|
||||||
Source20: nfs-mountd.options.conf
|
Source20: nfs-mountd.options.conf
|
||||||
Source21: nfs-server.options.conf
|
Source21: nfs-server.options.conf
|
||||||
@ -52,7 +53,8 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: rpcgen
|
BuildRequires: rpcgen
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: sysuser-shadow
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: tcpd-devel
|
||||||
BuildRequires: pkgconfig(devmapper)
|
BuildRequires: pkgconfig(devmapper)
|
||||||
BuildRequires: pkgconfig(kdb)
|
BuildRequires: pkgconfig(kdb)
|
||||||
@ -63,7 +65,7 @@ BuildRequires: pkgconfig(mount)
|
|||||||
BuildRequires: pkgconfig(sqlite3)
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
Suggests: python-base
|
Suggests: python-base
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{?systemd_requires}
|
%{?systemd_ordering}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the NFS utilities. You can tune the number of
|
This package contains the NFS utilities. You can tune the number of
|
||||||
@ -78,11 +80,11 @@ Requires: netcfg
|
|||||||
Requires: rpcbind
|
Requires: rpcbind
|
||||||
Requires(post): %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
Requires(pre): permissions
|
Requires(pre): permissions
|
||||||
Requires(pre): shadow
|
|
||||||
%if 0%{?suse_version} >= 1330
|
%if 0%{?suse_version} >= 1330
|
||||||
Requires(pre): group(nogroup)
|
Requires(pre): group(nogroup)
|
||||||
%endif
|
%endif
|
||||||
Obsoletes: nfs-utils < 1.1.0
|
Obsoletes: nfs-utils < 1.1.0
|
||||||
|
%sysusers_requires
|
||||||
|
|
||||||
%description -n nfs-client
|
%description -n nfs-client
|
||||||
This package contains common NFS utilities which are needed for client
|
This package contains common NFS utilities which are needed for client
|
||||||
@ -162,6 +164,7 @@ export LDFLAGS="-pie"
|
|||||||
--with-pluginpath=%{_libdir}/libnfsidmap-1.0.0 \
|
--with-pluginpath=%{_libdir}/libnfsidmap-1.0.0 \
|
||||||
--enable-mountconfig
|
--enable-mountconfig
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
%sysusers_generate_pre %{SOURCE12} statd
|
||||||
cd nfs
|
cd nfs
|
||||||
for i in *.html ; do
|
for i in *.html ; do
|
||||||
sed -i \
|
sed -i \
|
||||||
@ -200,8 +203,11 @@ install -m 644 utils/mount/nfsmount.conf %{buildroot}%{_sysconfdir}/nfsmount.con
|
|||||||
#
|
#
|
||||||
# hack to avoid automatic python dependency
|
# hack to avoid automatic python dependency
|
||||||
chmod 644 %{buildroot}%{_sbindir}/{mountstats,nfsiostat}
|
chmod 644 %{buildroot}%{_sbindir}/{mountstats,nfsiostat}
|
||||||
|
# Install sysusers.d template
|
||||||
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/
|
||||||
|
|
||||||
%pre -n nfs-client
|
%pre -n nfs-client -f statd.pre
|
||||||
/usr/bin/getent passwd statd >/dev/null || \
|
/usr/bin/getent passwd statd >/dev/null || \
|
||||||
/usr/sbin/useradd -r -c 'NFS statd daemon' \
|
/usr/sbin/useradd -r -c 'NFS statd daemon' \
|
||||||
-s /sbin/nologin -d %{_localstatedir}/lib/nfs -g nogroup statd
|
-s /sbin/nologin -d %{_localstatedir}/lib/nfs -g nogroup statd
|
||||||
@ -344,6 +350,7 @@ fi
|
|||||||
%{_mandir}/man8/blkmapd.8%{ext_man}
|
%{_mandir}/man8/blkmapd.8%{ext_man}
|
||||||
%{_mandir}/man8/rpc.svcgssd.8%{ext_man}
|
%{_mandir}/man8/rpc.svcgssd.8%{ext_man}
|
||||||
%{_fillupdir}/sysconfig.nfs
|
%{_fillupdir}/sysconfig.nfs
|
||||||
|
%{_sysusersdir}/statd-user.conf
|
||||||
%dir %{_localstatedir}/lib/nfs
|
%dir %{_localstatedir}/lib/nfs
|
||||||
%dir %{_localstatedir}/lib/nfs/rpc_pipefs
|
%dir %{_localstatedir}/lib/nfs/rpc_pipefs
|
||||||
%dir %{_localstatedir}/lib/nfs/v4recovery
|
%dir %{_localstatedir}/lib/nfs/v4recovery
|
||||||
|
4
statd-user.conf
Normal file
4
statd-user.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
u statd - "NFS statd daemon" /var/lib/nfs
|
||||||
|
m statd nogroup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user