package/nfs-utils: enable optional uuid support
authorJames Hilliard <james.hilliard1@gmail.com>
Wed, 14 Jul 2021 23:17:02 +0000 (17:17 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 15 Jul 2021 20:42:41 +0000 (22:42 +0200)
Enable when libuuid and libblkid are available.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/nfs-utils/nfs-utils.mk

index d6408ee8f7ac0608f683d66d868cba959b19c99b..80e6ad0ddcab20b82533cfa326799e05b21d72e4 100644 (file)
@@ -19,7 +19,6 @@ NFS_UTILS_CONF_OPTS = \
        --disable-nfsv4 \
        --disable-nfsv41 \
        --disable-gss \
-       --disable-uuid \
        --enable-tirpc \
        --enable-ipv6 \
        --without-tcp-wrappers \
@@ -53,6 +52,13 @@ else
 NFS_UTILS_CONF_OPTS += --disable-caps
 endif
 
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBBLKID)$(BR2_PACKAGE_UTIL_LINUX_LIBUUID),yy)
+NFS_UTILS_CONF_OPTS += --enable-uuid
+NFS_UTILS_DEPENDENCIES += util-linux
+else
+NFS_UTILS_CONF_OPTS += --disable-uuid
+endif
+
 define NFS_UTILS_INSTALL_FIXUP
        cd $(TARGET_DIR) && rm -f $(NFS_UTILS_TARGETS_)
        touch $(TARGET_DIR)/etc/exports