From patchwork Thu Mar 28 13:53:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1068229 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.133; helo=hemlock.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="lzW8WMww"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44VRCt1GvLz9sPS for ; Fri, 29 Mar 2019 00:53:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C682F84F98; Thu, 28 Mar 2019 13:53:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8jRkOxsUDVBz; Thu, 28 Mar 2019 13:53:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3CC9A84B40; Thu, 28 Mar 2019 13:53:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BB4711BF2F5 for ; Thu, 28 Mar 2019 13:53:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B5EF025C74 for ; Thu, 28 Mar 2019 13:53:20 +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 LSKTbE073oFS for ; Thu, 28 Mar 2019 13:53:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id 1712C1FEB7 for ; Thu, 28 Mar 2019 13:53:15 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id o25so3662475wmf.5 for ; Thu, 28 Mar 2019 06:53:15 -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=sfAeS9W+g9Qe6s9ip0N97FPtmolYoZxVamuIBkMlns0=; b=lzW8WMwwhROUQavT2KSAjn2+E+lnWXvylKMagCUWmHvzf6pFvGygVvEGmv2sJdSRMw 6n+i8mYBOZxHWXvJ50Bm1vy+nmuCEu2B8nXuxbc5QApieO79KO3sYclCGEqUyh2oPjtZ iKKOIPJvH6Mam/4GqUFTEFk1Y8bR7mKFUODPQ= 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=sfAeS9W+g9Qe6s9ip0N97FPtmolYoZxVamuIBkMlns0=; b=lS1v0GU1eoEdQuXV30uXPCEAVtFWPY9z1IgUi/DpB7HihmQwCG5YvJMa6vLLMSXT2e hmSGsXLp6ZXF4ALd5GIiFp4Nfwm9Lfz01IurIAsW6QGAF2iC3NLjrcO+m51+ejjwMjOo hmN4ivFUOnturytOkmx4pOQm0AM2p23bmAdGM5LiL+9YgUj7zhXxnfBuGYM6mYk2cymn HK2JhCsG1p2LlFMT93meYyOxq+7HvBlgsEa9qKxHLOrNR4D0mp37R32ud4pOBf+YBnwe YBdP7ePS4ZVFPXHV0yBoKNuMB85OhpAEeoGKV1hMqFSjwGHTVF6VbFdAflYKeJmL7GVV DVNA== X-Gm-Message-State: APjAAAUlaaZiMMcZ270IvWpvyJQ5cKg6MDG5sY/2z0xyMuxaNAykpzOU fT71xB/fZ5cVyhLFE3SyZeyxl3F5uR8= X-Google-Smtp-Source: APXvYqyVi3SFMmS0SsRuLp+ILrkmCCcx4chBEmzhK4pNL+54+UYvbzry/nOx6byCf4T8/yhGtisZJQ== X-Received: by 2002:a7b:c404:: with SMTP id k4mr50481wmi.117.1553781193146; Thu, 28 Mar 2019 06:53:13 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id u14sm2556846wrr.1.2019.03.28.06.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Mar 2019 06:53:12 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Thu, 28 Mar 2019 14:53:09 +0100 Message-Id: <1553781189-15924-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH v2] 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 --- v1->v2: Fixing minor formatting nitpick. package/nfs-utils/Config.in | 6 ++++++ package/nfs-utils/nfs-utils.mk | 2 ++ 2 files changed, 8 insertions(+) diff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in index 055b711..50c47aa 100644 --- a/package/nfs-utils/Config.in +++ b/package/nfs-utils/Config.in @@ -30,4 +30,10 @@ 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