File autossh.spec of Package autossh
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Summary: Automatically restart SSH sessions and tunnels
Name: autossh
Version: 1.4b
Release: 1
License: GNU General Public License version 2 (GPL v2)
Group: Productivity/Networking/SSH
URL: http://www.harding.motd.ca/autossh/
# http://www.harding.motd.ca/autossh/autossh-%{version}.tgz
Source: autossh-1.4b.tar.bz2
Patch0: autossh-makefile-destdir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
# configure checks is the ssh client exists
BuildRequires: openssh
Requires: openssh
%description
Autossh is a program to start a copy of ssh and monitor it, restarting
it as necessary should it die or stop passing traffic. The idea and
the mechanism are from rstunnel (Reliable SSH Tunnel), but implemented
in C. The author's view is that it is not as fiddly as rstunnel to get
to work. Connection monitoring using a loop of port forwardings. Backs
off on rate of connection attempts when experiencing rapid failures
such as connection refused.
%prep
%setup
%patch0 -p1
%build
%configure
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%__rm "$RPM_BUILD_ROOT/usr/share/doc/autossh"/{CHANGES,README}
%__rm -rf "%{buildroot}%{_datadir}/examples"
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-, root, root, 0755)
%doc CHANGES README
%doc autossh.host rscreen
%{_bindir}/autossh
%doc %{_mandir}/man1/autossh.1*
%changelog
* Sun Jun 7 2009 Pascal Bleser <pascal.bleser@opensuse.org> - 1.4b
- use bz2 source
- fix macro usage
- install autossh.host and rscreen as %%doc files, instead of /usr/share/examples/autossh
* Tue Feb 17 2009 - mstopka@opensuse.org
- adopted for Contrib
- makefile-destdir patch
* Thu Jun 26 2008 Mike Veltman <mike.veltman@draconis-it.com>- 1.4b
- updated to release 1.4b
* Sat Oct 20 2007 Mike Veltman <mike.veltman@draconis-it.com>- 1.4a-1
- Prepare for repackage buildservice suse
* Fri Jul 14 2006 Dag Wieers <dag@wieers.com> - 1.4a-1
- Updated to release 1.4a.
* Fri Jun 09 2006 Dag Wieers <dag@wieers.com> - 1.4-1
- Updated to release 1.4.
* Thu Mar 24 2005 Dag Wieers <dag@wieers.com> - 1.3-2
- Added openssh-clients dependency. (Adrian Reber)
- Build with %%{optflags}. (Adrian Reber)
* Wed Mar 23 2005 Dag Wieers <dag@wieers.com> - 1.3-1
- Updated to release 1.3.
* Fri Dec 10 2004 Dag Wieers <dag@wieers.com> - 1.2-2.g
- Fixed Group tag.
* Thu Dec 09 2004 Dag Wieers <dag@wieers.com> - 1.2-1.g
- Updated to release 1.2g.
* Fri Sep 24 2004 Dag Wieers <dag@wieers.com> - 1.2-1.f
- Initial package. (using DAR)