comment "nfs-utils needs a toolchain w/ threads, headers >= 3.17"
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17

config BR2_PACKAGE_NFS_UTILS
	bool "nfs-utils"
	depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc, rpcbind
	depends on BR2_USE_MMU # fork()
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
	select BR2_PACKAGE_LIBEVENT
	select BR2_PACKAGE_LIBNL
	select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
	select BR2_PACKAGE_LIBTIRPC_RPCDB
	select BR2_PACKAGE_SQLITE
	select BR2_PACKAGE_UTIL_LINUX
	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
	select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
	help
	  The NFS Linux kernel server.

	  Supports NFSv3 and optionally NFSv4 (and later).

	  http://linux-nfs.org/

if BR2_PACKAGE_NFS_UTILS

config BR2_PACKAGE_NFS_UTILS_NFSV4
	bool "NFSv4/NFSv4.1"
	depends on !BR2_STATIC_LIBS # keyutils
	select BR2_PACKAGE_KEYUTILS
	select BR2_PACKAGE_LVM2
	help
	  Enable NFSv4/NFSv4.1/NFSv4.2 support

comment "NFSv4/NFSv4.1 support needs a toolchain w/ dynamic library"
	depends on BR2_STATIC_LIBS

config BR2_PACKAGE_NFS_UTILS_GSS
	bool "gss"
	depends on BR2_PACKAGE_NFS_UTILS_NFSV4
	select BR2_PACKAGE_LIBTIRPC_GSS
	help
	  Enable GSS support

config BR2_PACKAGE_NFS_UTILS_RPCDEBUG
	bool "rpcdebug"
	help
	  The RPC debugging utility

config BR2_PACKAGE_NFS_UTILS_RPC_LOCKD
	bool "rpc.lockd"
	help
	  NFS lock manager for Linux kernels older than 2.4

config BR2_PACKAGE_NFS_UTILS_RPC_NFSD
	bool "rpc.nfsd"
	default y
	select BR2_PACKAGE_RPCBIND # runtime
	help
	  NFS server

config BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD
	bool "rpc.rquotad"
	help
	  NFS remote quota server

endif
