Skip to contentSkip to conversation

nfs-utils: debianize start-statd

PATCH New Li Wang 1 participant 1 message Sep 9, 2014

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 nfs-utils: debianize start-statd

make start-statd command to use nfscommon configure, too.

---
 .../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
meta/recipes-connectivity/nfs-utils/files/nfs-utils-debianize-start-statd.patch new file +36 -0
new file mode 100644
index 0000000..a9894f9
@@ -0,0 +1,36 @@
+From aa7c38e728cffa33085991bb9b041793759fb9d9 Mon Sep 17 00:00:00 2001
+From: Li Wang <[email protected]>
+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 <[email protected]>
+Signed-off-by: Li Wang <[email protected]>
+---
+ 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
+
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb +1 -0
index fde8776..1e89123 100644
@@ -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 \
Signature · 1 line
1.7.9.5