From patchwork Thu Mar 28 13:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1068226 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="EOtIfcK0"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44VR9v4qW8z9sRR for ; Fri, 29 Mar 2019 00:51:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AA5802670B; Thu, 28 Mar 2019 13:51:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DxHiab0fVAG7; Thu, 28 Mar 2019 13:51:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3B39725C74; Thu, 28 Mar 2019 13:51:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id CB3341BF2F5 for ; Thu, 28 Mar 2019 13:51:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C851985E74 for ; Thu, 28 Mar 2019 13:51:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xR4CFc9djV3G for ; Thu, 28 Mar 2019 13:51:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3980A85E35 for ; Thu, 28 Mar 2019 13:51:32 +0000 (UTC) Received: by mail-wm1-f52.google.com with SMTP id 4so3682285wmf.1 for ; Thu, 28 Mar 2019 06:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=Xl4n+PnKvZvEj681qshmt5U1T0WaYqerrm7XL9vRjNE=; b=EOtIfcK0F5TTbyBzQbXej1tPiQlFbBi1G1ibgaUXHyLtAOwJbLjMqB7zGaH6ALodil Udpx9IGHyxVN7ZnRCBomwApmk3BugCPir24zh6CeE9zAP4zEEr7IYwLy0ajQ/0l1MOef t/q4g+OFSnmUjgCO8fAvOFMtUo5sQieeFSnIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Xl4n+PnKvZvEj681qshmt5U1T0WaYqerrm7XL9vRjNE=; b=ZmuIAlrggrExVkS47Pi3828TGs0cuyq4c/lo4TwO6NRAVhL025SNsdR7spdmIMVS+n 3QUlH1iHjcziHaG2we5JI0UCtLrrWiq5rMXnDDMpCp50dtGJra18rjkUEIztOHjK8U8I /1gUOpKNj4x3DZC+AzhWSLpqYtYf0xOkcB64L4/StW+fzFpvam+HmK5vsc5X0zalITNi CnYko/gJ09qk6amty0PZrV5fdzZLvprfcjUUe+kS1Um4e+S4e4v7nTyfBln7Jo9fJcko 8xFyBqJUQaOaQ9vJRSxAduAuW5kTZn3H9TWRV8uLKTdx4K9TU2aeE3bVU6ym3pkk3Gv5 t7pw== X-Gm-Message-State: APjAAAVXuozzbfGVNd23UOJEsun5aLNzkGYyeVc1xcRDZ8ZeNr+S2/6S CDkfW4r7FzPpvC/kBb4l1I6E/TX8GIw= X-Google-Smtp-Source: APXvYqwLdByV5VEihCMr2Y4MSuTTSlF3BhU4MAFwQs6HTdyEKRREJaTQECSxLy33Ytjlv7RsnKoiPg== X-Received: by 2002:a1c:1dc3:: with SMTP id d186mr78979wmd.64.1553781090351; Thu, 28 Mar 2019 06:51:30 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id c20sm33037771wre.28.2019.03.28.06.51.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Mar 2019 06:51:29 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Thu, 28 Mar 2019 14:51:26 +0100 Message-Id: <1553781086-10979-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] package/nfs-utils: making nfs server optional X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch makes nfs server component optional. This is useful when only client tools are used and not the nfs server. Signed-off-by: Angelo Compagnucci --- package/nfs-utils/Config.in | 7 +++++++ package/nfs-utils/nfs-utils.mk | 2 ++ 2 files changed, 9 insertions(+) diff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in index 055b711..6030476 100644 --- a/package/nfs-utils/Config.in +++ b/package/nfs-utils/Config.in @@ -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 diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk index 9fa7ae2..ec39588 100644 --- a/package/nfs-utils/nfs-utils.mk +++ b/package/nfs-utils/nfs-utils.mk @@ -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