mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] util-linux: optionally install flock
Date: Tue, 11 Feb 2020 16:25:12 +0100	[thread overview]
Message-ID: <20200211152512.GB40631@lenoch> (raw)

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 rules/util-linux-ng.in   | 11 +++++++++++
 rules/util-linux-ng.make |  3 +++
 2 files changed, 14 insertions(+)

diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index e0ddf7550..1e59c0787 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -224,6 +224,17 @@ config UTIL_LINUX_NG_UMOUNT
 comment "BusyBox' umount is selected!"
 	depends on BUSYBOX_UMOUNT
 
+config UTIL_LINUX_NG_FLOCK
+	bool
+	prompt "flock"
+	depends on !BUSYBOX_FLOCK || ALLYES
+	help
+	  The flock utility manages flock(2) locks from within
+	  shell scripts or from the command line.
+
+comment "BusyBox' flock is selected!"
+	depends on BUSYBOX_FLOCK
+
 config UTIL_LINUX_NG_FSCK
 	bool
 	prompt "fsck"
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index e3d6fd15f..81fd9c66d 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -240,6 +240,9 @@ endif
 ifdef PTXCONF_UTIL_LINUX_NG_UMOUNT
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/umount)
 endif
+ifdef PTXCONF_UTIL_LINUX_NG_FLOCK
+	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/flock)
+endif
 ifdef PTXCONF_UTIL_LINUX_NG_FSCK
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/fsck)
 endif
-- 
2.25.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2020-02-11 15:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200211152512.GB40631@lenoch \
    --to=ladis@linux-mips.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox