mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jon Ringle <jon@ringle.org>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: Re: [ptxdist] [PATCH] autossh: new package
Date: Mon, 30 Jun 2014 14:15:16 -0400	[thread overview]
Message-ID: <CAMwGMjzkFYd6vKm-nyekz7Oeuywwg=ZdvVL1Xm=Dgd7VPN+NMQ@mail.gmail.com> (raw)
In-Reply-To: <20140630090004.GG12903@pengutronix.de>

On Mon, Jun 30, 2014 at 5:00 AM, Michael Olbrich
<m.olbrich@pengutronix.de> wrote:
> On Fri, Jun 27, 2014 at 05:15:40PM -0400, jon@ringle.org wrote:
>> 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)
>
> 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.
>

I saw it down earlier this morning as well, but it seems to be back up
again. Please try again :)


>> +AUTOSSH_SOURCE       := $(SRCDIR)/$(AUTOSSH).$(AUTOSSH_SUFFIX)
>> +AUTOSSH_DIR          := $(BUILDDIR)/$(AUTOSSH)
>> +AUTOSSH_LICENSE      := unknown
>> +
>> +# ----------------------------------------------------------------------------
>> +# Prepare
>> +# ----------------------------------------------------------------------------
>> +
>> +AUTOSSH_CONF_TOOL    := autoconf
>
> Really no relevant configure options?

It worked for me without specifying any configure options. However,
perhaps ptxdist might care about this one:

  --with-ssh=ARG       specify path to ssh executable


>
> 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 <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
>>
>
> --
> 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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-06-30 18:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27 21:15 jon
2014-06-30  9:00 ` Michael Olbrich
2014-06-30 18:15   ` Jon Ringle [this message]
2014-06-30 18:22     ` Jon Ringle
2014-06-30 18:27       ` Jon Ringle
2014-07-01 11:00         ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMwGMjzkFYd6vKm-nyekz7Oeuywwg=ZdvVL1Xm=Dgd7VPN+NMQ@mail.gmail.com' \
    --to=jon@ringle.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox