From bc1b1112de9215d7c480d9b2d258e1a6096e9fb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 26 Oct 2017 12:54:52 +0200 Subject: [PATCH] - up to 2.1.1; systemd support needs cleanup --- nfs-utils-2.1.1-rpc-include.patch | 20 ++++++++++++++++++++ nfs-utils.spec | 18 +++++++++++------- 2 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 nfs-utils-2.1.1-rpc-include.patch diff --git a/nfs-utils-2.1.1-rpc-include.patch b/nfs-utils-2.1.1-rpc-include.patch new file mode 100644 index 0000000..5cf44f1 --- /dev/null +++ b/nfs-utils-2.1.1-rpc-include.patch @@ -0,0 +1,20 @@ +commit ba03a02c2fd912f370e1f55de921a403bf5f9247 +Author: Steve Dickson +Date: Thu Jun 22 12:56:41 2017 -0400 + + rpc.c: added include file so UINT16_MAX is defined. + + Signed-off-by: Steve Dickson + +diff --git a/support/nsm/rpc.c b/support/nsm/rpc.c +index 4e5f40e..0a8e56f 100644 +--- a/support/nsm/rpc.c ++++ b/support/nsm/rpc.c +@@ -38,6 +38,7 @@ + #include + #include + ++#include + #include + #include + #include diff --git a/nfs-utils.spec b/nfs-utils.spec index c7bad5e..17a3365 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -9,13 +9,12 @@ Summary(pt_BR.UTF-8): Os utilitários para o cliente e servidor NFS do Linux Summary(ru.UTF-8): Утилиты для NFS и демоны поддержки для NFS-сервера ядра Summary(uk.UTF-8): Утиліти для NFS та демони підтримки для NFS-сервера ядра Name: nfs-utils -Version: 1.3.4 -Release: 2 +Version: 2.1.1 +Release: 1 License: GPL v2 Group: Networking/Daemons -#Source0: https://www.kernel.org/pub/linux/utils/nfs/%{name}-%{version}.tar.bz2 -Source0: http://downloads.sourceforge.net/nfs/%{name}-%{version}.tar.bz2 -# Source0-md5: 2fabdadb8ff415a1eafcfb12ab1bf781 +Source0: https://www.kernel.org/pub/linux/utils/nfs-utils/%{version}/%{name}-%{version}.tar.xz +# Source0-md5: 59dfcb2e6254b129f901f40c86086b13 #Source1: ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs.doc.tar.gz Source1: nfs.doc.tar.gz # Source1-md5: ae7db9c61c5ad04f83bb99e5caed73da @@ -48,7 +47,8 @@ Patch2: %{name}-subsys.patch Patch3: %{name}-union-mount.patch Patch4: %{name}-heimdal.patch Patch5: %{name}-x32.patch -URL: http://nfs.sourceforge.net/ +Patch6: nfs-utils-2.1.1-rpc-include.patch +URL: http://linux-nfs.org/ BuildRequires: autoconf >= 2.59 BuildRequires: automake BuildRequires: cpp @@ -188,6 +188,7 @@ Wspólne programy do obsługi NFS. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build %{__libtoolize} @@ -216,7 +217,8 @@ Wspólne programy do obsługi NFS. --with-start-statd=/sbin/start-statd \ --with-tcp-wrappers \ --without-gssglue \ - --with-krb5 + --with-krb5 \ + --with-systemd %{__make} all @@ -436,7 +438,9 @@ fi %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/rmtab %{_mandir}/man5/exports.5* +%{_mandir}/man5/nfs.conf.5* %{_mandir}/man7/nfsd.7* +%{_mandir}/man7/nfs.systemd.7* %{_mandir}/man8/exportfs.8* %{_mandir}/man8/mountd.8* %{_mandir}/man8/nfsd.8* -- 2.44.0