summaryrefslogtreecommitdiffstats
path: root/rules/autossh.make
diff options
context:
space:
mode:
authorJon Ringle <jringle@gridpoint.com>2014-06-27 17:15:40 -0400
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-07-01 11:30:56 +0200
commita4d729ba0cbd3905fe6e61343a03046b1f147385 (patch)
treeb493289c64ca32136ebad35f3a5bbf648db97dc1 /rules/autossh.make
parent340ed9a9cac3d5e387bb660e27624dbd6105c0ba (diff)
downloadptxdist-a4d729ba0cbd3905fe6e61343a03046b1f147385.tar.gz
ptxdist-a4d729ba0cbd3905fe6e61343a03046b1f147385.tar.xz
autossh: new package
autossh will automatically restart SSH sessions and tunnels http://www.harding.motd.ca/autossh/ Signed-off-by: Jon Ringle <jringle@gridpoint.com> [mol: add AUTOSSH_CONF_ENV] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/autossh.make')
-rw-r--r--rules/autossh.make58
1 files changed, 58 insertions, 0 deletions
diff --git a/rules/autossh.make b/rules/autossh.make
new file mode 100644
index 000000000..c60fbe87d
--- /dev/null
+++ b/rules/autossh.make
@@ -0,0 +1,58 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Jon Ringle <jringle@gridpoint.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_AUTOSSH) += autossh
+
+#
+# Paths and names
+#
+AUTOSSH_VERSION := 1.4c
+AUTOSSH_MD5 := 26520eea934f296be0783dabe7fcfd28
+AUTOSSH := autossh-$(AUTOSSH_VERSION)
+AUTOSSH_SUFFIX := tgz
+AUTOSSH_URL := http://www.harding.motd.ca/autossh/$(AUTOSSH).$(AUTOSSH_SUFFIX)
+AUTOSSH_SOURCE := $(SRCDIR)/$(AUTOSSH).$(AUTOSSH_SUFFIX)
+AUTOSSH_DIR := $(BUILDDIR)/$(AUTOSSH)
+AUTOSSH_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+# use ac_cv_path_ssh= because --with-ssh= is broken
+AUTOSSH_CONF_ENV := \
+ $(CROSS_ENV) \
+ ac_cv_path_ssh=/usr/bin/ssh
+
+AUTOSSH_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/autossh.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, autossh)
+ @$(call install_fixup, autossh,PRIORITY,optional)
+ @$(call install_fixup, autossh,SECTION,base)
+ @$(call install_fixup, autossh,AUTHOR,"Jon Ringle <jringle@gridpoint.com>")
+ @$(call install_fixup, autossh,DESCRIPTION,missing)
+
+ @$(call install_copy, autossh, 0, 0, 0755, -, /usr/bin/autossh)
+
+ @$(call install_finish, autossh)
+
+ @$(call touch)
+
+# vim: syntax=make