]> git.pld-linux.org Git - packages/autossh.git/blame - autossh.spec
- R: openssh-clients
[packages/autossh.git] / autossh.spec
CommitLineData
6170e6df 1Summary: Automatically restart SSH sessions and tunnels
b5c992f4 2Summary(pl.UTF-8): Automatyczny restart sesji i tuneli SSH
6170e6df 3Name: autossh
3a9f4958 4Version: 1.4b
9c62d432 5Release: 2
6170e6df 6License: GPL
7Group: Applications/Networking
6170e6df 8Source0: http://www.harding.motd.ca/autossh/%{name}-%{version}.tgz
9c62d432 9Source1: %{name}.init
10Source2: %{name}.tab
3a9f4958 11# Source0-md5: 8f9aa006f6f69e912d3c2f504622d6f7
6170e6df 12URL: http://www.harding.motd.ca/autossh/
b5a59623 13Requires: openssh-clients
6170e6df 14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17Autossh is a program to start a copy of ssh and monitor it, restarting
18it as necessary should it die or stop passing traffic. The idea and
19the mechanism are from rstunnel (Reliable SSH Tunnel), but implemented
20in C. The author's view is that it is not as fiddly as rstunnel to get
21to work. Connection monitoring using a loop of port forwardings. Backs
22off on rate of connection attempts when experiencing rapid failures
23such as connection refused. Compiled and tested on OpenBSD, Linux, and
24Solaris; should work fine on other BSDs (except Mac OS 10).
25
71ce230d
JR
26%description -l pl.UTF-8
27autossh jest programem uruchamiającym kopię ssh i monitorującym ją,
28restartując w miarę potrzeby, jeśli umrze lub przestanie przekazywać
29ruch. Idea i mechanizm pochodzą z rstunnela (Reliable SSH Tunnel), ale
30zaimplementowano je w C. Według autora nie trzeba się tak patyczkować,
31jak z rstunnelem, aby go uruchomić. Monitorowanie połączenia używa
32pętli przekazywania portów. Częstotliwość prób połączeń jest
33zmniejszana w przypadku napotkania nagłych awarii, takich jak
34odrzucenie połączenia. Program skompilowano i sprawdzono na OpenBSD,
35Linuksie i Solarisie; powinien działać także na innych BSD (oprócz
a6e1aeab
JB
36MacOS 10).
37
9c62d432 38%package init
39Summary: autossh configuration as system service
40Summary(pl.UTF-8): konfiguracja autossh jako usługi systemowej
41Group: Networking/Daemons
b5a59623 42Requires(post,preun): /sbin/chkconfig
9c62d432 43Requires: autossh = %{epoch}:%{version}-%{release}
44Requires: awk
45Requires: rc-scripts >= 0.4.0.20
46
47%description init
b5a59623 48this package contains init script and example configuration file, that
49allows to run autossh as Unix system service.
9c62d432 50
51%description init -l pl.UTF-8
b5a59623 52Ten pakiet zawiera skrypt startowy oraz przykładowy plik
53konfiguracyjny, które pozwalają uruchamić autossh jako uniksową usługę
54systemową.
9c62d432 55
6170e6df 56%prep
3f2dfd94 57%setup -q
6170e6df 58
59%build
498f604c 60%configure
b5a59623 61%{__make}
6170e6df 62
63%install
64rm -rf $RPM_BUILD_ROOT
9c62d432 65install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/run/%{name},%{_bindir},%{_mandir}/man1}
66
67install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
b5a59623 68install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/autossh.tab
6170e6df 69
70install autossh $RPM_BUILD_ROOT%{_bindir}
71install autossh.1 $RPM_BUILD_ROOT%{_mandir}/man1
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
9c62d432 76%post
77/sbin/chkconfig --add autossh
78%service autossh restart "autossh"
79
80%preun
81if [ "$1" = "0" ]; then
82 %service autossh stop
83 /sbin/chkconfig --del autossh
84fi
85
6170e6df 86%files
87%defattr(644,root,root,755)
88%doc README CHANGES autossh.host rscreen
9c62d432 89%attr(755,root,root) %{_bindir}/autossh
90%{_mandir}/man1/autossh.1*
91
92%files init
93%defattr(644,root,root,755)
b5a59623 94%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.tab
9c62d432 95%attr(754,root,root) /etc/rc.d/init.d/%{name}
96%dir /var/run/autossh
This page took 0.045222 seconds and 4 git commands to generate.