Summary: Proxy Tunnel ssh-over-https hack
+Summary(pl.UTF-8): Tunel proxy ssh-po-https
Name: proxytunnel
-Version: 1.5.0
-Release: 0.1
+Version: 1.10.20210604
+Release: 1
License: GPL
Group: Applications
-Source0: http://proxytunnel.sourceforge.net/files/%{name}-%{version}.tgz
-# Source0-md5: 2a36409580391e25421fc06e82eed4ce
-URL: http://proxytunnel.sourceforge.net/
+Source0: https://github.com/proxytunnel/proxytunnel/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a8ca6a40c40b51681486e317c313d5fc
+URL: https://github.com/proxytunnel/proxytunnel
+BuildRequires: openssl-devel
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
somewhere on the network, through a standard HTTPS proxy. We mostly
use it to tunnel SSH sessions through HTTP(S) proxies, allowing us to
do many things that wouldn't be possible without ProxyTunnel.
-Proxytunnel can currently do the following:
+ProxyTunnel can currently do the following:
- Create tunnels using HTTP and HTTPS proxies (That understand the
HTTP CONNECT command).
- Work as a back-end driver for an OpenSSH client, and create SSH
connections, and then tunneling these connections to a specified
destination.
+%description -l pl.UTF-8
+ProxyTunnel to program łączący stdin i stdout do serwera gdzieś w
+sieci poprzez standardowe proxy HTTPS. Jest używany głównie do
+tunelowania sesji SSH poprzez proxy HTTP(S), co pozwala na robienie
+wielu rzeczy, które nie byłyby możliwe bez niego. ProxyTunnel
+aktualnie potrafi:
+- tworzyć tunele przy użyciu proxy HTTP i HTTPS (rozumiejących
+ polecenie HTTP CONNECT),
+- działać jako sterownik backendu dla klienta OpenSSH i tworzyć
+ połączenia SSH poprzez proxy HTTP(S),
+- działać jako samodzielna aplikacja, nasłuchując na jakimś porcie na
+ połączenia, a następnie tunelując te połączenia na podany adres.
+
%prep
%setup -q
%build
-
%{__make} \
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
- LDFLAGS="%{rpmldflags}"
+ LDFLAGS="%{rpmldflags} `pkg-config --libs openssl`"
%install
rm -rf $RPM_BUILD_ROOT
-install -D proxytunnel $RPM_BUILD_ROOT%{_bindir}/proxytunnel
-install -D debian/proxytunnel.1 $RPM_BUILD_ROOT%{_mandir}/man1/proxytunnel.1
+%{__make} install \
+ prefix=%{_prefix} \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CREDITS CHANGES README
+%doc CREDITS CHANGES README.md
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*