- 0001-Make-location-of-nfs-utils_env.sh-configurable.patch
1.3.4 moved the config script location to somewhere that doesn't exist on openSUSE. Move it somewhere better and install it there. (bsc#990356) OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=169
This commit is contained in:
parent
80d063fbaf
commit
29a67f267e
67
0001-Make-location-of-nfs-utils_env.sh-configurable.patch
Normal file
67
0001-Make-location-of-nfs-utils_env.sh-configurable.patch
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
From dc071e55135019d4503930f204674219a9f8676b Mon Sep 17 00:00:00 2001
|
||||||
|
From: NeilBrown <neilb@suse.com>
|
||||||
|
Date: Sun, 21 Aug 2016 14:53:57 +1000
|
||||||
|
Subject: [PATCH] Make location of nfs-utils_env.sh configurable.
|
||||||
|
|
||||||
|
A recent patch moved this file to /usr/libexec/...
|
||||||
|
That directory isn't universal, and doesn't exist on openSUSE or
|
||||||
|
Debian for example.
|
||||||
|
So change it to use the $libexecdir directory determined by configure
|
||||||
|
|
||||||
|
Signed-off-by: NeilBrown <neilb@suse.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
configure.ac | 6 ++++++
|
||||||
|
systemd/nfs-config.service | 13 -------------
|
||||||
|
systemd/nfs-config.service.in | 13 +++++++++++++
|
||||||
|
3 files changed, 19 insertions(+), 13 deletions(-)
|
||||||
|
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -511,8 +511,14 @@ AC_SUBST([AM_CFLAGS], ["$my_am_cflags"])
|
||||||
|
# Make sure that $ACLOCAL_FLAGS are used during a rebuild
|
||||||
|
AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"])
|
||||||
|
|
||||||
|
+# make libexecdir available for substituion in config files
|
||||||
|
+# 2 "evals" needed late to expand variable names.
|
||||||
|
+AC_SUBST([_libexecdir])
|
||||||
|
+AC_CONFIG_COMMANDS_PRE([eval eval _libexecdir=$libexecdir])
|
||||||
|
+
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
+ systemd/nfs-config.service
|
||||||
|
linux-nfs/Makefile
|
||||||
|
support/Makefile
|
||||||
|
support/export/Makefile
|
||||||
|
--- a/systemd/nfs-config.service
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,13 +0,0 @@
|
||||||
|
-[Unit]
|
||||||
|
-Description=Preprocess NFS configuration
|
||||||
|
-After=local-fs.target
|
||||||
|
-DefaultDependencies=no
|
||||||
|
-
|
||||||
|
-[Service]
|
||||||
|
-Type=oneshot
|
||||||
|
-# This service needs to run any time any nfs service
|
||||||
|
-# is started, so changes to local config files get
|
||||||
|
-# incorporated. Having "RemainAfterExit=no" (the default)
|
||||||
|
-# ensures this happens.
|
||||||
|
-RemainAfterExit=no
|
||||||
|
-ExecStart=/usr/libexec/nfs-utils/nfs-utils_env.sh
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/systemd/nfs-config.service.in
|
||||||
|
@@ -0,0 +1,13 @@
|
||||||
|
+[Unit]
|
||||||
|
+Description=Preprocess NFS configuration
|
||||||
|
+After=local-fs.target
|
||||||
|
+DefaultDependencies=no
|
||||||
|
+
|
||||||
|
+[Service]
|
||||||
|
+Type=oneshot
|
||||||
|
+# This service needs to run any time any nfs service
|
||||||
|
+# is started, so changes to local config files get
|
||||||
|
+# incorporated. Having "RemainAfterExit=no" (the default)
|
||||||
|
+# ensures this happens.
|
||||||
|
+RemainAfterExit=no
|
||||||
|
+ExecStart=@_libexecdir@/nfs-utils/nfs-utils_env.sh
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 21 06:16:27 UTC 2016 - nfbrown@suse.com
|
||||||
|
|
||||||
|
- 0001-Make-location-of-nfs-utils_env.sh-configurable.patch
|
||||||
|
1.3.4 moved the config script location to somewhere
|
||||||
|
that doesn't exist on openSUSE. Move it somewhere
|
||||||
|
better and install it there.
|
||||||
|
(bsc#990356)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 10 02:57:57 UTC 2016 - nfbrown@suse.com
|
Wed Aug 10 02:57:57 UTC 2016 - nfbrown@suse.com
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ Source16: nfs.service
|
|||||||
Source17: nfs-server.nfsserver.conf
|
Source17: nfs-server.nfsserver.conf
|
||||||
Source18: nfs-client.nfs.conf
|
Source18: nfs-client.nfs.conf
|
||||||
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
Patch0: nfs-utils-1.0.7-bind-syntax.patch
|
||||||
|
Patch1: 0001-Make-location-of-nfs-utils_env.sh-configurable.patch
|
||||||
BuildRequires: e2fsprogs-devel
|
BuildRequires: e2fsprogs-devel
|
||||||
BuildRequires: fedfs-utils-devel
|
BuildRequires: fedfs-utils-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -106,6 +107,7 @@ This package contains additional NFS documentation.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -a 1
|
%setup -q -a 1
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
cp %{SOURCE6} .
|
cp %{SOURCE6} .
|
||||||
|
|
||||||
@ -142,8 +144,8 @@ install -d %{buildroot}%{_unitdir}/nfs-server.service.d
|
|||||||
install -m 644 %{SOURCE17} %{buildroot}%{_unitdir}/nfs-server.service.d/nfsserver.conf
|
install -m 644 %{SOURCE17} %{buildroot}%{_unitdir}/nfs-server.service.d/nfsserver.conf
|
||||||
install -d %{buildroot}%{_unitdir}/nfs-client.target.d
|
install -d %{buildroot}%{_unitdir}/nfs-client.target.d
|
||||||
install -m 644 %{SOURCE18} %{buildroot}%{_unitdir}/nfs-client.target.d/nfs.conf
|
install -m 644 %{SOURCE18} %{buildroot}%{_unitdir}/nfs-client.target.d/nfs.conf
|
||||||
install -d %{buildroot}%{_prefix}/lib/systemd/scripts
|
install -d %{buildroot}%{_libexecdir}/nfs-utils
|
||||||
install -m 755 %{SOURCE14} %{buildroot}%{_prefix}/lib/systemd/scripts/nfs-utils_env.sh
|
install -m 755 %{SOURCE14} %{buildroot}%{_libexecdir}/nfs-utils/nfs-utils_env.sh
|
||||||
install -d %{buildroot}%{_unitdir}/nfs-config.service.d
|
install -d %{buildroot}%{_unitdir}/nfs-config.service.d
|
||||||
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/nfs-config.service.d/restart.conf
|
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/nfs-config.service.d/restart.conf
|
||||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcnfsserver
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcnfsserver
|
||||||
@ -263,8 +265,8 @@ fi
|
|||||||
%{_unitdir}/nfs-client.target.d/nfs.conf
|
%{_unitdir}/nfs-client.target.d/nfs.conf
|
||||||
%dir %{_unitdir}/nfs-config.service.d
|
%dir %{_unitdir}/nfs-config.service.d
|
||||||
%{_unitdir}/nfs-config.service.d/restart.conf
|
%{_unitdir}/nfs-config.service.d/restart.conf
|
||||||
%dir %{_libexecdir}/systemd/scripts
|
%dir %{_libexecdir}/nfs-utils
|
||||||
%{_libexecdir}/systemd/scripts/nfs-utils_env.sh
|
%{_libexecdir}/nfs-utils/nfs-utils_env.sh
|
||||||
%{_mandir}/man5/nfsmount.conf.5%{ext_man}
|
%{_mandir}/man5/nfsmount.conf.5%{ext_man}
|
||||||
%{_mandir}/man5/nfs.5%{ext_man}
|
%{_mandir}/man5/nfs.5%{ext_man}
|
||||||
%{_mandir}/man8/mount.nfs.8%{ext_man}
|
%{_mandir}/man8/mount.nfs.8%{ext_man}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user