package/nfs-utils: Add optional GSS support
authorJames Hilliard <james.hilliard1@gmail.com>
Sun, 18 Jul 2021 20:44:06 +0000 (14:44 -0600)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 25 Jul 2021 16:19:48 +0000 (18:19 +0200)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/nfs-utils/Config.in
package/nfs-utils/nfs-utils.mk

index bd1e091331756e535c12e70e5940a17fc8423ab4..f2997b9c91f1dfbdce6df2c057bb8530ca4e2da8 100644 (file)
@@ -26,6 +26,13 @@ config BR2_PACKAGE_NFS_UTILS_NFSV4
        help
          Enable NFSv4/NFSv4.1 support
 
+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
index 0b4bca47727c39b1adc6b9c3b6d570bde9f40b60..763dd57acea41a02438b6d4a9ab508b88f767f2d 100644 (file)
@@ -16,7 +16,6 @@ NFS_UTILS_AUTORECONF = YES
 NFS_UTILS_CONF_ENV = knfsd_cv_bsd_signals=no
 
 NFS_UTILS_CONF_OPTS = \
-       --disable-gss \
        --enable-tirpc \
        --enable-ipv6 \
        --without-tcp-wrappers \
@@ -52,6 +51,16 @@ else
 NFS_UTILS_CONF_OPTS += --disable-nfsv4 --disable-nfsv41
 endif
 
+ifeq ($(BR2_PACKAGE_NFS_UTILS_GSS),y)
+NFS_UTILS_CONF_OPTS += \
+       --enable-gss \
+       --enable-svcgss \
+       --with-krb5=$(STAGING_DIR)/usr
+NFS_UTILS_DEPENDENCIES += libkrb5
+else
+NFS_UTILS_CONF_OPTS += --disable-gss --disable-svcgss
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 NFS_UTILS_CONF_OPTS += --enable-caps
 NFS_UTILS_DEPENDENCIES += libcap