nfs-utils: debianize start-statd

Submitted by Li Wang on Sept. 9, 2014, 10:20 a.m. | Patch ID: 80187

Details

Message ID 1410258023-4285-1-git-send-email-li.wang@windriver.com
State New
Headers show

Commit Message

Li Wang Sept. 9, 2014, 10:20 a.m.
make start-statd command to use nfscommon configure, too.

Signed-off-by: Henrik Riomar <henrik.riomar@ericsson.com>
Signed-off-by: Li Wang <li.wang@windriver.com>
---
 .../files/nfs-utils-debianize-start-statd.patch    |   36 ++++++++++++++++++++
 .../nfs-utils/nfs-utils_1.2.8.bb                   |    1 +
 2 files changed, 37 insertions(+)
 create mode 100644 meta/recipes-connectivity/nfs-utils/files/nfs-utils-debianize-start-statd.patch

Patch hide | download patch | download mbox

diff --git a/meta/recipes-connectivity/nfs-utils/files/nfs-utils-debianize-start-statd.patch b/meta/recipes-connectivity/nfs-utils/files/nfs-utils-debianize-start-statd.patch
new file mode 100644
index 0000000..a9894f9
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/files/nfs-utils-debianize-start-statd.patch
@@ -0,0 +1,36 @@ 
+From aa7c38e728cffa33085991bb9b041793759fb9d9 Mon Sep 17 00:00:00 2001
+From: Li Wang <li.wang@windriver.com>
+Date: Fri, 5 Sep 2014 01:39:10 +0800
+Subject: [PATCH] nfs-utils: debianize start-statd
+
+make start-statd command to use nfscommon configure, too.
+
+Signed-off-by: Henrik Riomar <henrik.riomar@ericsson.com>
+Signed-off-by: Li Wang <li.wang@windriver.com>
+---
+ utils/statd/start-statd |   10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/utils/statd/start-statd b/utils/statd/start-statd
+index c7805ee..78a5525 100644
+--- a/utils/statd/start-statd
++++ b/utils/statd/start-statd
+@@ -4,6 +4,14 @@
+ # /var/run/rpc.statd.pid).
+ # It should run run statd with whatever flags are apropriate for this
+ # site.
++
++# Read config
++DEFAULTFILE=/etc/default/nfs-common
++NEED_IDMAPD=
++if [ -f $DEFAULTFILE ]; then
++    . $DEFAULTFILE
++fi
++
+ PATH=/sbin:/usr/sbin
+-exec rpc.statd --no-notify
++exec rpc.statd --no-notify $STATDOPTS
+ 
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
index fde8776..1e89123 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
@@ -16,6 +16,7 @@  RRECOMMENDS_${PN} = "kernel-module-nfsd"
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.bz2 \
            file://nfs-utils-1.0.6-uclibc.patch \
            file://nfs-utils-1.2.3-sm-notify-res_init.patch \
+           file://nfs-utils-debianize-start-statd.patch \
            file://nfsserver \
            file://nfscommon \
            file://nfs-utils.conf \