mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] autossh: new package
@ 2014-06-27 21:15 jon
  2014-06-30  9:00 ` Michael Olbrich
  0 siblings, 1 reply; 6+ messages in thread
From: jon @ 2014-06-27 21:15 UTC (permalink / raw)
  To: ptxdist; +Cc: Jon Ringle

From: Jon Ringle <jringle@gridpoint.com>

autossh will automatically restart SSH sessions and tunnels

http://www.harding.motd.ca/autossh/

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
 ...l-rule-friendly-towards-packaging-with-DE.patch | 47 +++++++++++++++++++
 patches/autossh-1.4c/series                        |  4 ++
 rules/autossh.in                                   |  7 +++
 rules/autossh.make                                 | 53 ++++++++++++++++++++++
 4 files changed, 111 insertions(+)
 create mode 100644 patches/autossh-1.4c/0001-Make-install-rule-friendly-towards-packaging-with-DE.patch
 create mode 100644 patches/autossh-1.4c/series
 create mode 100644 rules/autossh.in
 create mode 100644 rules/autossh.make

diff --git a/patches/autossh-1.4c/0001-Make-install-rule-friendly-towards-packaging-with-DE.patch b/patches/autossh-1.4c/0001-Make-install-rule-friendly-towards-packaging-with-DE.patch
new file mode 100644
index 0000000..96fca56
--- /dev/null
+++ b/patches/autossh-1.4c/0001-Make-install-rule-friendly-towards-packaging-with-DE.patch
@@ -0,0 +1,47 @@
+From: Jon Ringle <jringle@gridpoint.com>
+Date: Fri, 27 Jun 2014 16:39:41 -0400
+Subject: [PATCH] Make install rule friendly towards packaging with $DESTDIR
+
+Signed-off-by: Jon Ringle <jringle@gridpoint.com>
+---
+ Makefile.in | 30 +++++++++++++++---------------
+ 1 file changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index fb7cc1d..a8e7a7e 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -45,18 +45,18 @@ distclean:	allclean
+ 		- /bin/rm -f Makefile
+ 
+ install:	$(TARGET)
+-		mkdir -p -m 755 $(bindir)
+-		mkdir -p -m 755 $(prefix)/share/doc/autossh
+-		mkdir -p -m 755 $(datadir)/examples/autossh
+-		mkdir -p -m 755 $(mandir)/man1
+-		cp $(TARGET) $(bindir)
+-		cp CHANGES README $(datadir)/doc/autossh
+-		cp autossh.host	$(datadir)/examples/autossh
+-		cp rscreen $(datadir)/examples/autossh
+-		cp autossh.1 $(mandir)/man1
+-		chmod 755 $(bindir)/$(TARGET)
+-		chmod 644 $(datadir)/doc/autossh/CHANGES
+-		chmod 644 $(datadir)/doc/autossh/README
+-		chmod 644 $(datadir)/examples/autossh/autossh.host 
+-		chmod 644 $(datadir)/examples/autossh/rscreen
+-		chmod 644 $(mandir)/man1/autossh.1 
++		mkdir -p -m 755 $(DESTDIR)$(bindir)
++		mkdir -p -m 755 $(DESTDIR)$(prefix)/share/doc/autossh
++		mkdir -p -m 755 $(DESTDIR)$(datadir)/examples/autossh
++		mkdir -p -m 755 $(DESTDIR)$(mandir)/man1
++		cp $(TARGET) $(DESTDIR)$(bindir)
++		cp CHANGES README $(DESTDIR)$(datadir)/doc/autossh
++		cp autossh.host	$(DESTDIR)$(datadir)/examples/autossh
++		cp rscreen $(DESTDIR)$(datadir)/examples/autossh
++		cp autossh.1 $(DESTDIR)$(mandir)/man1
++		chmod 755 $(DESTDIR)$(bindir)/$(TARGET)
++		chmod 644 $(DESTDIR)$(datadir)/doc/autossh/CHANGES
++		chmod 644 $(DESTDIR)$(datadir)/doc/autossh/README
++		chmod 644 $(DESTDIR)$(datadir)/examples/autossh/autossh.host 
++		chmod 644 $(DESTDIR)$(datadir)/examples/autossh/rscreen
++		chmod 644 $(DESTDIR)$(mandir)/man1/autossh.1 
diff --git a/patches/autossh-1.4c/series b/patches/autossh-1.4c/series
new file mode 100644
index 0000000..29f971c
--- /dev/null
+++ b/patches/autossh-1.4c/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Make-install-rule-friendly-towards-packaging-with-DE.patch
+# ecdd87ec5c25c56d421024daf8acf722  - git-ptx-patches magic
diff --git a/rules/autossh.in b/rules/autossh.in
new file mode 100644
index 0000000..71ebf91
--- /dev/null
+++ b/rules/autossh.in
@@ -0,0 +1,7 @@
+## SECTION=networking
+
+config AUTOSSH
+	tristate
+	prompt "autossh"
+	help
+	  Automatically restart SSH sessions and tunnels
diff --git a/rules/autossh.make b/rules/autossh.make
new file mode 100644
index 0000000..38c64d3
--- /dev/null
+++ b/rules/autossh.make
@@ -0,0 +1,53 @@
+# -*-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
+# ----------------------------------------------------------------------------
+
+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
-- 
1.8.5.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2014-07-01 11:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-27 21:15 [ptxdist] [PATCH] autossh: new package jon
2014-06-30  9:00 ` Michael Olbrich
2014-06-30 18:15   ` Jon Ringle
2014-06-30 18:22     ` Jon Ringle
2014-06-30 18:27       ` Jon Ringle
2014-07-01 11:00         ` Michael Olbrich

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