package/nfs-utils: enable nfsv4/nfsv4.1 support
authorJames Hilliard <james.hilliard1@gmail.com>
Thu, 15 Jul 2021 03:13:14 +0000 (21:13 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 15 Jul 2021 21:07:04 +0000 (23:07 +0200)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/nfs-utils/Config.in
package/nfs-utils/nfs-utils.mk

index da563db0f1e1b7c45c366a610a3b1188697baee1..b736f6c973f9deb4cfe37ad484ad7b1e07f6ee4c 100644 (file)
@@ -14,6 +14,16 @@ config BR2_PACKAGE_NFS_UTILS
 
 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
index 80e6ad0ddcab20b82533cfa326799e05b21d72e4..ab000e1ead7bc10da297d7ae0a4efe0051243781 100644 (file)
@@ -16,8 +16,6 @@ NFS_UTILS_AUTORECONF = YES
 NFS_UTILS_CONF_ENV = knfsd_cv_bsd_signals=no
 
 NFS_UTILS_CONF_OPTS = \
-       --disable-nfsv4 \
-       --disable-nfsv41 \
        --disable-gss \
        --enable-tirpc \
        --enable-ipv6 \
@@ -45,6 +43,13 @@ NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD) += usr/sbin/rpc.rquotad
 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