Skip to contentSkip to conversation

package/nfs-utils: making nfs server optional

PATCH Superseded Angelo Compagnucci 1 participant 1 message Mar 28, 2019

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/nfs-utils: making nfs server optional

This patch makes nfs server component optional. This is useful when only client tools are used and not the nfs server.

---
 package/nfs-utils/Config.in    | 7 +++++++
 package/nfs-utils/nfs-utils.mk | 2 ++
 2 files changed, 9 insertions(+)
package/nfs-utils/Config.in +7 -0
index 055b711..6030476 100644
@@ -30,4 +30,11 @@ config BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD
 	help
 	  NFS remote quota server
 
+config BR2_PACKAGE_NFS_UTILS_SERVER
+        bool "server daemon"
+        default y
+        help
+          Install the NFS server daemon
+
+
 endif
package/nfs-utils/nfs-utils.mk +2 -0
index 9fa7ae2..ec39588 100644
@@ -71,6 +71,7 @@ else
 NFS_UTILS_CONF_OPTS += --without-systemd
 endif
 
+ifeq ($(BR2_PACKAGE_NFS_UTILS_SERVER),y)
 define NFS_UTILS_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 0755 package/nfs-utils/S60nfs \
 		$(TARGET_DIR)/etc/init.d/S60nfs
@@ -95,6 +96,7 @@ define NFS_UTILS_INSTALL_INIT_SYSTEMD
 	$(INSTALL) -D -m 0644 package/nfs-utils/nfs-utils_tmpfiles.conf \
 		$(TARGET_DIR)/usr/lib/tmpfiles.d/nfs-utils.conf
 endef
+endif
 
 define NFS_UTILS_REMOVE_NFSIOSTAT
 	rm -f $(TARGET_DIR)/usr/sbin/nfsiostat
Signature · 1 line
2.7.4