* [Buildroot] [PATCH] autossh: new package
@ 2012-05-15 5:27 Dominik Fässler
2012-05-15 9:54 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Dominik Fässler @ 2012-05-15 5:27 UTC (permalink / raw)
To: buildroot
---
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
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))
--
1.7.2.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2012-05-15 5:27 [Buildroot] [PATCH] autossh: new package Dominik Fässler
@ 2012-05-15 9:54 ` Peter Korsgaard
0 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2012-05-15 9:54 UTC (permalink / raw)
To: buildroot
>>>>> "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?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
@ 2013-10-14 13:46 Gustavo Zacarias
2013-10-14 20:02 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Gustavo Zacarias @ 2013-10-14 13:46 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/Config.in | 1 +
package/autossh/Config.in | 8 ++++++++
package/autossh/autossh.mk | 17 +++++++++++++++++
3 files changed, 26 insertions(+)
create mode 100644 package/autossh/Config.in
create mode 100644 package/autossh/autossh.mk
diff --git a/package/Config.in b/package/Config.in
index 7f6931a..df53587 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -762,6 +762,7 @@ source "package/aiccu/Config.in"
source "package/aircrack-ng/Config.in"
source "package/argus/Config.in"
source "package/arptables/Config.in"
+source "package/autossh/Config.in"
source "package/avahi/Config.in"
source "package/axel/Config.in"
source "package/bcusdk/Config.in"
diff --git a/package/autossh/Config.in b/package/autossh/Config.in
new file mode 100644
index 0000000..e3acd8a
--- /dev/null
+++ b/package/autossh/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_AUTOSSH
+ bool "autossh"
+ depends on BR2_USE_MMU # fork()
+ help
+ autossh is 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..75d7892
--- /dev/null
+++ b/package/autossh/autossh.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# autossh
+#
+################################################################################
+
+AUTOSSH_VERSION = 1.4c
+AUTOSSH_SITE = http://www.harding.motd.ca/autossh
+AUTOSSH_SOURCE = autossh-$(AUTOSSH_VERSION).tgz
+AUTOSSH_LICENSE = Modified BSD
+AUTOSSH_LICENSE_FILES = autossh.c
+
+define AUTOSSH_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 755 -D $(@D)/autossh $(TARGET_DIR)/usr/bin/autossh
+endef
+
+$(eval $(autotools-package))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2013-10-14 13:46 Gustavo Zacarias
@ 2013-10-14 20:02 ` Peter Korsgaard
2013-10-14 20:08 ` Gustavo Zacarias
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2013-10-14 20:02 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
Have you used it with dropbear? I think I recall some discussion about
it using openssh specific options. If so, then it should probably depend
on BR2_PACKAGE_OPENSSH
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2013-10-14 20:02 ` Peter Korsgaard
@ 2013-10-14 20:08 ` Gustavo Zacarias
2013-10-14 20:33 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Gustavo Zacarias @ 2013-10-14 20:08 UTC (permalink / raw)
To: buildroot
On 10/14/2013 05:02 PM, Peter Korsgaard wrote:
> Committed, thanks.
>
> Have you used it with dropbear? I think I recall some discussion about
> it using openssh specific options. If so, then it should probably depend
> on BR2_PACKAGE_OPENSSH
It can be used with a wrapper script, that's the reason i didn't want to
hardcode openssh into it.
There's also a patch for autossh to allow dropbear-specific options.
I'm unsure which would be preferred to "automagicallize" it for users :)
Regards.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2013-10-14 20:08 ` Gustavo Zacarias
@ 2013-10-14 20:33 ` Peter Korsgaard
2013-10-15 8:26 ` Thomas Petazzoni
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2013-10-14 20:33 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Hi,
Gustavo> It can be used with a wrapper script, that's the reason i
Gustavo> didn't want to hardcode openssh into it. There's also a patch
Gustavo> for autossh to allow dropbear-specific options. I'm unsure
Gustavo> which would be preferred to "automagicallize" it for users :)
I'm also not quite sure what would be the best way. Anybody else?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2013-10-14 20:33 ` Peter Korsgaard
@ 2013-10-15 8:26 ` Thomas Petazzoni
2013-10-15 12:29 ` Gustavo Zacarias
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2013-10-15 8:26 UTC (permalink / raw)
To: buildroot
Dear Peter Korsgaard,
On Mon, 14 Oct 2013 22:33:04 +0200, Peter Korsgaard wrote:
> >>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
>
> Hi,
>
> Gustavo> It can be used with a wrapper script, that's the reason i
> Gustavo> didn't want to hardcode openssh into it. There's also a patch
> Gustavo> for autossh to allow dropbear-specific options. I'm unsure
> Gustavo> which would be preferred to "automagicallize" it for users :)
>
> I'm also not quite sure what would be the best way. Anybody else?
At least mention that in package help text (that, IIUC, it normally
depends on OpenSSH, but there are patches or other ways to make it work
with Dropbear, possibly giving pointers to those patches).
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2013-10-15 8:26 ` Thomas Petazzoni
@ 2013-10-15 12:29 ` Gustavo Zacarias
2013-10-15 12:47 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Gustavo Zacarias @ 2013-10-15 12:29 UTC (permalink / raw)
To: buildroot
On 10/15/2013 05:26 AM, Thomas Petazzoni wrote:
> At least mention that in package help text (that, IIUC, it normally
> depends on OpenSSH, but there are patches or other ways to make it work
> with Dropbear, possibly giving pointers to those patches).
On a quick qemu run it works without tweaks - i didn't try the odd
options though, just the basics.
Looking at details the openwrt patch for autossh+dropbear is gone so
evidently it's upstream (by looking at it).
No need to add anything up except maybe "remember to select a ssh
package" (or depend on OPENSSH | DROPBEAR).
Regards.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] [PATCH] autossh: new package
2013-10-15 12:29 ` Gustavo Zacarias
@ 2013-10-15 12:47 ` Peter Korsgaard
0 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2013-10-15 12:47 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> On 10/15/2013 05:26 AM, Thomas Petazzoni wrote:
>> At least mention that in package help text (that, IIUC, it normally
>> depends on OpenSSH, but there are patches or other ways to make it work
>> with Dropbear, possibly giving pointers to those patches).
Gustavo> On a quick qemu run it works without tweaks - i didn't try the odd
Gustavo> options though, just the basics.
Gustavo> Looking at details the openwrt patch for autossh+dropbear is gone so
Gustavo> evidently it's upstream (by looking at it).
Ok, great - Thanks for checking.
Gustavo> No need to add anything up except maybe "remember to select a ssh
Gustavo> package" (or depend on OPENSSH | DROPBEAR).
I guess the isn't really any sane use cases for autossh without a ssh
client, so I think we should use 'depends on'.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-10-15 12:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 5:27 [Buildroot] [PATCH] autossh: new package Dominik Fässler
2012-05-15 9:54 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
2013-10-14 13:46 Gustavo Zacarias
2013-10-14 20:02 ` Peter Korsgaard
2013-10-14 20:08 ` Gustavo Zacarias
2013-10-14 20:33 ` Peter Korsgaard
2013-10-15 8:26 ` Thomas Petazzoni
2013-10-15 12:29 ` Gustavo Zacarias
2013-10-15 12:47 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox