mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 4/4] NetworkManager: add nmtui support
Date: Fri, 20 Feb 2015 10:19:03 +0100	[thread overview]
Message-ID: <1424423943-28091-5-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1424423943-28091-1-git-send-email-jbe@pengutronix.de>

WIP: doesn't work yet.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 rules/networkmanager.in   | 8 ++++++++
 rules/networkmanager.make | 5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index 2e6699e..bb7707c 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -9,6 +9,8 @@ menuconfig NETWORKMANAGER
 	select DHCP			if RUNTIME
 	select DHCP_CLIENT		if RUNTIME
 	select KERNEL_HEADER		if NETWORKMANAGER_WIRELESS
+	select NCURSES			if NETWORKMANAGER_NMTUI
+	select LIBNEWT			if NETWORKMANAGER_NMTUI
 	select DBUS
 	select DBUS_GLIB
 	select READLINE			# for 'nmcli'
@@ -44,6 +46,12 @@ config NETWORKMANAGER_NM_ONLINE
 	help
 	  Install the 'nm-online' tool to detect online state.
 
+config NETWORKMANAGER_NMTUI
+	bool
+	prompt "install nmtui"
+	help
+	  Build and install the 'nmtui' tool.
+
 config NETWORKMANAGER_SYSTEMD_UNIT
 	bool
 	default y
diff --git a/rules/networkmanager.make b/rules/networkmanager.make
index f7297e2..c47dd35 100644
--- a/rules/networkmanager.make
+++ b/rules/networkmanager.make
@@ -72,7 +72,7 @@ NETWORKMANAGER_CONF_OPT := \
 	--without-system-ca-path \
 	--with-kernel-firmware-dir=/lib/firmware \
 	--without-libsoup \
-	--without-nmtui \
+	--$(call ptx/wwo,PTXCONF_NETWORKMANAGER_NMTUI)-nmtui \
 	--without-valgrind \
 	--without-tests
 
@@ -158,6 +158,9 @@ ifdef PTXCONF_NETWORKMANAGER_NM_ONLINE
 	@$(call install_copy, networkmanager, 0, 0, 0755, -, /usr/bin/nm-online)
 endif
 	@$(call install_copy, networkmanager, 0, 0, 0755, -, /usr/bin/nmcli)
+ifdef PTXCONF_NETWORKMANAGER_NMTUI
+	@$(call install_copy, networkmanager, 0, 0, 0755, -, /usr/bin/nmtui)
+endif
 
 	@$(call install_tree, networkmanager, 0, 0, -, /usr/libexec/)
 
-- 
2.1.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2015-02-20  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20  9:18 [ptxdist] [RFC] update NetworkManager Juergen Borleis
2015-02-20  9:19 ` [ptxdist] [PATCH 1/4] libndp: add library for Neighbor Discovery Protocol Juergen Borleis
2015-02-20  9:19 ` [ptxdist] [PATCH 2/4] NetworkManager: update package Juergen Borleis
2015-02-20  9:19 ` [ptxdist] [PATCH 3/4] libnewt: windowing toolkit Juergen Borleis
2015-02-20  9:19 ` Juergen Borleis [this message]
2015-03-18 10:20 ` [ptxdist] [RFC] update NetworkManager Michael Olbrich

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=1424423943-28091-5-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --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