if BR2_PACKAGE_NFS_UTILS
+config BR2_PACKAGE_NFS_UTILS_NFSV4
+ bool "NFSv4/NFSv4.1"
+ depends on !BR2_STATIC_LIBS # keyutils, lvm2
+ select BR2_PACKAGE_KEYUTILS
+ select BR2_PACKAGE_LIBEVENT
+ select BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_SQLITE
+ help
+ Enable NFSv4/NFSv4.1 support
+
config BR2_PACKAGE_NFS_UTILS_RPCDEBUG
bool "rpcdebug"
help
NFS_UTILS_CONF_ENV = knfsd_cv_bsd_signals=no
NFS_UTILS_CONF_OPTS = \
- --disable-nfsv4 \
- --disable-nfsv41 \
--disable-gss \
--enable-tirpc \
--enable-ipv6 \
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_NFSD) += usr/sbin/exportfs \
usr/sbin/rpc.mountd usr/sbin/rpc.nfsd usr/lib/systemd/system/nfs-server.service
+ifeq ($(BR2_PACKAGE_NFS_UTILS_NFSV4),y)
+NFS_UTILS_CONF_OPTS += --enable-nfsv4 --enable-nfsv41
+NFS_UTILS_DEPENDENCIES += keyutils libevent lvm2 sqlite
+else
+NFS_UTILS_CONF_OPTS += --disable-nfsv4 --disable-nfsv41
+endif
+
ifeq ($(BR2_PACKAGE_LIBCAP),y)
NFS_UTILS_CONF_OPTS += --enable-caps
NFS_UTILS_DEPENDENCIES += libcap