From ffb38f3752db7857910042c0c744966b6ed99cc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 20 Oct 2012 13:22:00 +0300 Subject: [PATCH] Since OpenSSH 5.4 ssh -W can do the basic TCP tunnel ProxyCommand ssh -q -W %h:%p gateway.example.com would be same as: ProxyCommand ssh gateway.example.com connect %h %p --- connect.spec | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/connect.spec b/connect.spec index 806e03b..ffb211a 100644 --- a/connect.spec +++ b/connect.spec @@ -5,19 +5,22 @@ Version: 1.96 Release: 2 License: GPL v2+ Group: Applications/Networking -Source0: http://www.taiyo.co.jp/~gotoh/ssh/connect.c +Source0: http://www.taiyo.co.jp/~gotoh/ssh/%{name}.c # NoSource0-md5: b856937f1cdfca7a3ccfb2fac36ef726 -Source1: http://www.taiyo.co.jp/~gotoh/ssh/connect.html +Source1: http://www.taiyo.co.jp/~gotoh/ssh/%{name}.html # NoSource1-md5: bb972b3a9d435c62023b355960d78f78 -URL: http://www.meadowy.org/~gotoh/projects/connect +URL: http://bent.latency.net/bent/git/goto-san-connect-1.85/src/connect.html Conflicts: openssh-clients < 2:4.5p1-2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description connect is the simple relaying command to make network connection via SOCKS and HTTPS proxy. It is mainly intended to be used as "proxy -command" of OpenSSH. You can make SSH session beyond the firewall -with this command. +command" of OpenSSH. You can make SSH session beyond the firewall with +this command. + +NOTE: Since OpenSSH 5.4 you can use ssh -W option for plain TCP +tunnel: ProxyCommand ssh -q -W %h:%p gateway.example.com %description -l pl.UTF-8 connect to proste polecenie przekazujące tworzące połączenie sieciowe @@ -26,8 +29,7 @@ przez proxy SOCKS lub HTTPS. Powstało głównie z myślą o używaniu jako %prep %setup -q -c -T - -cp %{SOURCE0} %{SOURCE1} . +cp -p %{SOURCE0} %{SOURCE1} . %build %{__cc} %{rpmcflags} %{rpmldflags} connect.c -o connect @@ -35,8 +37,7 @@ cp %{SOURCE0} %{SOURCE1} . %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} - -install connect $RPM_BUILD_ROOT%{_bindir} +install -p connect $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0