From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X0dUw-0005lk-Cw for ptxdist@pengutronix.de; Fri, 27 Jun 2014 23:15:55 +0200 Received: by mail-qg0-f50.google.com with SMTP id j5so10704qga.9 for ; Fri, 27 Jun 2014 14:15:47 -0700 (PDT) From: jon@ringle.org Date: Fri, 27 Jun 2014 17:15:40 -0400 Message-Id: <1403903740-6261-1-git-send-email-jon@ringle.org> Subject: [ptxdist] [PATCH] autossh: new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Jon Ringle From: Jon Ringle autossh will automatically restart SSH sessions and tunnels http://www.harding.motd.ca/autossh/ Signed-off-by: Jon Ringle --- ...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 +Date: Fri, 27 Jun 2014 16:39:41 -0400 +Subject: [PATCH] Make install rule friendly towards packaging with $DESTDIR + +Signed-off-by: Jon Ringle +--- + 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 +# +# 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 ") + @$(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