From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X1XRU-0007uH-SE for ptxdist@pengutronix.de; Mon, 30 Jun 2014 11:00:04 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1X1XRU-0005lI-Qh for ptxdist@pengutronix.de; Mon, 30 Jun 2014 11:00:04 +0200 Date: Mon, 30 Jun 2014 11:00:04 +0200 From: Michael Olbrich Message-ID: <20140630090004.GG12903@pengutronix.de> References: <1403903740-6261-1-git-send-email-jon@ringle.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1403903740-6261-1-git-send-email-jon@ringle.org> Subject: Re: [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: , 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 On Fri, Jun 27, 2014 at 05:15:40PM -0400, jon@ringle.org wrote: > 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) Connecting to www.harding.motd.ca (www.harding.motd.ca)|70.72.193.225|:80... failed: Connection timed out. I'll try again later to see if it's only temporary. > +AUTOSSH_SOURCE := $(SRCDIR)/$(AUTOSSH).$(AUTOSSH_SUFFIX) > +AUTOSSH_DIR := $(BUILDDIR)/$(AUTOSSH) > +AUTOSSH_LICENSE := unknown > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +AUTOSSH_CONF_TOOL := autoconf Really no relevant configure options? Michael > + > +# ---------------------------------------------------------------------------- > +# 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 > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de