Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libcli: new package
@ 2015-01-14 14:58 Steve James
  2015-01-14 19:40 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Steve James @ 2015-01-14 14:58 UTC (permalink / raw)
  To: buildroot

Libcli provides a shared library for including a Cisco-like command-
line interface into other software. It's a telnet interface which
supports command-line editing, history, authentication and callbacks
for a user-definable function tree.

Signed-off-by: Steve James <ste@junkomatic.net>
---
 package/Config.in        |  1 +
 package/libcli/Config.in | 10 ++++++++++
 package/libcli/libcli.mk | 44 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 55 insertions(+)
 create mode 100644 package/libcli/Config.in
 create mode 100644 package/libcli/libcli.mk

diff --git a/package/Config.in b/package/Config.in
index f866c0d..7bd31e8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -964,6 +964,7 @@ endmenu
 menu "Text and terminal handling"
 	source "package/enchant/Config.in"
 	source "package/icu/Config.in"
+	source "package/libcli/Config.in"
 	source "package/libedit/Config.in"
 	source "package/libenca/Config.in"
 	source "package/libestr/Config.in"
diff --git a/package/libcli/Config.in b/package/libcli/Config.in
new file mode 100644
index 0000000..41d022e
--- /dev/null
+++ b/package/libcli/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBCLI
+	bool "libcli"
+	help
+	  Libcli provides a shared library for including a Cisco-like command-
+	  line interface into other software. It's a telnet interface which
+	  supports command-line editing, history, authentication and callbacks
+	  for a user-definable function tree.
+
+	  http://sites.dparrish.com/libcli
+
diff --git a/package/libcli/libcli.mk b/package/libcli/libcli.mk
new file mode 100644
index 0000000..17eed79
--- /dev/null
+++ b/package/libcli/libcli.mk
@@ -0,0 +1,44 @@
+################################################################################
+#
+# libcli
+#
+################################################################################
+
+LIBCLI_VERSION = c63c9d35144939c8b4fa3c5394aed2e29ff517b0
+LIBCLI_SITE = $(call github,dparrish,libcli,$(LIBCLI_VERSION))
+LIBCLI_LICENSE = LGPLv2.1
+LIBCLI_LICENSE_FILES = COPYING
+LIBCLI_INSTALL_STAGING = YES
+
+# We will pass optimisation level via CFLAGS so remove libcli default
+LIBCLI_MAKE_ARGS += OPTIM=
+
+# We can't run the test harness
+LIBCLI_MAKE_ARGS += TESTS=
+
+# Disable the static library for shared only build
+ifeq ($(BR2_SHARED_LIBS),y)
+LIBCLI_MAKE_ARGS += STATIC_LIB=
+endif
+
+# Disable the shared library for static only build
+ifeq ($(BR2_STATIC_LIBS),y)
+LIBCLI_MAKE_ARGS += DYNAMIC_LIB=
+endif
+
+define LIBCLI_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+		$(LIBCLI_MAKE_ARGS)
+endef
+
+define LIBCLI_INSTALL_STAGING_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+		$(LIBCLI_MAKE_ARGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr install
+endef
+
+define LIBCLI_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+		$(LIBCLI_MAKE_ARGS) DESTDIR=$(TARGET_DIR) PREFIX=/usr install
+endef
+
+$(eval $(generic-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] libcli: new package
  2015-01-14 14:58 [Buildroot] [PATCH] libcli: new package Steve James
@ 2015-01-14 19:40 ` Thomas Petazzoni
  2015-01-15 11:44   ` Steve James
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-01-14 19:40 UTC (permalink / raw)
  To: buildroot

Dear Steve James,

On Wed, 14 Jan 2015 14:58:44 +0000, Steve James wrote:
> Libcli provides a shared library for including a Cisco-like command-
> line interface into other software. It's a telnet interface which
> supports command-line editing, history, authentication and callbacks
> for a user-definable function tree.
> 
> Signed-off-by: Steve James <ste@junkomatic.net>

Thanks, applied. I only rewrapped the Config.in help text, and applied
the rest unchanged.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] libcli: new package
  2015-01-14 19:40 ` Thomas Petazzoni
@ 2015-01-15 11:44   ` Steve James
  0 siblings, 0 replies; 3+ messages in thread
From: Steve James @ 2015-01-15 11:44 UTC (permalink / raw)
  To: buildroot

On Wednesday 14 Jan 2015 19:40:01 Thomas Petazzoni wrote:
--snip-- 
> Thanks, applied. I only rewrapped the Config.in help text, and applied
> the rest unchanged.
> 
> Thanks!
> 
> Thomas

Thanks Thomas. Maybe I'm starting to get the hang of this. Also this one was 
simpler because I got my patch into upstream first.

Thanks,
Steve.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-15 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 14:58 [Buildroot] [PATCH] libcli: new package Steve James
2015-01-14 19:40 ` Thomas Petazzoni
2015-01-15 11:44   ` Steve James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox