Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] mosh: new package
@ 2015-07-23  0:24 Christian Stewart
  2015-07-23  5:22 ` Baruch Siach
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Stewart @ 2015-07-23  0:24 UTC (permalink / raw)
  To: buildroot

Adding mosh, the mobile shell.

Signed-off-by: Christian Stewart <christian@paral.in>
---
 package/Config.in                                  |  1 +
 package/mosh/0001-use-version-from-buildroot.patch | 23 ++++++++++++++++++++++
 package/mosh/Config.in                             | 13 ++++++++++++
 package/mosh/mosh.hash                             |  1 +
 package/mosh/mosh.mk                               | 15 ++++++++++++++
 5 files changed, 53 insertions(+)
 create mode 100644 package/mosh/0001-use-version-from-buildroot.patch
 create mode 100644 package/mosh/Config.in
 create mode 100644 package/mosh/mosh.hash
 create mode 100644 package/mosh/mosh.mk

diff --git a/package/Config.in b/package/Config.in
index 9942e3a..91fb08a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1248,6 +1248,7 @@ endif
 	source "package/mongoose/Config.in"
 	source "package/mongrel2/Config.in"
 	source "package/monkey/Config.in"
+	source "package/mosh/Config.in"
 	source "package/mosquitto/Config.in"
 	source "package/mrouted/Config.in"
 	source "package/mtr/Config.in"
diff --git a/package/mosh/0001-use-version-from-buildroot.patch b/package/mosh/0001-use-version-from-buildroot.patch
new file mode 100644
index 0000000..2d79eb2
--- /dev/null
+++ b/package/mosh/0001-use-version-from-buildroot.patch
@@ -0,0 +1,23 @@
+Alter the Makefile to use Buildroot's VERSION string.
+
+Signed-off-by: Christian Stewart <christian@paral.in>
+
+diff -Nau mosh.orig/Makefile.am mosh/Makefile.am
+--- mosh.orig/Makefile.am.orig	2015-07-22 16:55:42.523086477 -0700
++++ mosh/Makefile.am	2015-07-22 16:56:13.615085453 -0700
+@@ -8,14 +8,7 @@
+ .PHONY:	VERSION
+ 
+ VERSION:
+-	@set -e; if [ ! -f VERSION ]; then echo @PACKAGE_STRING@ > VERSION; fi
+-	@set -e; if git status > /dev/null 2>&1; then \
+-		git describe --dirty > VERSION.new;  \
+-		if ! diff -q VERSION VERSION.new > /dev/null 2>&1; then \
+-			mv -f VERSION.new VERSION; \
+-		fi; \
+-	fi
+-	@rm -f VERSION.new
++	@echo $(VERSION) > VERSION
+ 
+ version.h:	VERSION
+ 	@printf '#define BUILD_VERSION "%s"\n' "$$(cat VERSION)" > version.h.new
diff --git a/package/mosh/Config.in b/package/mosh/Config.in
new file mode 100644
index 0000000..53db04b
--- /dev/null
+++ b/package/mosh/Config.in
@@ -0,0 +1,13 @@
+comment "mosh needs openssh to be built"
+	depends on !BR2_PACKAGE_OPENSSH
+
+config BR2_PACKAGE_MOSH
+	bool "mosh"
+	depends on BR2_PACKAGE_OPENSSH
+	select BR2_PACKAGE_PROTOBUF
+	help
+	  Remote terminal application that supports intermittent connectivity,
+	  allows roaming, and provides speculative local echo and line editing
+	  of user keystrokes.
+
+	  https://github.com/keithw/mosh
diff --git a/package/mosh/mosh.hash b/package/mosh/mosh.hash
new file mode 100644
index 0000000..4121d36
--- /dev/null
+++ b/package/mosh/mosh.hash
@@ -0,0 +1 @@
+sha256 56571fb1cb9c9714013ab0fc813863d58e0f5c7d320430aa05df952295e046a7  mosh-1.2.4.95rc2.tar.gz
diff --git a/package/mosh/mosh.mk b/package/mosh/mosh.mk
new file mode 100644
index 0000000..8ad4da9
--- /dev/null
+++ b/package/mosh/mosh.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# mosh
+#
+################################################################################
+
+MOSH_VERSION = 1.2.4.95rc2
+MOSH_SITE = $(call github,keithw,mosh,mosh-$(MOSH_VERSION))
+MOSH_DEPENDENCIES = host-protobuf protobuf
+MOSH_AUTORECONF = YES
+MOSH_LICENSE = OCB
+MOSH_LICENSE_FILES = ocb-license.html
+MOSH_MAKE_ENV = VERSION="mosh-$(MOSH_VERSION)"
+
+$(eval $(autotools-package))
-- 
2.1.4

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

end of thread, other threads:[~2015-07-23  6:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23  0:24 [Buildroot] [PATCH v2 1/1] mosh: new package Christian Stewart
2015-07-23  5:22 ` Baruch Siach
2015-07-23  6:31   ` Christian Stewart
2015-07-23  6:52     ` Baruch Siach

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