]> git.pld-linux.org Git - packages/connect.git/commitdiff
Since OpenSSH 5.4 ssh -W can do the basic TCP tunnel master
authorElan Ruusamäe <glen@delfi.ee>
Sat, 20 Oct 2012 10:22:00 +0000 (13:22 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 20 Oct 2012 10:22:00 +0000 (13:22 +0300)
ProxyCommand ssh -q -W %h:%p gateway.example.com

would be same as:
ProxyCommand ssh gateway.example.com connect %h %p

connect.spec

index 806e03b006abbd68eec9b310309cbabddfc69a26..ffb211a69ac047e79bc4a7848d200fc44ae6a745 100644 (file)
@@ -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
This page took 0.072522 seconds and 4 git commands to generate.