2010-09-28 14:30:42 +00:00
|
|
|
SUMMARY = "userspace utilities for kernel nfs"
|
|
|
|
DESCRIPTION = "The nfs-utils package provides a daemon for the kernel \
|
|
|
|
NFS server and related tools."
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
HOMEPAGE = "http://nfs.sourceforge.net/"
|
|
|
|
SECTION = "console/network"
|
|
|
|
|
2013-01-22 05:04:26 +00:00
|
|
|
LICENSE = "MIT & GPLv2+ & BSD"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
|
|
|
# util-linux for libblkid
|
2015-12-14 13:59:29 +00:00
|
|
|
DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3 libtirpc"
|
2014-01-23 12:12:34 +00:00
|
|
|
RDEPENDS_${PN} = "${PN}-client bash"
|
2010-12-23 19:23:33 +00:00
|
|
|
RRECOMMENDS_${PN} = "kernel-module-nfsd"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
2013-11-21 08:07:24 +00:00
|
|
|
inherit useradd
|
|
|
|
|
|
|
|
USERADD_PACKAGES = "${PN}-client"
|
2013-12-19 05:35:32 +00:00
|
|
|
USERADD_PARAM_${PN}-client = "--system --home-dir /var/lib/nfs \
|
|
|
|
--shell /bin/false --user-group rpcuser"
|
2013-11-21 08:07:24 +00:00
|
|
|
|
2014-05-12 13:02:42 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.xz \
|
2013-11-16 01:22:39 +00:00
|
|
|
file://0001-configure-Allow-to-explicitly-disable-nfsidmap.patch \
|
2013-01-22 05:04:26 +00:00
|
|
|
file://nfs-utils-1.2.3-sm-notify-res_init.patch \
|
2013-09-04 11:05:02 +00:00
|
|
|
file://nfsserver \
|
2013-11-21 08:07:24 +00:00
|
|
|
file://nfscommon \
|
2013-09-04 11:05:02 +00:00
|
|
|
file://nfs-utils.conf \
|
|
|
|
file://nfs-server.service \
|
|
|
|
file://nfs-mountd.service \
|
2014-06-04 05:35:41 +00:00
|
|
|
file://nfs-statd.service \
|
2015-07-08 08:52:45 +00:00
|
|
|
file://proc-fs-nfsd.mount \
|
2014-06-12 02:23:40 +00:00
|
|
|
file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
|
2015-06-29 06:22:35 +00:00
|
|
|
file://nfs-utils-debianize-start-statd.patch \
|
2016-02-17 09:30:36 +00:00
|
|
|
file://bugfix-adjust-statd-service-name.patch \
|
2014-06-04 05:35:41 +00:00
|
|
|
"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
2016-11-23 20:41:03 +00:00
|
|
|
SRC_URI[md5sum] = "54e4119043ec8507a2a0e054cf2889a4"
|
|
|
|
SRC_URI[sha256sum] = "b42a5bc0a8d80d04650030ceb9a11f08f4acfbcb1ee297f657fb94e339c45975"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
# Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will
|
|
|
|
# pull in the remainder of the dependencies.
|
|
|
|
|
2013-11-21 08:07:24 +00:00
|
|
|
INITSCRIPT_PACKAGES = "${PN} ${PN}-client"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
INITSCRIPT_NAME = "nfsserver"
|
|
|
|
INITSCRIPT_PARAMS = "defaults"
|
2013-11-21 08:07:24 +00:00
|
|
|
INITSCRIPT_NAME_${PN}-client = "nfscommon"
|
2013-12-19 05:35:32 +00:00
|
|
|
INITSCRIPT_PARAMS_${PN}-client = "defaults 19 21"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
2014-06-02 20:04:59 +00:00
|
|
|
inherit autotools-brokensep update-rc.d systemd pkgconfig
|
2013-09-04 11:05:02 +00:00
|
|
|
|
2016-11-30 22:43:01 +00:00
|
|
|
SYSTEMD_PACKAGES = "${PN} ${PN}-client"
|
2013-11-21 08:07:24 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service"
|
|
|
|
SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
|
|
|
# --enable-uuid is need for cross-compiling
|
2014-11-07 08:47:19 +00:00
|
|
|
EXTRA_OECONF = "--with-statduser=rpcuser \
|
2013-01-22 05:04:26 +00:00
|
|
|
--enable-mountconfig \
|
|
|
|
--enable-libmount-mount \
|
|
|
|
--disable-nfsv41 \
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
--enable-uuid \
|
|
|
|
--disable-gss \
|
2013-01-22 05:04:26 +00:00
|
|
|
--disable-nfsdcltrack \
|
|
|
|
--with-statdpath=/var/lib/nfs/statd \
|
|
|
|
"
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
2016-08-22 09:06:02 +00:00
|
|
|
PACKAGECONFIG ??= "tcp-wrappers \
|
2017-02-27 13:02:50 +00:00
|
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
|
2016-08-22 09:06:02 +00:00
|
|
|
"
|
2016-01-08 09:06:40 +00:00
|
|
|
PACKAGECONFIG_remove_libc-musl = "tcp-wrappers"
|
2013-05-31 02:26:29 +00:00
|
|
|
PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers,tcp-wrappers"
|
2013-11-16 01:22:39 +00:00
|
|
|
PACKAGECONFIG[nfsidmap] = "--enable-nfsidmap,--disable-nfsidmap,keyutils"
|
2016-08-22 09:06:02 +00:00
|
|
|
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
|
2013-05-31 02:26:29 +00:00
|
|
|
|
2016-11-30 22:43:02 +00:00
|
|
|
PACKAGES =+ "${PN}-client ${PN}-mount ${PN}-stats"
|
2015-03-09 23:52:57 +00:00
|
|
|
|
|
|
|
CONFFILES_${PN}-client += "${localstatedir}/lib/nfs/etab \
|
|
|
|
${localstatedir}/lib/nfs/rmtab \
|
|
|
|
${localstatedir}/lib/nfs/xtab \
|
|
|
|
${localstatedir}/lib/nfs/statd/state \
|
|
|
|
${sysconfdir}/nfsmount.conf"
|
|
|
|
|
2016-11-30 22:43:02 +00:00
|
|
|
FILES_${PN}-client = "${sbindir}/*statd \
|
2013-11-21 08:07:24 +00:00
|
|
|
${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
|
|
|
|
${sbindir}/showmount ${sbindir}/nfsstat \
|
|
|
|
${localstatedir}/lib/nfs \
|
|
|
|
${sysconfdir}/nfs-utils.conf \
|
2015-03-09 23:52:56 +00:00
|
|
|
${sysconfdir}/nfsmount.conf \
|
2013-11-21 08:07:24 +00:00
|
|
|
${sysconfdir}/init.d/nfscommon \
|
|
|
|
${systemd_unitdir}/system/nfs-statd.service"
|
2016-11-30 22:43:02 +00:00
|
|
|
RDEPENDS_${PN}-client = "${PN}-mount rpcbind"
|
|
|
|
|
|
|
|
FILES_${PN}-mount = "${base_sbindir}/*mount.nfs*"
|
|
|
|
|
2011-10-13 11:44:13 +00:00
|
|
|
FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat"
|
2016-06-02 09:25:49 +00:00
|
|
|
RDEPENDS_${PN}-stats = "python3-core"
|
2011-10-13 11:44:13 +00:00
|
|
|
|
2015-07-08 08:52:45 +00:00
|
|
|
FILES_${PN} += "${systemd_unitdir}"
|
|
|
|
|
2015-09-04 14:59:45 +00:00
|
|
|
do_configure_prepend() {
|
|
|
|
sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \
|
|
|
|
${S}/utils/mount/Makefile.am
|
|
|
|
|
|
|
|
sed -i -e 's,sbindir = /sbin,sbindir = ${base_sbindir},g' \
|
|
|
|
${S}/utils/osd_login/Makefile.am
|
|
|
|
}
|
|
|
|
|
2013-05-15 12:32:12 +00:00
|
|
|
# Make clean needed because the package comes with
|
|
|
|
# precompiled 64-bit objects that break the build
|
|
|
|
do_compile_prepend() {
|
2013-08-13 06:52:38 +00:00
|
|
|
make clean
|
2013-05-15 12:32:12 +00:00
|
|
|
}
|
|
|
|
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
do_install_append () {
|
|
|
|
install -d ${D}${sysconfdir}/init.d
|
|
|
|
install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
|
2013-11-21 08:07:24 +00:00
|
|
|
install -m 0755 ${WORKDIR}/nfscommon ${D}${sysconfdir}/init.d/nfscommon
|
2013-09-04 11:05:02 +00:00
|
|
|
|
|
|
|
install -m 0755 ${WORKDIR}/nfs-utils.conf ${D}${sysconfdir}
|
2015-03-09 23:52:56 +00:00
|
|
|
install -m 0755 ${S}/utils/mount/nfsmount.conf ${D}${sysconfdir}
|
|
|
|
|
2013-09-04 11:05:02 +00:00
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
|
|
install -m 0644 ${WORKDIR}/nfs-server.service ${D}${systemd_unitdir}/system/
|
|
|
|
install -m 0644 ${WORKDIR}/nfs-mountd.service ${D}${systemd_unitdir}/system/
|
|
|
|
install -m 0644 ${WORKDIR}/nfs-statd.service ${D}${systemd_unitdir}/system/
|
|
|
|
sed -i -e 's,@SBINDIR@,${sbindir},g' \
|
|
|
|
-e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
|
|
|
${D}${systemd_unitdir}/system/*.service
|
2015-07-08 08:52:45 +00:00
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
|
|
install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/
|
|
|
|
install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/
|
|
|
|
ln -sf ../proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount
|
|
|
|
fi
|
2013-09-04 11:05:02 +00:00
|
|
|
|
2013-02-28 18:43:47 +00:00
|
|
|
# kernel code as of 3.8 hard-codes this path as a default
|
|
|
|
install -d ${D}/var/lib/nfs/v4recovery
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
|
2014-11-07 08:47:19 +00:00
|
|
|
# chown the directories and files
|
|
|
|
chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd
|
|
|
|
chmod 0644 ${D}${localstatedir}/lib/nfs/statd/state
|
|
|
|
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
# the following are built by CC_FOR_BUILD
|
|
|
|
rm -f ${D}${sbindir}/rpcdebug
|
|
|
|
rm -f ${D}${sbindir}/rpcgen
|
|
|
|
rm -f ${D}${sbindir}/locktest
|
2016-06-02 09:25:49 +00:00
|
|
|
|
|
|
|
# Make python tools use python 3
|
|
|
|
sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat
|
|
|
|
|
nfs-utils: upgrade to version 1.2.2
from 1.0.6
changes:
- there are several new dependencies: tirpc, libcap libgss,
libnfsimap, libevent and libwrap. disable tirpc, libgss, libwrap
- several changes are in upstream now, include the bzero change
and stat-include change, remove the patches
- a new build system is used, custom macros are now moved to aclocal/,
acinclude and rpcgen fixes are not necessary any more
- rebase uclibc patch
- enable nfsv41, nfsv3 and nfsv4 are default turned on
- do_compile is no longer needed
- the install target has changed a lot, instead of updating the file
list manually, try to use oe_runmake install for installation.
Several files are built against build environment, they are removed
from the packages.
Signed-off-by: Qing He <qing.he@intel.com>
2010-07-07 05:55:23 +00:00
|
|
|
}
|