Patchwork autossh: new package

login
register
mail settings
Submitter Dominik Faessler
Date May 15, 2012, 5:27 a.m.
Message ID <1337059661-4008-1-git-send-email-faessler@was.ch>
Download mbox | patch
Permalink /patch/159231/
State Changes Requested
Headers show

Comments

Dominik Faessler - May 15, 2012, 5:27 a.m.
---
 package/Config.in          |    1 +
 package/autossh/Config.in  |    8 ++++++++
 package/autossh/autossh.mk |   16 ++++++++++++++++
 3 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 package/autossh/Config.in
 create mode 100644 package/autossh/autossh.mk
Peter Korsgaard - May 15, 2012, 9:54 a.m.
>>>>> "Dominik" == Dominik Fässler <faessler@was.ch> writes:

Hi,

 Dominik> +++ b/package/autossh/Config.in
 Dominik> @@ -0,0 +1,8 @@
 Dominik> +config BR2_PACKAGE_AUTOSSH
 Dominik> +	bool "autossh"
 Dominik> +	select BR2_PACKAGE_OPENSSH

Doesn't this work with dropbear? Autossh afaik just creates a port
forward loop and monitors that the connection is alive, which should
work for dropbear as well.

 Dominik> diff --git a/package/autossh/autossh.mk b/package/autossh/autossh.mk
 Dominik> new file mode 100644
 Dominik> index 0000000..d81731a
 Dominik> --- /dev/null
 Dominik> +++ b/package/autossh/autossh.mk
 Dominik> @@ -0,0 +1,16 @@
 Dominik> +#############################################################
 Dominik> +#
 Dominik> +# autossh
 Dominik> +#
 Dominik> +#############################################################
 Dominik> +
 Dominik> +AUTOSSH_VERSION = 1.4c
 Dominik> +AUTOSSH_SOURCE = autossh-$(AUTOSSH_VERSION).tgz
 Dominik> +AUTOSSH_SITE = http://www.harding.motd.ca/autossh
 Dominik> +AUTOSSH_DEPENDENCIES = openssh
 Dominik> +
 Dominik> +define AUTOSSH_INSTALL_TARGET_CMDS
 Dominik> +	$(INSTALL) -D -m 0755 $(@D)/autossh $(TARGET_DIR)/bin

On my Debian machine autossh is in /usr/bin, and is just a shell wrapper
around the real binary in /usr/lib/autossh. Is there any specific reason
why you don't just use make install?

Patch

diff --git a/package/Config.in b/package/Config.in
index fb1b08f..4e3c414 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -476,6 +476,7 @@  endmenu
 
 menu "Networking applications"
 source "package/argus/Config.in"
+source "package/autossh/Config.in"
 source "package/avahi/Config.in"
 source "package/axel/Config.in"
 source "package/bluez_utils/Config.in"
diff --git a/package/autossh/Config.in b/package/autossh/Config.in
new file mode 100644
index 0000000..c867eba
--- /dev/null
+++ b/package/autossh/Config.in
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_AUTOSSH
+	bool "autossh"
+	select BR2_PACKAGE_OPENSSH
+	help
+	  A program to start a copy of ssh and monitor it, restarting
+	  it as necessary should it die or stop passing traffic.
+
+	  http://www.harding.motd.ca/autossh/
diff --git a/package/autossh/autossh.mk b/package/autossh/autossh.mk
new file mode 100644
index 0000000..d81731a
--- /dev/null
+++ b/package/autossh/autossh.mk
@@ -0,0 +1,16 @@ 
+#############################################################
+#
+# autossh
+#
+#############################################################
+
+AUTOSSH_VERSION = 1.4c
+AUTOSSH_SOURCE = autossh-$(AUTOSSH_VERSION).tgz
+AUTOSSH_SITE = http://www.harding.motd.ca/autossh
+AUTOSSH_DEPENDENCIES = openssh
+
+define AUTOSSH_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/autossh $(TARGET_DIR)/bin
+endef
+
+$(eval $(call AUTOTARGETS,package,autossh))