trying to re-enable nfsv4 and added more options to configure [release 1.3.3-5mamba;Sat Jul 23 2016]

This commit is contained in:
Silvan Calarco 2024-01-06 07:37:49 +01:00
parent a7cd9340aa
commit e6bd047a00

View File

@ -9,7 +9,7 @@
Name: nfs-utils Name: nfs-utils
Version: 1.3.3 Version: 1.3.3
Release: 4mamba Release: 5mamba
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
@ -32,20 +32,23 @@ BuildRequires: libe2fs-devel
BuildRequires: libevent-devel BuildRequires: libevent-devel
BuildRequires: libgssglue-devel BuildRequires: libgssglue-devel
BuildRequires: libkeyutils-devel BuildRequires: libkeyutils-devel
%if "%{stage1}" != "1"
BuildRequires: libkrb5-devel BuildRequires: libkrb5-devel
%endif BuildRequires: libmount-devel
%if "%{stage1}" != "1"
BuildRequires: libnfsidmap-devel BuildRequires: libnfsidmap-devel
%endif
BuildRequires: libpcre-devel
BuildRequires: librpcsecgss-devel BuildRequires: librpcsecgss-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libsqlite-devel BuildRequires: libsqlite-devel
BuildRequires: libtirpc-devel BuildRequires: libtirpc-devel
BuildRequires: libuuid-devel BuildRequires: libuuid-devel
BuildRequires: libwrap-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: chkconfig BuildRequires: chkconfig
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
%systemd_requires %systemd_requires
@ -72,19 +75,22 @@ sed -i "s|/run/sysconfig|/run|" systemd/*
# --disable-tirpc: we currently use portmap. # --disable-tirpc: we currently use portmap.
# Enabling tirpc causes nfs.mountd not to start when IPv6 is disabled # Enabling tirpc causes nfs.mountd not to start when IPv6 is disabled
%configure \ %configure \
--disable-nfsv4 \
--enable-tirpc \ --enable-tirpc \
%if "%{stage1}" == "1" %if "%{stage1}" == "1"
--disable-gss \ --disable-gss \
%else %else
--enable-gss \ --enable-gss \
--enable-ipv6 \
--with-statedir=/var/lib/nfs \
%endif %endif
%if %{with_mount} %if %{with_mount}
--enable-mount \ --enable-mount \
--enable-libmount-mount \
--enable-mountconfig \
%else %else
--disable-mount \ --disable-mount \
%endif %endif
--with-tcp-wrappers \ --without-tcp-wrappers \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
--with-systemd=%{_unitdir} \ --with-systemd=%{_unitdir} \
@ -190,15 +196,15 @@ fi
%attr(4755,root,root) /sbin/umount.nfs %attr(4755,root,root) /sbin/umount.nfs
%attr(4755,root,root) /sbin/umount.nfs4 %attr(4755,root,root) /sbin/umount.nfs4
%endif %endif
#/sbin/nfsdcltrack /sbin/nfsdcltrack
/sbin/osd_login /sbin/osd_login
#%{_sbindir}/blkmapd %{_sbindir}/blkmapd
%{_sbindir}/mountstats %{_sbindir}/mountstats
#%{_sbindir}/nfsidmap %{_sbindir}/nfsidmap
%{_sbindir}/nfsiostat %{_sbindir}/nfsiostat
%{_sbindir}/nfsstat %{_sbindir}/nfsstat
%{_sbindir}/rpcdebug %{_sbindir}/rpcdebug
#%{_sbindir}/rpc.idmapd %{_sbindir}/rpc.idmapd
%if "%{stage1}" != "1" %if "%{stage1}" != "1"
%{_sbindir}/rpc.gssd %{_sbindir}/rpc.gssd
#%{_sbindir}/rpc.svcgssd #%{_sbindir}/rpc.svcgssd
@ -214,8 +220,8 @@ fi
%{_unitdir}/nfs-config.service %{_unitdir}/nfs-config.service
%{_unitdir}/rpc-statd.service %{_unitdir}/rpc-statd.service
%{_unitdir}/nfs-utils.service %{_unitdir}/nfs-utils.service
#%{_unitdir}/nfs-blkmap.service %{_unitdir}/nfs-blkmap.service
#%{_unitdir}/nfs-idmapd.service %{_unitdir}/nfs-idmapd.service
%{_unitdir}/nfs-mountd.service %{_unitdir}/nfs-mountd.service
%{_unitdir}/rpc-gssd.service %{_unitdir}/rpc-gssd.service
%{_unitdir}/rpc-statd-notify.service %{_unitdir}/rpc-statd-notify.service
@ -232,17 +238,17 @@ fi
%config(noreplace) /var/lib/nfs/xtab %config(noreplace) /var/lib/nfs/xtab
%{_mandir}/man5/nfs.5* %{_mandir}/man5/nfs.5*
%{_mandir}/man5/nfsmount.conf.5* %{_mandir}/man5/nfsmount.conf.5*
#%{_mandir}/man8/blkmapd.8* %{_mandir}/man8/blkmapd.8*
%{_mandir}/man8/gssd.8* %{_mandir}/man8/gssd.8*
#%{_mandir}/man8/idmapd.8* %{_mandir}/man8/idmapd.8*
%{_mandir}/man8/mount.nfs.8* %{_mandir}/man8/mount.nfs.8*
%{_mandir}/man8/mountstats.8* %{_mandir}/man8/mountstats.8*
#%{_mandir}/man8/nfsdcltrack.8* %{_mandir}/man8/nfsdcltrack.8*
#%{_mandir}/man8/nfsidmap.8* %{_mandir}/man8/nfsidmap.8*
%{_mandir}/man8/nfsiostat.8* %{_mandir}/man8/nfsiostat.8*
%{_mandir}/man8/nfsstat.8* %{_mandir}/man8/nfsstat.8*
%{_mandir}/man8/rpc.gssd.8* %{_mandir}/man8/rpc.gssd.8*
#%{_mandir}/man8/rpc.idmapd.8* %{_mandir}/man8/rpc.idmapd.8*
%{_mandir}/man8/rpc.sm-notify.8* %{_mandir}/man8/rpc.sm-notify.8*
%{_mandir}/man8/rpc.statd.8* %{_mandir}/man8/rpc.statd.8*
%{_mandir}/man8/rpcdebug.8* %{_mandir}/man8/rpcdebug.8*
@ -276,6 +282,9 @@ fi
%{_mandir}/man7/nfsd.7* %{_mandir}/man7/nfsd.7*
%changelog %changelog
* Sat Jul 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.3-5mamba
- trying to re-enable nfsv4 and added more options to configure
* Tue Dec 01 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.3-4mamba * Tue Dec 01 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.3-4mamba
- remove nfs-idmapd.service since disabling nfs4 - remove nfs-idmapd.service since disabling nfs4