forked from pool/autossh
Accepting request 689491 from security
OBS-URL: https://build.opensuse.org/request/show/689491 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/autossh?expand=0&rev=15
This commit is contained in:
commit
efea64c0cf
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0172e5e1bea40c642e0ef025334be3aadd4ff3b4d62c0b177ed88a8384e2f8f2
|
|
||||||
size 67128
|
|
3
autossh-1.4g.tgz
Normal file
3
autossh-1.4g.tgz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277
|
||||||
|
size 67599
|
@ -1,10 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 28 21:29:41 UTC 2019 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.4g
|
||||||
|
+ most notably addresses a bug that could see an alarm signal occur
|
||||||
|
without a handler, causing autossh to exit inappropriately.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 17 14:12:50 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Remove pre-12.2 parts from build recipe
|
||||||
|
- Reduce hard dependency on systemd
|
||||||
|
- Replace old $RPM_* shell vars and %__-type macro indirections.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 15 02:59:43 UTC 2018 - sean@suspend.net
|
Mon Oct 15 02:59:43 UTC 2018 - sean@suspend.net
|
||||||
|
|
||||||
- Update to version 1.4f
|
- Update to version 1.4f
|
||||||
+ Change behavior when ssh exits on signal.
|
+ Change behavior when ssh exits on signal.
|
||||||
+ Fix order of arguments to kill().
|
+ Fix order of arguments to kill().
|
||||||
+ Ignore SIGPIPE.
|
+ Ignore SIGPIPE.
|
||||||
+ Should accept the default -1 with AUTOSSH_MAXSTART
|
+ Should accept the default -1 with AUTOSSH_MAXSTART
|
||||||
+ memset() sigaction structure before use
|
+ memset() sigaction structure before use
|
||||||
- autossh-makefile-destdir.patch: dropped
|
- autossh-makefile-destdir.patch: dropped
|
||||||
@ -12,7 +26,7 @@ Mon Oct 15 02:59:43 UTC 2018 - sean@suspend.net
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 23 13:44:07 UTC 2017 - rbrown@suse.com
|
Thu Nov 23 13:44:07 UTC 2017 - rbrown@suse.com
|
||||||
|
|
||||||
- Replace references to /var/adm/fillup-templates with new
|
- Replace references to /var/adm/fillup-templates with new
|
||||||
%_fillupdir macro (boo#1069468)
|
%_fillupdir macro (boo#1069468)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
@ -36,11 +50,11 @@ Fri Apr 24 21:08:10 UTC 2015 - Greg.Freemyer@gmail.com
|
|||||||
- change the install line for autossh.service to:
|
- change the install line for autossh.service to:
|
||||||
%__install -D -m 444 %{S:3} %{buildroot}%{_unitdir}/autossh@.service
|
%__install -D -m 444 %{S:3} %{buildroot}%{_unitdir}/autossh@.service
|
||||||
* This has 2 big changes. First the permissions are 444, so READONLY.
|
* This has 2 big changes. First the permissions are 444, so READONLY.
|
||||||
* Second, note the @ char in the target name.
|
* Second, note the @ char in the target name.
|
||||||
This makes it an instantiated service file
|
This makes it an instantiated service file
|
||||||
- add a sample my.conf override file
|
- add a sample my.conf override file
|
||||||
- add a README.SUSE.md file that:
|
- add a README.SUSE.md file that:
|
||||||
* explains how to use systemd instantiated service
|
* explains how to use systemd instantiated service
|
||||||
* how to use the override file
|
* how to use the override file
|
||||||
* a full walkthru of how to setup a reverse tunnel
|
* a full walkthru of how to setup a reverse tunnel
|
||||||
|
|
||||||
@ -72,22 +86,22 @@ Wed Mar 27 09:28:30 UTC 2013 - multyrealm@gmail.com
|
|||||||
Fri Mar 22 13:34:38 UTC 2013 - multyrealm@gmail.com
|
Fri Mar 22 13:34:38 UTC 2013 - multyrealm@gmail.com
|
||||||
|
|
||||||
- change first autossh channel configuration key to
|
- change first autossh channel configuration key to
|
||||||
the old one to make package update seemless
|
the old one to make package update seemless
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 19 12:27:56 UTC 2013 - multyrealm@gmail.com
|
Tue Mar 19 12:27:56 UTC 2013 - multyrealm@gmail.com
|
||||||
|
|
||||||
- support upto 10 autossh instances
|
- support upto 10 autossh instances
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 18 16:16:42 UTC 2013 - multyrealm@gmail.com
|
Mon Mar 18 16:16:42 UTC 2013 - multyrealm@gmail.com
|
||||||
|
|
||||||
- updated copyright year
|
- updated copyright year
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 18 15:45:10 UTC 2012 - multyrealm@gmail.com
|
Wed Apr 18 15:45:10 UTC 2012 - multyrealm@gmail.com
|
||||||
|
|
||||||
- updated autossh configuration options
|
- updated autossh configuration options
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 16 07:31:56 UTC 2012 - cfarrell@suse.com
|
Mon Apr 16 07:31:56 UTC 2012 - cfarrell@suse.com
|
||||||
@ -104,7 +118,7 @@ Fri Apr 6 14:14:05 UTC 2012 - multyrealm@gmail.com
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 6 13:44:24 UTC 2012 - multyrealm@gmail.com
|
Fri Apr 6 13:44:24 UTC 2012 - multyrealm@gmail.com
|
||||||
|
|
||||||
- added SysV-style initscript and configuration file fillup template
|
- added SysV-style initscript and configuration file fillup template
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 5 16:59:11 UTC 2012 - meissner@suse.com
|
Thu Apr 5 16:59:11 UTC 2012 - meissner@suse.com
|
||||||
|
55
autossh.spec
55
autossh.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package autossh
|
# spec file for package autossh
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -21,21 +21,17 @@
|
|||||||
%define _fillupdir /var/adm/fillup-templates
|
%define _fillupdir /var/adm/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1220
|
|
||||||
%define with_systemd 1
|
%define with_systemd 1
|
||||||
%else
|
|
||||||
%define with_systemd 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Summary: Automatically restart SSH sessions and tunnels
|
Summary: Automatically restart SSH sessions and tunnels
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Networking/SSH
|
Group: Productivity/Networking/SSH
|
||||||
|
|
||||||
Name: autossh
|
Name: autossh
|
||||||
Version: 1.4f
|
Version: 1.4g
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.harding.motd.ca/autossh/
|
URL: https://www.harding.motd.ca/autossh/
|
||||||
Source: http://www.harding.motd.ca/autossh/%{name}-%{version}.tgz
|
Source: https://www.harding.motd.ca/autossh/%{name}-%{version}.tgz
|
||||||
Source1: autossh.init
|
Source1: autossh.init
|
||||||
Source2: autossh.conf
|
Source2: autossh.conf
|
||||||
Source3: autossh.service
|
Source3: autossh.service
|
||||||
@ -46,12 +42,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
# configure checks is the ssh client exists
|
# configure checks is the ssh client exists
|
||||||
BuildRequires: openssh
|
BuildRequires: openssh
|
||||||
Requires: openssh
|
Requires: openssh
|
||||||
%if %{with_systemd}
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: systemd
|
%{?systemd_ordering}
|
||||||
%{?systemd_requires}
|
|
||||||
%else
|
|
||||||
Requires(pre): %fillup_prereq %insserv_prereq
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Autossh is a program to start a copy of ssh and monitor it, restarting
|
Autossh is a program to start a copy of ssh and monitor it, restarting
|
||||||
@ -69,55 +61,34 @@ cp %{S:5} .
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
%__make %{?jobs:-j%jobs}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
%__mkdir_p %{buildroot}%{_sbindir}
|
mkdir -p %{buildroot}/%{_sbindir}
|
||||||
%if %{with_systemd}
|
install -D -m 444 %{S:3} %{buildroot}/%{_unitdir}/autossh@.service
|
||||||
%__install -D -m 444 %{S:3} %{buildroot}%{_unitdir}/autossh@.service
|
ln -s /usr/sbin/service %{buildroot}/%{_sbindir}/rcautossh
|
||||||
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcautossh
|
rm "%buildroot/%{_datadir}/doc/autossh"/{CHANGES,README}
|
||||||
%else
|
rm -rf "%{buildroot}/%{_datadir}/examples"
|
||||||
%__install -D -m 755 %{S:1} %{buildroot}%{_initrddir}/autossh
|
|
||||||
%__ln_s -f %{_initrddir}/autossh %{buildroot}%{_sbindir}/rcautossh
|
|
||||||
%__install -D -m 644 %{S:2} %{buildroot}%{_fillupdir}/sysconfig.autossh
|
|
||||||
%endif
|
|
||||||
%__rm "$RPM_BUILD_ROOT/usr/share/doc/autossh"/{CHANGES,README}
|
|
||||||
%__rm -rf "%{buildroot}%{_datadir}/examples"
|
|
||||||
|
|
||||||
%if %{with_systemd}
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if %{with_systemd}
|
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
%else
|
|
||||||
%fillup_only
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if %{with_systemd}
|
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
%else
|
|
||||||
%insserv_cleanup
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
%doc CHANGES README README.SUSE.md my.conf
|
%doc CHANGES README README.SUSE.md my.conf
|
||||||
%doc autossh.host rscreen
|
%doc autossh.host rscreen
|
||||||
%{_bindir}/autossh
|
%{_bindir}/autossh
|
||||||
%if %{with_systemd}
|
|
||||||
%{_unitdir}/%{name}@.service
|
%{_unitdir}/%{name}@.service
|
||||||
%else
|
|
||||||
%{_initrddir}/autossh
|
|
||||||
%{_fillupdir}/sysconfig.autossh
|
|
||||||
%endif
|
|
||||||
%{_sbindir}/rcautossh
|
%{_sbindir}/rcautossh
|
||||||
%doc %{_mandir}/man1/autossh.1*
|
%doc %{_mandir}/man1/autossh.1*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user