torsocks 2.4.0 OBS-URL: https://build.opensuse.org/request/show/1005903 OBS-URL: https://build.opensuse.org/package/show/network/torsocks?expand=0&rev=13
106 lines
3.3 KiB
RPMSpec
106 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package torsocks
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _name libtorsocks
|
|
Name: torsocks
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: Use SOCKS-friendly applications with Tor
|
|
License: GPL-2.0-only
|
|
Group: Productivity/Networking/Security
|
|
URL: https://gitlab.torproject.org/tpo/core/torsocks/-/releases/
|
|
Source0: https://gitlab.torproject.org/tpo/core/torsocks/-/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
Source1: %{name}-rpmlintrc
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
Recommends: libcap-progs
|
|
|
|
%description
|
|
Torsocks allows you to use most applications in a safe way with Tor.
|
|
It ensures that DNS requests are handled safely and explicitly rejects
|
|
any traffic other than TCP from the application you're using.
|
|
|
|
Torsocks is an ELF shared library that is loaded before all others.
|
|
The library overrides every needed Internet communication libc function
|
|
calls such as connect(2) or gethostbyname(3).
|
|
|
|
This process is transparent to the user and if torsocks detects any
|
|
communication that can't go through the Tor network such as UDP traffic,
|
|
for instance, the connection is denied. If, for any reason, there is no way
|
|
for torsocks to provide the Tor anonymity guarantee to your application,
|
|
torsocks will force the application to quit and stop everything.
|
|
|
|
Adjust when needed /etc/tor/torsocks.conf and use Torsocks with
|
|
|
|
torsocks application
|
|
|
|
So, for example you can use ssh to a some.ssh.com by doing
|
|
|
|
torsocks ssh -p SSH-Port -i ~/.ssh/ssh-key.rsa username@some.ssh.com
|
|
|
|
You can use in /etc/bash.bashrc.local or /etc/zsh.zshrc.local alias
|
|
|
|
alias slogin-='torsocks slogin'
|
|
|
|
And can ajust ~/.ssh/config with your data for server or PC and then use simple
|
|
|
|
slogin- server
|
|
|
|
or add too an alias
|
|
|
|
alias slogin-server='slogin- server'
|
|
|
|
and use simple
|
|
|
|
slogin-server
|
|
|
|
%prep
|
|
%setup -q -n %{name}-v%{version}-afe9dea542a8b495dbbbbe5e4b98a33cde06729b/
|
|
|
|
%build
|
|
autoreconf -fi
|
|
|
|
%configure --docdir=%{_defaultdocdir}/%{name}
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
# Remove not needed static libraries
|
|
rm %{buildroot}/%{_libdir}/%{name}/lib%{name}.{a,la}
|
|
|
|
%post -n %{name} -p /sbin/ldconfig
|
|
%postun -n %{name} -p /sbin/ldconfig
|
|
|
|
%check
|
|
%make_build check
|
|
|
|
%files
|
|
%doc ChangeLog README.md gpl-2.0.txt doc/socks/SOCKS5 doc/socks/socks-extensions.txt doc/notes/DEBUG extras/torsocks-bash_completion extras/torsocks-zsh_completion
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
%{_mandir}/man5/%{name}.conf.5%{?ext_man}
|
|
%{_mandir}/man8/%{name}.8%{?ext_man}
|
|
%dir %{_libdir}/%{name}
|
|
%{_libdir}/%{name}/%{_name}.so*
|
|
%config(noreplace) %{_sysconfdir}/tor/%{name}.conf
|
|
%dir %attr(0755,root,tor) %{_sysconfdir}/tor
|
|
|
|
%changelog
|