--with-statedir=/run/nfs \
--with-rpcgen=internal
+HOST_NFS_UTILS_CONF_OPTS = \
+ --disable-nfsv4 \
+ --disable-nfsv41 \
+ --disable-gss \
+ --disable-uuid \
+ --disable-ipv6 \
+ --without-tcp-wrappers \
+ --with-statedir=/run/nfs \
+ --disable-caps \
+ --disable-tirpc \
+ --without-systemd \
+ --with-rpcgen=internal
+HOST_NFS_UTILS_DEPENDENCIES = host-pkgconf host-libtirpc
+
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPCDEBUG) += usr/sbin/rpcdebug
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_LOCKD) += usr/sbin/rpc.lockd
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD) += usr/sbin/rpc.rquotad
# nfsiostat is interpreted python, so remove it unless it's in the target
NFS_UTILS_POST_INSTALL_TARGET_HOOKS += $(if $(BR2_PACKAGE_PYTHON),,NFS_UTILS_REMOVE_NFSIOSTAT)
+define HOST_NFS_UTILS_BUILD_CMDS
+ $(MAKE) -C $(@D)/tools/rpcgen
+endef
+
+define HOST_NFS_UTILS_INSTALL_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/tools/rpcgen/rpcgen $(HOST_DIR)/bin/rpcgen
+endef
+
$(eval $(autotools-package))
+$(eval $(host-autotools-package))