Skip to contentSkip to conversation

autossh: new package

PATCH New Dominik Fässler 2 participants 2 messages May 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autossh: new package

---
 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
package/Config.in +1 -0
index fb1b08f..4e3c414 100644
@@ -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"
package/autossh/Config.in new file +8 -0
new file mode 100644
index 0000000..c867eba
@@ -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/
package/autossh/autossh.mk new file +16 -0
new file mode 100644
index 0000000..d81731a
@@ -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))
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 autossh: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dominik" == Dominik F?ssler <[email protected]> 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?

Signature · 1 line
Bye, Peter Korsgaard