summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb33
1 files changed, 11 insertions, 22 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb
index df9c95a71f..f07ed2040a 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb
@@ -21,13 +21,6 @@ USERADD_PARAM:${PN}-client = "--system --home-dir /var/lib/nfs \
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 \
22 file://nfsserver \ 22 file://nfsserver \
23 file://nfscommon \ 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-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ 24 file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \
32 file://clang-warnings.patch \ 25 file://clang-warnings.patch \
33 file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ 26 file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \
@@ -48,8 +41,8 @@ INITSCRIPT_PARAMS:${PN}-client = "defaults 19 21"
48inherit autotools-brokensep update-rc.d systemd pkgconfig 41inherit autotools-brokensep update-rc.d systemd pkgconfig
49 42
50SYSTEMD_PACKAGES = "${PN} ${PN}-client" 43SYSTEMD_PACKAGES = "${PN} ${PN}-client"
51SYSTEMD_SERVICE:${PN} = "nfs-server.service nfs-mountd.service" 44SYSTEMD_SERVICE:${PN} = "nfs-server.service"
52SYSTEMD_SERVICE:${PN}-client = "nfs-statd.service" 45SYSTEMD_SERVICE:${PN}-client = "nfs-client.target"
53 46
54# --enable-uuid is need for cross-compiling 47# --enable-uuid is need for cross-compiling
55EXTRA_OECONF = "--with-statduser=rpcuser \ 48EXTRA_OECONF = "--with-statduser=rpcuser \
@@ -65,7 +58,7 @@ EXTRA_OECONF = "--with-statduser=rpcuser \
65LDFLAGS += "-lsqlite3 -levent" 58LDFLAGS += "-lsqlite3 -levent"
66 59
67PACKAGECONFIG ??= "tcp-wrappers \ 60PACKAGECONFIG ??= "tcp-wrappers \
68 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ 61 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} \
69" 62"
70PACKAGECONFIG:remove:libc-musl = "tcp-wrappers" 63PACKAGECONFIG:remove:libc-musl = "tcp-wrappers"
71PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers" 64PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers"
@@ -75,6 +68,7 @@ PACKAGECONFIG[nfsv41] = "--enable-nfsv41,--disable-nfsv41,libdevmapper,libdevmap
75# keyutils is available in meta-oe 68# keyutils is available in meta-oe
76PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core" 69PACKAGECONFIG[nfsv4] = "--enable-nfsv4,--disable-nfsv4,keyutils,python3-core"
77PACKAGECONFIG[nfsdctl] = "--enable-nfsdctl,--disable-nfsdctl,libnl readline," 70PACKAGECONFIG[nfsdctl] = "--enable-nfsdctl,--disable-nfsdctl,libnl readline,"
71PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd"
78 72
79PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats ${PN}-rpcctl" 73PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats ${PN}-rpcctl"
80 74
@@ -82,14 +76,16 @@ CONFFILES:${PN}-client += "${localstatedir}/lib/nfs/etab \
82 ${localstatedir}/lib/nfs/rmtab \ 76 ${localstatedir}/lib/nfs/rmtab \
83 ${localstatedir}/lib/nfs/xtab \ 77 ${localstatedir}/lib/nfs/xtab \
84 ${localstatedir}/lib/nfs/statd/state \ 78 ${localstatedir}/lib/nfs/statd/state \
79 ${sysconfdir}/nfs.conf \
85 ${sysconfdir}/nfsmount.conf" 80 ${sysconfdir}/nfsmount.conf"
86 81
87FILES:${PN}-client = "${sbindir}/*statd \ 82FILES:${PN}-client = "${sbindir}/*statd \
88 ${libdir}/libnfsidmap.so.* \ 83 ${libdir}/libnfsidmap.so.* \
89 ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \ 84 ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
90 ${sbindir}/showmount ${sbindir}/nfsstat \ 85 ${sbindir}/showmount ${sbindir}/nfsstat \
86 ${sbindir}/nfsconf \
91 ${localstatedir}/lib/nfs \ 87 ${localstatedir}/lib/nfs \
92 ${sysconfdir}/nfs-utils.conf \ 88 ${sysconfdir}/nfs.conf \
93 ${sysconfdir}/nfsmount.conf \ 89 ${sysconfdir}/nfsmount.conf \
94 ${sysconfdir}/init.d/nfscommon \ 90 ${sysconfdir}/init.d/nfscommon \
95 ${systemd_system_unitdir}/nfs-statd.service" 91 ${systemd_system_unitdir}/nfs-statd.service"
@@ -109,7 +105,7 @@ FILES:${PN} += "${systemd_unitdir} ${libdir}/libnfsidmap/ ${nonarch_libdir}/modp
109 105
110do_configure:prepend() { 106do_configure:prepend() {
111 sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \ 107 sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \
112 ${S}/utils/mount/Makefile.am 108 ${S}/utils/mount/Makefile.am ${S}/utils/nfsdcltrack/Makefile.am
113} 109}
114 110
115# Make clean needed because the package comes with 111# Make clean needed because the package comes with
@@ -126,18 +122,11 @@ do_install:append () {
126 install -m 0755 ${UNPACKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver 122 install -m 0755 ${UNPACKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
127 install -m 0755 ${UNPACKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon 123 install -m 0755 ${UNPACKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon
128 124
129 install -m 0755 ${UNPACKDIR}/nfs-utils.conf ${D}${sysconfdir} 125 install -m 0644 ${S}/nfs.conf ${D}${sysconfdir}
130 install -m 0755 ${S}/utils/mount/nfsmount.conf ${D}${sysconfdir}
131 126
132 install -d ${D}${systemd_system_unitdir} 127 install -d ${D}${systemd_system_unitdir}
133 install -m 0644 ${UNPACKDIR}/nfs-server.service ${D}${systemd_system_unitdir}/ 128 # Retain historical service name so old scripts keep working
134 install -m 0644 ${UNPACKDIR}/nfs-mountd.service ${D}${systemd_system_unitdir}/ 129 ln -s rpc-statd.service ${D}${systemd_system_unitdir}/nfs-statd.service
135 install -m 0644 ${UNPACKDIR}/nfs-statd.service ${D}${systemd_system_unitdir}/
136 install -m 0644 ${UNPACKDIR}/proc-fs-nfsd.mount ${D}${systemd_system_unitdir}/
137 sed -i -e 's,@SBINDIR@,${sbindir},g' \
138 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
139 -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \
140 ${D}${systemd_system_unitdir}/*.service
141 # Add compatibility symlinks for the sysvinit scripts 130 # Add compatibility symlinks for the sysvinit scripts
142 ln -s nfs-server.service ${D}${systemd_system_unitdir}/nfsserver.service 131 ln -s nfs-server.service ${D}${systemd_system_unitdir}/nfsserver.service
143 ln -s /dev/null ${D}${systemd_system_unitdir}/nfscommon.service 132 ln -s /dev/null ${D}${systemd_system_unitdir}/nfscommon.service