diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-12-12 18:47:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-28 23:25:42 +0000 |
commit | 098b39dc40e71a370ddd73e6f6707e537a012958 (patch) | |
tree | 56d15090438b76e7daaa0ba5cf784ce287231754 /meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb | |
parent | 669b0f4c55c5bf8f83d203e03115c496dd929ca6 (diff) | |
download | poky-098b39dc40e71a370ddd73e6f6707e537a012958.tar.gz |
nfs-utils: update to 2.4.2
Drop backports, and a musl patch that is no longer needed.
(From OE-Core rev: 91ab8c4ba830136116e2e9486898e683e32513d8)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb | 152 |
1 files changed, 0 insertions, 152 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb deleted file mode 100644 index eb32bccb57..0000000000 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb +++ /dev/null | |||
@@ -1,152 +0,0 @@ | |||
1 | SUMMARY = "userspace utilities for kernel nfs" | ||
2 | DESCRIPTION = "The nfs-utils package provides a daemon for the kernel \ | ||
3 | NFS server and related tools." | ||
4 | HOMEPAGE = "http://nfs.sourceforge.net/" | ||
5 | SECTION = "console/network" | ||
6 | |||
7 | LICENSE = "MIT & GPLv2+ & BSD" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" | ||
9 | |||
10 | # util-linux for libblkid | ||
11 | DEPENDS = "libcap libevent util-linux sqlite3 libtirpc" | ||
12 | RDEPENDS_${PN} = "${PN}-client" | ||
13 | RRECOMMENDS_${PN} = "kernel-module-nfsd" | ||
14 | |||
15 | inherit useradd | ||
16 | |||
17 | USERADD_PACKAGES = "${PN}-client" | ||
18 | USERADD_PARAM_${PN}-client = "--system --home-dir /var/lib/nfs \ | ||
19 | --shell /bin/false --user-group rpcuser" | ||
20 | |||
21 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.xz \ | ||
22 | file://nfsserver \ | ||
23 | file://nfscommon \ | ||
24 | file://nfs-utils.conf \ | ||
25 | file://nfs-server.service \ | ||
26 | file://nfs-mountd.service \ | ||
27 | file://nfs-statd.service \ | ||
28 | file://proc-fs-nfsd.mount \ | ||
29 | file://nfs-utils-debianize-start-statd.patch \ | ||
30 | file://bugfix-adjust-statd-service-name.patch \ | ||
31 | file://0001-cacheio-use-intmax_t-for-formatted-IO.patch \ | ||
32 | file://clang-format-string.patch \ | ||
33 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ | ||
34 | file://0001-Don-t-build-tools-with-CC_FOR_BUILD.patch \ | ||
35 | file://0001-Fix-include-order-between-config.h-and-stat.h.patch \ | ||
36 | " | ||
37 | SRC_URI_append_libc-glibc = " file://0001-configure.ac-Do-not-fatalize-Wmissing-prototypes.patch" | ||
38 | SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch" | ||
39 | |||
40 | SRC_URI[md5sum] = "161efe469ec1b06f1c750bd87f8ba6dd" | ||
41 | SRC_URI[sha256sum] = "85274ada94479b1beba9f8eeffd19f477c53a6710b9998d1192c807854087736" | ||
42 | |||
43 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will | ||
44 | # pull in the remainder of the dependencies. | ||
45 | |||
46 | INITSCRIPT_PACKAGES = "${PN} ${PN}-client" | ||
47 | INITSCRIPT_NAME = "nfsserver" | ||
48 | INITSCRIPT_PARAMS = "defaults" | ||
49 | INITSCRIPT_NAME_${PN}-client = "nfscommon" | ||
50 | INITSCRIPT_PARAMS_${PN}-client = "defaults 19 21" | ||
51 | |||
52 | inherit autotools-brokensep update-rc.d systemd pkgconfig | ||
53 | |||
54 | SYSTEMD_PACKAGES = "${PN} ${PN}-client" | ||
55 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" | ||
56 | SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" | ||
57 | |||
58 | # --enable-uuid is need for cross-compiling | ||
59 | EXTRA_OECONF = "--with-statduser=rpcuser \ | ||
60 | --enable-mountconfig \ | ||
61 | --enable-libmount-mount \ | ||
62 | --enable-uuid \ | ||
63 | --disable-gss \ | ||
64 | --disable-nfsdcltrack \ | ||
65 | --with-statdpath=/var/lib/nfs/statd \ | ||
66 | " | ||
67 | |||
68 | CFLAGS += "-Wno-error=format-overflow" | ||
69 | |||
70 | PACKAGECONFIG ??= "tcp-wrappers \ | ||
71 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ | ||
72 | " | ||
73 | PACKAGECONFIG_remove_libc-musl = "tcp-wrappers" | ||
74 | PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers" | ||
75 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
76 | # libdevmapper is available in meta-oe | ||
77 | PACKAGECONFIG[nfsv41] = "--enable-nfsv41,--disable-nfsv41,libdevmapper" | ||
78 | # keyutils is available in meta-security | ||
79 | PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils" | ||
80 | |||
81 | PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats" | ||
82 | |||
83 | CONFFILES_${PN}-client += "${localstatedir}/lib/nfs/etab \ | ||
84 | ${localstatedir}/lib/nfs/rmtab \ | ||
85 | ${localstatedir}/lib/nfs/xtab \ | ||
86 | ${localstatedir}/lib/nfs/statd/state \ | ||
87 | ${sysconfdir}/nfsmount.conf" | ||
88 | |||
89 | FILES_${PN}-client = "${sbindir}/*statd \ | ||
90 | ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \ | ||
91 | ${sbindir}/showmount ${sbindir}/nfsstat \ | ||
92 | ${localstatedir}/lib/nfs \ | ||
93 | ${sysconfdir}/nfs-utils.conf \ | ||
94 | ${sysconfdir}/nfsmount.conf \ | ||
95 | ${sysconfdir}/init.d/nfscommon \ | ||
96 | ${systemd_unitdir}/system/nfs-statd.service" | ||
97 | RDEPENDS_${PN}-client = "${PN}-mount rpcbind" | ||
98 | |||
99 | FILES_${PN}-mount = "${base_sbindir}/*mount.nfs*" | ||
100 | |||
101 | FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" | ||
102 | RDEPENDS_${PN}-stats = "python3-core" | ||
103 | |||
104 | FILES_${PN} += "${systemd_unitdir}" | ||
105 | |||
106 | do_configure_prepend() { | ||
107 | sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ | ||
108 | ${S}/utils/mount/Makefile.am | ||
109 | } | ||
110 | |||
111 | # Make clean needed because the package comes with | ||
112 | # precompiled 64-bit objects that break the build | ||
113 | do_compile_prepend() { | ||
114 | make clean | ||
115 | } | ||
116 | |||
117 | # Works on systemd only | ||
118 | HIGH_RLIMIT_NOFILE ??= "4096" | ||
119 | |||
120 | do_install_append () { | ||
121 | install -d ${D}${sysconfdir}/init.d | ||
122 | install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver | ||
123 | install -m 0755 ${WORKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon | ||
124 | |||
125 | install -m 0755 ${WORKDIR}/nfs-utils.conf ${D}${sysconfdir} | ||
126 | install -m 0755 ${S}/utils/mount/nfsmount.conf ${D}${sysconfdir} | ||
127 | |||
128 | install -d ${D}${systemd_unitdir}/system | ||
129 | install -m 0644 ${WORKDIR}/nfs-server.service ${D}${systemd_unitdir}/system/ | ||
130 | install -m 0644 ${WORKDIR}/nfs-mountd.service ${D}${systemd_unitdir}/system/ | ||
131 | install -m 0644 ${WORKDIR}/nfs-statd.service ${D}${systemd_unitdir}/system/ | ||
132 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
133 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
134 | -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \ | ||
135 | ${D}${systemd_unitdir}/system/*.service | ||
136 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
137 | install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ | ||
138 | install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ | ||
139 | ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount | ||
140 | fi | ||
141 | |||
142 | # kernel code as of 3.8 hard-codes this path as a default | ||
143 | install -d ${D}/var/lib/nfs/v4recovery | ||
144 | |||
145 | # chown the directories and files | ||
146 | chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd | ||
147 | chmod 0644 ${D}${localstatedir}/lib/nfs/statd/state | ||
148 | |||
149 | # Make python tools use python 3 | ||
150 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat | ||
151 | |||
152 | } | ||