summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch2
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0001-locktest-Makefile.am-Do-not-use-build-flags.patch36
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch34
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0001-tools-locktest-Use-intmax_t-to-print-off_t.patch53
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service1
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service1
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service2
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_2.6.4.bb (renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.5.2.bb)77
8 files changed, 171 insertions, 35 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch
index bd350144e3..7603eb680d 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch
@@ -19,7 +19,7 @@ As there is already one source file named file.c
19as support/nsm/file.c in support/nsm/Makefile.am, 19as support/nsm/file.c in support/nsm/Makefile.am,
20so rename ../support/misc/file.c to ../support/misc/misc.c. 20so rename ../support/misc/file.c to ../support/misc/misc.c.
21 21
22Upstream-Status: Submitted[https://marc.info/?l=linux-nfs&m=154502780423058&w=2] 22Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=154502780423058&w=2]
23 23
24Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> 24Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
25 25
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-locktest-Makefile.am-Do-not-use-build-flags.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-locktest-Makefile.am-Do-not-use-build-flags.patch
new file mode 100644
index 0000000000..351407ddcd
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-locktest-Makefile.am-Do-not-use-build-flags.patch
@@ -0,0 +1,36 @@
1From 9efa7a0d37665d9bb0f46d2407883a5ab42c2b84 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 24 Jul 2023 20:39:16 -0700
4Subject: [PATCH] locktest: Makefile.am: Do not use build flags
5
6Using CFLAGS_FOR_BUILD etc. here means it is using wrong flags
7when thse flags are speficied different than target flags which
8is common when cross-building. It can pass wrong paths to linker
9and it would find incompatible libraries during link since they
10are from host system and target maybe not same as build host.
11
12Fixes subtle errors like
13| aarch64-yoe-linux-ld.lld: error: /mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nfs-utils/2.6.3-r0/recipe-sysroot-native/usr/lib/libsqlite3.so is incompatible with elf64-littleaarch64
14
15Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=169025681008001&w=2]
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 tools/locktest/Makefile.am | 3 ---
19 1 file changed, 3 deletions(-)
20
21diff --git a/tools/locktest/Makefile.am b/tools/locktest/Makefile.am
22index e8914655..2fd36971 100644
23--- a/tools/locktest/Makefile.am
24+++ b/tools/locktest/Makefile.am
25@@ -2,8 +2,5 @@
26
27 noinst_PROGRAMS = testlk
28 testlk_SOURCES = testlk.c
29-testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
30-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
31-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
32
33 MAINTAINERCLEANFILES = Makefile.in
34--
352.41.0
36
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch
new file mode 100644
index 0000000000..57d4660571
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch
@@ -0,0 +1,34 @@
1From 45597a58e98f351b18db8444292b1cf6dd0cd810 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Sat, 9 Dec 2023 23:34:08 -0800
4Subject: [PATCH] reexport.h: Include unistd.h to compile with musl
5
6Fixed error when compile with musl
7reexport.c: In function 'reexpdb_init':
8reexport.c:62:17: error: implicit declaration of function 'sleep' [-Werror=implicit-function-declaration]
9 62 | sleep(1);
10
11
12Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=170254661824522&w=2]
13
14Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
15---
16 support/reexport/reexport.h | 1 +
17 1 files changed, 1 insertions(+)
18
19diff --git a/support/reexport/reexport.h b/support/reexport/reexport.h
20index 85fd59c..02f8684 100644
21--- a/support/reexport/reexport.h
22+++ b/support/reexport/reexport.h
23@@ -1,6 +1,8 @@
24 #ifndef REEXPORT_H
25 #define REEXPORT_H
26
27+#include <unistd.h>
28+
29 #include "nfslib.h"
30
31 enum {
32--
332.42.0
34
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-tools-locktest-Use-intmax_t-to-print-off_t.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-tools-locktest-Use-intmax_t-to-print-off_t.patch
new file mode 100644
index 0000000000..7d903e04bc
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-tools-locktest-Use-intmax_t-to-print-off_t.patch
@@ -0,0 +1,53 @@
1From e2e9251dbeb452f5382179023d8ae18b511167a1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 25 Jul 2023 23:47:08 -0700
4Subject: [PATCH] tools/locktest: Use intmax_t to print off_t
5
6off_t could be 64bit on 32bit architectures which means using %z printf
7modifier is not enough to print it and compiler will complain about
8format mismatch
9
10Fixes
11| testlk.c:84:66: error: format '%zd' expects argument of type 'signed size_t', but argument 4 has type '__off64_t' {aka 'long long int'} [-Werror=format=]
12| 84 | printf("%s: conflicting lock by %d on (%zd;%zd)\n",
13| | ~~^
14| | |
15| | int
16| | %lld
17| 85 | fname, fl.l_pid, fl.l_start, fl.l_len);
18| | ~~~~~~~~~~
19| | |
20| | __off64_t {aka long long int}
21
22Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=169035457128067&w=2]
23Signed-off-by: Khem Raj <raj.khem@gmail.com>
24---
25 tools/locktest/testlk.c | 5 +++--
26 1 file changed, 3 insertions(+), 2 deletions(-)
27
28diff --git a/tools/locktest/testlk.c b/tools/locktest/testlk.c
29index ea51f788..9d4c88c4 100644
30--- a/tools/locktest/testlk.c
31+++ b/tools/locktest/testlk.c
32@@ -2,6 +2,7 @@
33 #include <config.h>
34 #endif
35
36+#include <stdint.h>
37 #include <stdlib.h>
38 #include <stdio.h>
39 #include <unistd.h>
40@@ -81,8 +82,8 @@ main(int argc, char **argv)
41 if (fl.l_type == F_UNLCK) {
42 printf("%s: no conflicting lock\n", fname);
43 } else {
44- printf("%s: conflicting lock by %d on (%zd;%zd)\n",
45- fname, fl.l_pid, fl.l_start, fl.l_len);
46+ printf("%s: conflicting lock by %d on (%jd;%jd)\n",
47+ fname, fl.l_pid, (intmax_t)fl.l_start, (intmax_t)fl.l_len);
48 }
49 return 0;
50 }
51--
522.41.0
53
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
index c01415de84..ebfe64b9ce 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service
@@ -12,6 +12,7 @@ ConditionPathExists=@SYSCONFDIR@/exports
12EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf 12EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
13ExecStart=@SBINDIR@/rpc.mountd -F $MOUNTD_OPTS 13ExecStart=@SBINDIR@/rpc.mountd -F $MOUNTD_OPTS
14LimitNOFILE=@HIGH_RLIMIT_NOFILE@ 14LimitNOFILE=@HIGH_RLIMIT_NOFILE@
15StateDirectory=nfs
15 16
16[Install] 17[Install]
17WantedBy=multi-user.target 18WantedBy=multi-user.target
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
index 5c845b7e82..15ceee04d0 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service
@@ -18,6 +18,7 @@ ExecStopPost=@SBINDIR@/exportfs -au
18ExecStopPost=@SBINDIR@/exportfs -f 18ExecStopPost=@SBINDIR@/exportfs -f
19ExecReload=@SBINDIR@/exportfs -r 19ExecReload=@SBINDIR@/exportfs -r
20RemainAfterExit=yes 20RemainAfterExit=yes
21StateDirectory=nfs
21 22
22[Install] 23[Install]
23WantedBy=multi-user.target 24WantedBy=multi-user.target
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service
index 4fa64e1998..b519194121 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-statd.service
@@ -4,11 +4,13 @@ DefaultDependencies=no
4Conflicts=umount.target 4Conflicts=umount.target
5Requires=nss-lookup.target rpcbind.service 5Requires=nss-lookup.target rpcbind.service
6After=network.target nss-lookup.target rpcbind.service 6After=network.target nss-lookup.target rpcbind.service
7ConditionPathExists=@SYSCONFDIR@/exports
7 8
8[Service] 9[Service]
9EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf 10EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
10ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS 11ExecStart=@SBINDIR@/rpc.statd -F $STATD_OPTS
11LimitNOFILE=@HIGH_RLIMIT_NOFILE@ 12LimitNOFILE=@HIGH_RLIMIT_NOFILE@
13StateDirectory=nfs
12 14
13[Install] 15[Install]
14WantedBy=multi-user.target 16WantedBy=multi-user.target
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.5.2.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.6.4.bb
index c7ac67cf31..af7a74a5fb 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.5.2.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.6.4.bb
@@ -4,18 +4,18 @@ NFS server and related tools."
4HOMEPAGE = "http://nfs.sourceforge.net/" 4HOMEPAGE = "http://nfs.sourceforge.net/"
5SECTION = "console/network" 5SECTION = "console/network"
6 6
7LICENSE = "MIT & GPLv2+ & BSD" 7LICENSE = "MIT & GPL-2.0-or-later & BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" 8LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84"
9 9
10# util-linux for libblkid 10# util-linux for libblkid
11DEPENDS = "libcap libevent util-linux sqlite3 libtirpc" 11DEPENDS = "libcap libevent util-linux sqlite3 libtirpc"
12RDEPENDS_${PN} = "${PN}-client" 12RDEPENDS:${PN} = "${PN}-client"
13RRECOMMENDS_${PN} = "kernel-module-nfsd" 13RRECOMMENDS:${PN} = "kernel-module-nfsd"
14 14
15inherit useradd 15inherit useradd
16 16
17USERADD_PACKAGES = "${PN}-client" 17USERADD_PACKAGES = "${PN}-client"
18USERADD_PARAM_${PN}-client = "--system --home-dir /var/lib/nfs \ 18USERADD_PARAM:${PN}-client = "--system --home-dir /var/lib/nfs \
19 --shell /bin/false --user-group rpcuser" 19 --shell /bin/false --user-group rpcuser"
20 20
21SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.xz \ 21SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.xz \
@@ -30,8 +30,11 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
30 file://bugfix-adjust-statd-service-name.patch \ 30 file://bugfix-adjust-statd-service-name.patch \
31 file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ 31 file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \
32 file://clang-warnings.patch \ 32 file://clang-warnings.patch \
33 file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \
34 file://0001-tools-locktest-Use-intmax_t-to-print-off_t.patch \
35 file://0001-reexport.h-Include-unistd.h-to-compile-with-musl.patch \
33 " 36 "
34SRC_URI[sha256sum] = "d493b81c9d3ffce5d10af701a63ed2b8a21768c23da4a2eceb4d708aea65d9de" 37SRC_URI[sha256sum] = "01b3b0fb9c7d0bbabf5114c736542030748c788ec2fd9734744201e9b0a1119d"
35 38
36# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will 39# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will
37# pull in the remainder of the dependencies. 40# pull in the remainder of the dependencies.
@@ -39,14 +42,14 @@ SRC_URI[sha256sum] = "d493b81c9d3ffce5d10af701a63ed2b8a21768c23da4a2eceb4d708aea
39INITSCRIPT_PACKAGES = "${PN} ${PN}-client" 42INITSCRIPT_PACKAGES = "${PN} ${PN}-client"
40INITSCRIPT_NAME = "nfsserver" 43INITSCRIPT_NAME = "nfsserver"
41INITSCRIPT_PARAMS = "defaults" 44INITSCRIPT_PARAMS = "defaults"
42INITSCRIPT_NAME_${PN}-client = "nfscommon" 45INITSCRIPT_NAME:${PN}-client = "nfscommon"
43INITSCRIPT_PARAMS_${PN}-client = "defaults 19 21" 46INITSCRIPT_PARAMS:${PN}-client = "defaults 19 21"
44 47
45inherit autotools-brokensep update-rc.d systemd pkgconfig 48inherit autotools-brokensep update-rc.d systemd pkgconfig
46 49
47SYSTEMD_PACKAGES = "${PN} ${PN}-client" 50SYSTEMD_PACKAGES = "${PN} ${PN}-client"
48SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" 51SYSTEMD_SERVICE:${PN} = "nfs-server.service nfs-mountd.service"
49SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" 52SYSTEMD_SERVICE:${PN}-client = "nfs-statd.service"
50 53
51# --enable-uuid is need for cross-compiling 54# --enable-uuid is need for cross-compiling
52EXTRA_OECONF = "--with-statduser=rpcuser \ 55EXTRA_OECONF = "--with-statduser=rpcuser \
@@ -59,10 +62,12 @@ EXTRA_OECONF = "--with-statduser=rpcuser \
59 --with-rpcgen=${HOSTTOOLS_DIR}/rpcgen \ 62 --with-rpcgen=${HOSTTOOLS_DIR}/rpcgen \
60 " 63 "
61 64
65LDFLAGS:append = " -lsqlite3 -levent"
66
62PACKAGECONFIG ??= "tcp-wrappers \ 67PACKAGECONFIG ??= "tcp-wrappers \
63 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ 68 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
64" 69"
65PACKAGECONFIG_remove_libc-musl = "tcp-wrappers" 70PACKAGECONFIG:remove:libc-musl = "tcp-wrappers"
66PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers" 71PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers"
67PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 72PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
68# libdevmapper is available in meta-oe 73# libdevmapper is available in meta-oe
@@ -70,67 +75,71 @@ PACKAGECONFIG[nfsv41] = "--enable-nfsv41,--disable-nfsv41,libdevmapper,libdevmap
70# keyutils is available in meta-oe 75# keyutils is available in meta-oe
71PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core" 76PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core"
72 77
73PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats" 78PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats ${PN}-rpcctl"
74 79
75CONFFILES_${PN}-client += "${localstatedir}/lib/nfs/etab \ 80CONFFILES:${PN}-client += "${localstatedir}/lib/nfs/etab \
76 ${localstatedir}/lib/nfs/rmtab \ 81 ${localstatedir}/lib/nfs/rmtab \
77 ${localstatedir}/lib/nfs/xtab \ 82 ${localstatedir}/lib/nfs/xtab \
78 ${localstatedir}/lib/nfs/statd/state \ 83 ${localstatedir}/lib/nfs/statd/state \
79 ${sysconfdir}/nfsmount.conf" 84 ${sysconfdir}/nfsmount.conf"
80 85
81FILES_${PN}-client = "${sbindir}/*statd \ 86FILES:${PN}-client = "${sbindir}/*statd \
87 ${libdir}/libnfsidmap.so.* \
82 ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \ 88 ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
83 ${sbindir}/showmount ${sbindir}/nfsstat \ 89 ${sbindir}/showmount ${sbindir}/nfsstat \
84 ${localstatedir}/lib/nfs \ 90 ${localstatedir}/lib/nfs \
85 ${sysconfdir}/nfs-utils.conf \ 91 ${sysconfdir}/nfs-utils.conf \
86 ${sysconfdir}/nfsmount.conf \ 92 ${sysconfdir}/nfsmount.conf \
87 ${sysconfdir}/init.d/nfscommon \ 93 ${sysconfdir}/init.d/nfscommon \
88 ${systemd_unitdir}/system/nfs-statd.service" 94 ${systemd_system_unitdir}/nfs-statd.service"
89RDEPENDS_${PN}-client = "${PN}-mount rpcbind" 95RDEPENDS:${PN}-client = "${PN}-mount rpcbind"
96
97FILES:${PN}-mount = "${base_sbindir}/*mount.nfs*"
90 98
91FILES_${PN}-mount = "${base_sbindir}/*mount.nfs*" 99FILES:${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat ${sbindir}/nfsdclnts"
100RDEPENDS:${PN}-stats = "python3-core"
92 101
93FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat ${sbindir}/nfsdclnts" 102FILES:${PN}-rpcctl = "${sbindir}/rpcctl"
94RDEPENDS_${PN}-stats = "python3-core" 103RDEPENDS:${PN}-rpcctl = "python3-core"
95 104
96FILES_${PN}-staticdev += "${libdir}/libnfsidmap/*.a" 105FILES:${PN}-staticdev += "${libdir}/libnfsidmap/*.a"
97 106
98FILES_${PN} += "${systemd_unitdir} ${libdir}/libnfsidmap/" 107FILES:${PN} += "${systemd_unitdir} ${libdir}/libnfsidmap/ ${nonarch_libdir}/modprobe.d"
99 108
100do_configure_prepend() { 109do_configure:prepend() {
101 sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ 110 sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \
102 ${S}/utils/mount/Makefile.am 111 ${S}/utils/mount/Makefile.am
103} 112}
104 113
105# Make clean needed because the package comes with 114# Make clean needed because the package comes with
106# precompiled 64-bit objects that break the build 115# precompiled 64-bit objects that break the build
107do_compile_prepend() { 116do_compile:prepend() {
108 make clean 117 make clean
109} 118}
110 119
111# Works on systemd only 120# Works on systemd only
112HIGH_RLIMIT_NOFILE ??= "4096" 121HIGH_RLIMIT_NOFILE ??= "4096"
113 122
114do_install_append () { 123do_install:append () {
115 install -d ${D}${sysconfdir}/init.d 124 install -d ${D}${sysconfdir}/init.d
116 install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver 125 install -m 0755 ${UNPACKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
117 install -m 0755 ${WORKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon 126 install -m 0755 ${UNPACKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon
118 127
119 install -m 0755 ${WORKDIR}/nfs-utils.conf ${D}${sysconfdir} 128 install -m 0755 ${UNPACKDIR}/nfs-utils.conf ${D}${sysconfdir}
120 install -m 0755 ${S}/utils/mount/nfsmount.conf ${D}${sysconfdir} 129 install -m 0755 ${S}/utils/mount/nfsmount.conf ${D}${sysconfdir}
121 130
122 install -d ${D}${systemd_unitdir}/system 131 install -d ${D}${systemd_system_unitdir}
123 install -m 0644 ${WORKDIR}/nfs-server.service ${D}${systemd_unitdir}/system/ 132 install -m 0644 ${UNPACKDIR}/nfs-server.service ${D}${systemd_system_unitdir}/
124 install -m 0644 ${WORKDIR}/nfs-mountd.service ${D}${systemd_unitdir}/system/ 133 install -m 0644 ${UNPACKDIR}/nfs-mountd.service ${D}${systemd_system_unitdir}/
125 install -m 0644 ${WORKDIR}/nfs-statd.service ${D}${systemd_unitdir}/system/ 134 install -m 0644 ${UNPACKDIR}/nfs-statd.service ${D}${systemd_system_unitdir}/
126 sed -i -e 's,@SBINDIR@,${sbindir},g' \ 135 sed -i -e 's,@SBINDIR@,${sbindir},g' \
127 -e 's,@SYSCONFDIR@,${sysconfdir},g' \ 136 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
128 -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \ 137 -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \
129 ${D}${systemd_unitdir}/system/*.service 138 ${D}${systemd_system_unitdir}/*.service
130 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 139 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
131 install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ 140 install -m 0644 ${UNPACKDIR}/proc-fs-nfsd.mount ${D}${systemd_system_unitdir}/
132 install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ 141 install -d ${D}${systemd_system_unitdir}/sysinit.target.wants/
133 ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount 142 ln -sf ../proc-fs-nfsd.mount ${D}${systemd_system_unitdir}/sysinit.target.wants/proc-fs-nfsd.mount
134 fi 143 fi
135 144
136 # kernel code as of 3.8 hard-codes this path as a default 145 # kernel code as of 3.8 hard-codes this path as a default