nfs-utils: Bump version
PATCH 1/2 nfs-utils: Bump version
Remove patch as it was backported from upstream:
http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=17a3e5bffb7110d46de1bf42b64b90713ff5ea50
Signed-off-by Maxime Hadjinlian <[email protected]>
--- .../0004-statd-Fix-test-for-foreground-mode.patch | 30 ---------------------- package/nfs-utils/nfs-utils.hash | 4 +-- package/nfs-utils/nfs-utils.mk | 2 +- 3 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 package/nfs-utils/0004-statd-Fix-test-for-foreground-mode.patch
package/nfs-utils/0004-statd-Fix-test-for-foreground-mode.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From ca1fd7153937e147f66d1ca3edbe9c2615f33880 Mon Sep 17 00:00:00 2001 -From: Chris Mayo <[email protected]> -Date: Sun, 1 Feb 2015 12:03:46 -0500 -Subject: [PATCH] statd: Fix test for foreground mode - -daemon_init parameter has the opposite sense -to code removed in commit 7addf9d - -Signed-off-by: Chris Mayo <[email protected]> -Signed-off-by: Steve Dickson <[email protected]> ---- - utils/statd/statd.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/utils/statd/statd.c b/utils/statd/statd.c -index 60ce6d1..2b7a167 100644 ---- a/utils/statd/statd.c -+++ b/utils/statd/statd.c -@@ -393,7 +393,7 @@ int main (int argc, char **argv) - simulator (--argc, ++argv); /* simulator() does exit() */ - #endif - -- daemon_init(!(run_mode & MODE_NODAEMON)); -+ daemon_init((run_mode & MODE_NODAEMON)); - - if (run_mode & MODE_LOG_STDERR) { - xlog_syslog(0); --- -2.4.5 -
package/nfs-utils/nfs-utils.hash +2 -2
@@ -1,2 +1,2 @@ -# From https://www.kernel.org/pub/linux/utils/nfs-utils/1.3.2/sha256sums.asc -sha256 2966bb431c06e9ba35a54f48f89db03a5132bc2d8ed8084ac8ccb34e25a9b739 nfs-utils-1.3.2.tar.xz +# From https://www.kernel.org/pub/linux/utils/nfs-utils/1.3.3/sha256sums.asc +sha256 700d689c5622c87953c34102e5befafc4d3c811e676852238f0dd79c9c0c084d nfs-utils-1.3.3.tar.xz
package/nfs-utils/nfs-utils.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -NFS_UTILS_VERSION = 1.3.2 +NFS_UTILS_VERSION = 1.3.3 NFS_UTILS_SOURCE = nfs-utils-$(NFS_UTILS_VERSION).tar.xz NFS_UTILS_SITE = https://www.kernel.org/pub/linux/utils/nfs-utils/$(NFS_UTILS_VERSION) NFS_UTILS_LICENSE = GPLv2+
Signature · 1 line
2.5.3
PATCH 2/2 nfs-utils: systemd support
From: Aur?lien Chabot <[email protected]>
nfs-utils has been patched to install only the needed systemd unit files supported.
Also tmpfiles was needed because the folder /run/nfs is a tmpfs and nfs-utils need some files to be there to work correctly.
[Maxime: Remove patches included originally in the patch as they have have been merged upstream in v1.3.3]
Signed-off-by Maxime Hadjinlian <[email protected]>
---
v1 -> v2:
- Remove the added patch since the previous patch bump nfs_utils which have them already in the tree.
--- package/nfs-utils/nfs-utils.mk | 27 +++++++++++++++++++++++++++ package/nfs-utils/nfs-utils_env.sh | 1 + package/nfs-utils/nfs-utils_tmpfiles.conf | 4 ++++ 3 files changed, 32 insertions(+) create mode 100755 package/nfs-utils/nfs-utils_env.sh create mode 100644 package/nfs-utils/nfs-utils_tmpfiles.conf
package/nfs-utils/nfs-utils.mk +27 -0
@@ -41,11 +41,38 @@ define NFS_UTILS_INSTALL_FIXUP endef NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP +ifeq ($(BR2_INIT_SYSTEMD),y) + NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system + NFS_UTILS_DEPENDENCIES += systemd +else + NFS_UTILS_CONF_OPTS += --without-systemd +endif + define NFS_UTILS_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/nfs-utils/S60nfs \ $(TARGET_DIR)/etc/init.d/S60nfs endef +define NFS_UTILS_INSTALL_INIT_SYSTEMD + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + + ln -fs ../../../../usr/lib/systemd/system/nfs-server.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nfs-server.service + ln -fs ../../../../usr/lib/systemd/system/nfs-client.target \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/nfs-client.target + + mkdir -p $(TARGET_DIR)/etc/systemd/system/remote-fs.target.wants + + ln -fs ../../../../usr/lib/systemd/system/nfs-client.target \ + $(TARGET_DIR)/etc/systemd/system/remote-fs.target.wants/nfs-client.target + + $(INSTALL) -D -m 0755 package/nfs-utils/nfs-utils_env.sh \ + $(TARGET_DIR)/usr/lib/systemd/scripts/nfs-utils_env.sh + + $(INSTALL) -D -m 0644 package/nfs-utils/nfs-utils_tmpfiles.conf \ + $(TARGET_DIR)/usr/lib/tmpfiles.d/nfs-utils.conf +endef + define NFS_UTILS_REMOVE_NFSIOSTAT rm -f $(TARGET_DIR)/usr/sbin/nfsiostat endef
package/nfs-utils/nfs-utils_env.sh new file +1 -0
@@ -0,0 +1 @@ +#!/bin/sh
package/nfs-utils/nfs-utils_tmpfiles.conf new file +4 -0
@@ -0,0 +1,4 @@ +d /run/nfs/sm 0700 root root - +d /run/nfs/sm.bak 0700 root root - +f /run/nfs/rmtab 0644 root root - +f /run/nfs/etab 0644 root root -
Signature · 1 line
2.5.3
PATCH 2/2 nfs-utils: systemd support
Dear Maxime Hadjinlian,
Quoted 15 lines · Maxime Hadjinlian
From: Aur?lien Chabot <[email protected]>
nfs-utils has been patched to install only the needed systemd unit files supported.
Also tmpfiles was needed because the folder/run/nfsis a tmpfs and nfs-utils need some files to be there to work correctly.Signed-off-by Aur?lien Chabot <[email protected]>[Maxime: Remove patches included originally in the patch as they have have been merged upstream in v1.3.3]
Signed-off-by Maxime Hadjinlian <[email protected]>
---
v1 -> v2:
- Remove the added patch since the previous patch bumpnfs_utilswhich have them already in the tree.
Quoted 7 lines
--- package/nfs-utils/nfs-utils.mk | 27 +++++++++++++++++++++++++++ package/nfs-utils/nfs-utils_env.sh | 1 + package/nfs-utils/nfs-utils_tmpfiles.conf | 4 ++++ 3 files changed, 32 insertions(+) create mode 100755 package/nfs-utils/nfs-utils_env.sh create mode 100644 package/nfs-utils/nfs-utils_tmpfiles.conf
Applied with some changes:
[Thomas:
- add comment in nfs-utils_env.sh to explain why an empty script is needed.
- remove incorrect indentation.]
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Thomas Petazzoni
AppliedPATCH 1/2 nfs-utils: Bump version
In reply to Maxime HadjinlianDear Maxime Hadjinlian,
Quoted 10 lines · Maxime Hadjinlian
Remove patch as it was backported from upstream:
http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=17a3e5bffb7110d46de1bf42b64b90713ff5ea50Signed-off-by Maxime Hadjinlian <[email protected]>
--- .../0004-statd-Fix-test-for-foreground-mode.patch | 30 ---------------------- package/nfs-utils/nfs-utils.hash | 4 +-- package/nfs-utils/nfs-utils.mk | 2 +- 3 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 package/nfs-utils/0004-statd-Fix-test-for-foreground-mode.patch
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com