diff options
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.9.bb')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.9.bb | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.9.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.9.bb index ea4914670b..cbfb7c1331 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.9.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.9.bb | |||
@@ -9,14 +9,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" | |||
9 | 9 | ||
10 | # util-linux for libblkid | 10 | # util-linux for libblkid |
11 | DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3" | 11 | DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3" |
12 | RDEPENDS_${PN} = "rpcbind" | 12 | RDEPENDS_${PN}-client = "rpcbind" |
13 | RDEPENDS_${PN} = "${PN}-client" | ||
13 | RRECOMMENDS_${PN} = "kernel-module-nfsd" | 14 | RRECOMMENDS_${PN} = "kernel-module-nfsd" |
14 | 15 | ||
16 | inherit useradd | ||
17 | |||
18 | USERADD_PACKAGES = "${PN}-client" | ||
19 | USERADD_PARAM_${PN}-client = "-d /var/lib/nfs -r -s /bin/false rpcuser" | ||
20 | |||
15 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.bz2 \ | 21 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.bz2 \ |
16 | file://0001-configure-Allow-to-explicitly-disable-nfsidmap.patch \ | 22 | file://0001-configure-Allow-to-explicitly-disable-nfsidmap.patch \ |
17 | file://nfs-utils-1.0.6-uclibc.patch \ | 23 | file://nfs-utils-1.0.6-uclibc.patch \ |
18 | file://nfs-utils-1.2.3-sm-notify-res_init.patch \ | 24 | file://nfs-utils-1.2.3-sm-notify-res_init.patch \ |
19 | file://nfsserver \ | 25 | file://nfsserver \ |
26 | file://nfscommon \ | ||
20 | file://nfs-utils.conf \ | 27 | file://nfs-utils.conf \ |
21 | file://nfs-server.service \ | 28 | file://nfs-server.service \ |
22 | file://nfs-mountd.service \ | 29 | file://nfs-mountd.service \ |
@@ -30,15 +37,16 @@ PARALLEL_MAKE = "" | |||
30 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will | 37 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will |
31 | # pull in the remainder of the dependencies. | 38 | # pull in the remainder of the dependencies. |
32 | 39 | ||
40 | INITSCRIPT_PACKAGES = "${PN} ${PN}-client" | ||
33 | INITSCRIPT_NAME = "nfsserver" | 41 | INITSCRIPT_NAME = "nfsserver" |
34 | # The server has no dependencies at the user run levels, so just put | ||
35 | # it in at the default levels. It must be terminated before the network | ||
36 | # in the shutdown levels, but that works fine. | ||
37 | INITSCRIPT_PARAMS = "defaults" | 42 | INITSCRIPT_PARAMS = "defaults" |
43 | INITSCRIPT_NAME_${PN}-client = "nfscommon" | ||
44 | INITSCRIPT_PARAMS_${PN}-client = "start 44 S ." | ||
38 | 45 | ||
39 | inherit autotools update-rc.d systemd | 46 | inherit autotools update-rc.d systemd |
40 | 47 | ||
41 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service nfs-statd.service" | 48 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" |
49 | SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" | ||
42 | SYSTEMD_AUTO_ENABLE = "disable" | 50 | SYSTEMD_AUTO_ENABLE = "disable" |
43 | 51 | ||
44 | # --enable-uuid is need for cross-compiling | 52 | # --enable-uuid is need for cross-compiling |
@@ -60,7 +68,13 @@ PACKAGECONFIG[nfsidmap] = "--enable-nfsidmap,--disable-nfsidmap,keyutils" | |||
60 | INHIBIT_AUTO_STAGE = "1" | 68 | INHIBIT_AUTO_STAGE = "1" |
61 | 69 | ||
62 | PACKAGES =+ "${PN}-client ${PN}-stats" | 70 | PACKAGES =+ "${PN}-client ${PN}-stats" |
63 | FILES_${PN}-client = "${base_sbindir}/*mount.nfs*" | 71 | FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \ |
72 | ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \ | ||
73 | ${sbindir}/showmount ${sbindir}/nfsstat \ | ||
74 | ${localstatedir}/lib/nfs \ | ||
75 | ${sysconfdir}/nfs-utils.conf \ | ||
76 | ${sysconfdir}/init.d/nfscommon \ | ||
77 | ${systemd_unitdir}/system/nfs-statd.service" | ||
64 | FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" | 78 | FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" |
65 | RDEPENDS_${PN}-stats = "python" | 79 | RDEPENDS_${PN}-stats = "python" |
66 | 80 | ||
@@ -74,6 +88,7 @@ do_install_append () { | |||
74 | install -d ${D}${sysconfdir}/init.d | 88 | install -d ${D}${sysconfdir}/init.d |
75 | install -d ${D}${localstatedir}/lib/nfs/statd | 89 | install -d ${D}${localstatedir}/lib/nfs/statd |
76 | install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver | 90 | install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver |
91 | install -m 0755 ${WORKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon | ||
77 | 92 | ||
78 | install -m 0755 ${WORKDIR}/nfs-utils.conf ${D}${sysconfdir} | 93 | install -m 0755 ${WORKDIR}/nfs-utils.conf ${D}${sysconfdir} |
79 | install -d ${D}${systemd_unitdir}/system | 94 | install -d ${D}${systemd_unitdir}/system |