upg tor tor-git

replaced tor-alpha with tor-git
This commit is contained in:
joborun linux 2022-12-08 02:28:18 +02:00
parent 408d1f7e64
commit 4b44783709
22 changed files with 1173 additions and 52 deletions

116
tor-git/PKGBUILD Normal file
View File

@ -0,0 +1,116 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=tor-git
pkgver=0.4.7.10.r280.g9e17af9
pkgrel=01
pkgdesc='An anonymizing overlay network. w/o zstd and systemd'
arch=(x86_64)
url="https://www.torproject.org"
conflicts=('tor')
provides=('tor')
backup=('etc/tor/torrc'
'etc/tor/torrc.d/nodes.conf'
'etc/tor/torrc.d/bridge.conf'
'etc/tor/torrc.d/isolation.conf'
'etc/tor/torrc.d/transparent_proxy.conf')
depends=('openssl' 'libevent' 'libseccomp' 'xz')
makedepends=('asciidoc' 'git')
checkdepends=('python')
optdepends=('torsocks: allow transparent SOCKS proxying'
'obfs4proxy: obfuscating pluggable transport proxy'
'meek: obfuscating pluggable transport proxy')
[[ $_malloc = 'jemalloc' ]] && depends+=('jemalloc')
[[ $_malloc = 'tcmalloc' ]] && depends+=('gperftools')
source=("git+https://git.torproject.org/tor.git#branch=${_branch:-main}"
{nodes,bridge,transparent_proxy,isolation}.conf
'torrc' 'tor.logrotate' 'tor.tmpfiles' 'tor.sysusers')
pkgver () {
cd tor
git describe --long --tags --abbrev=7 "origin/${_branch:-main}" \
|sed -e 's/tor.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd tor
./autogen.sh
}
build() {
cd tor
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-zstd \
--disable-zstd-advanced-apis \
--disable-systemd \
--disable-html-manual \
--disable-ipv6 \
--enable-lzma \
--enable-xz \
--with-malloc="${_malloc:-system}" \
--disable-module-relay \
--disable-unittests \
--enable-pic
make
}
check() {
cd tor
make check ||true
}
package() {
cd tor
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/tor.sysusers" "$pkgdir/usr/lib/sysusers.d/tor.conf"
install -Dm644 "$srcdir/tor.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/tor.conf"
rm -f "$pkgdir/etc/tor/tor-tsocks.conf"
rm -f "$pkgdir/usr/bin/torify"
install -dm755 "$pkgdir/etc/tor"
install -dm750 "$pkgdir/etc/tor/torrc.d"
install -Dm640 "$srcdir/torrc" "$pkgdir/etc/tor/torrc"
install -Dm640 "$srcdir/nodes.conf" "$pkgdir/etc/tor/torrc.d/nodes.conf"
install -Dm640 "$srcdir/bridge.conf" "$pkgdir/etc/tor/torrc.d/bridge.conf"
install -Dm640 "$srcdir/isolation.conf" "$pkgdir/etc/tor/torrc.d/isolation.conf"
install -Dm640 "$srcdir/transparent_proxy.conf" "$pkgdir/etc/tor/torrc.d/transparent_proxy.conf"
install -Dm644 "$srcdir/tor.logrotate" "$pkgdir/etc/logrotate.d/tor"
# install -Dm644 "$srcdir/tor.service" "$pkgdir/usr/lib/systemd/system/tor.service"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
#---- license gpg-key sha256sums ----
license=('BSD')
validpgpkeys=(2133BC600AB133E1D826D173FE43009C4607B1FB # Nick Mathewson
F65CE37F04BA5B360AE6EE17C218525819F78451 # Roger Dingledine
1C1BC007A9F607AA8152C040BEA7B180B1491921) # Alexander Færøy <ahf@0x90.dk>
sha256sums=(SKIP # tor
72ed5d90c54d9d5354af0d9fc7eb1412c548cc308868b85a99278abe8ccbf145 # nodes.conf
90a588c3c2dc7826172341453f76739e8f48df7b0c858adebd12e97f047bde26 # bridge.conf
7fbb63e9411eee2176964449a3d6809d16e1120152c6ff201ecea1d1f97f102b # transparent_proxy.conf
748b7264b49b12d5252d688b8859820046413938c5fde91578da0d5b95594c2e # isolation.conf
1f32a363443437a08d133494732008b98a9dc520173a97d53ce832edfb923f7b # torrc
d447227fcc2756778a1be143b8975d67b25ea15688cde2291185b3c71d0f6e34 # tor.logrotate
06c00318d84ead3f939b267c7ae9e4cc1cd90c534d0b57ddd2595fee9065ee7f # tor.tmpfiles
231405d1fbbcc68168248f93edd19ae14b60f66bb4d1c8e46ead1d4cd8e0ae7c) # tor.sysusers

100
tor-git/PKGBUILD-aur Normal file
View File

@ -0,0 +1,100 @@
# Contributor: skydrome <skydrome@protonmail.com>
# Maintainer: skydrome <skydrome@protonmail.com>
#_branch=maint-0.4.6 # stable
#_malloc=jemalloc # tcmalloc
pkgname=tor-git
pkgver=0.4.7.10.r93.g982c504
pkgrel=1
pkgdesc="An anonymizing overlay network (development version)"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://www.torproject.org"
license=('BSD')
conflicts=('tor')
provides=('tor')
backup=('etc/tor/torrc'
'etc/tor/torrc.d/nodes.conf'
'etc/tor/torrc.d/bridge.conf'
'etc/tor/torrc.d/isolation.conf'
'etc/tor/torrc.d/transparent_proxy.conf')
depends=('openssl' 'libevent' 'libseccomp' 'zstd' 'xz')
makedepends=('asciidoc' 'git')
checkdepends=('python')
optdepends=('torsocks: allow transparent SOCKS proxying'
'obfs4proxy: obfuscating pluggable transport proxy'
'meek: obfuscating pluggable transport proxy')
[[ $_malloc = 'jemalloc' ]] && depends+=('jemalloc')
[[ $_malloc = 'tcmalloc' ]] && depends+=('gperftools')
source=("git+https://git.torproject.org/tor.git#branch=${_branch:-main}"
{nodes,bridge,transparent_proxy,isolation}.conf
'torrc' 'tor.logrotate' 'tor.service' 'tor.tmpfiles' 'tor.sysusers')
sha256sums=('SKIP'
'72ed5d90c54d9d5354af0d9fc7eb1412c548cc308868b85a99278abe8ccbf145'
'90a588c3c2dc7826172341453f76739e8f48df7b0c858adebd12e97f047bde26'
'7fbb63e9411eee2176964449a3d6809d16e1120152c6ff201ecea1d1f97f102b'
'748b7264b49b12d5252d688b8859820046413938c5fde91578da0d5b95594c2e'
'1f32a363443437a08d133494732008b98a9dc520173a97d53ce832edfb923f7b'
'd447227fcc2756778a1be143b8975d67b25ea15688cde2291185b3c71d0f6e34'
'488525b2051cf0f216ac14c3ab1bc8531d308cedf92e64d147f7f11b6c58cf41'
'06c00318d84ead3f939b267c7ae9e4cc1cd90c534d0b57ddd2595fee9065ee7f'
'231405d1fbbcc68168248f93edd19ae14b60f66bb4d1c8e46ead1d4cd8e0ae7c')
pkgver () {
cd tor
git describe --long --tags --abbrev=7 "origin/${_branch:-main}" \
|sed -e 's/tor.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd tor
./autogen.sh
}
build() {
cd tor
./configure \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--disable-html-manual \
--enable-systemd \
--enable-zstd \
--enable-lzma \
--enable-pic \
--with-malloc="${_malloc:-system}" #\
#--disable-module-relay \
#--disable-unittests
make
}
check() {
cd tor
make check ||true
}
package() {
cd tor
make DESTDIR="$pkgdir" install
rm -f "$pkgdir/etc/tor/tor-tsocks.conf"
rm -f "$pkgdir/usr/bin/torify"
install -dm755 "$pkgdir/etc/tor"
install -dm750 "$pkgdir/etc/tor/torrc.d"
install -Dm640 "$srcdir/torrc" "$pkgdir/etc/tor/torrc"
install -Dm640 "$srcdir/nodes.conf" "$pkgdir/etc/tor/torrc.d/nodes.conf"
install -Dm640 "$srcdir/bridge.conf" "$pkgdir/etc/tor/torrc.d/bridge.conf"
install -Dm640 "$srcdir/isolation.conf" "$pkgdir/etc/tor/torrc.d/isolation.conf"
install -Dm640 "$srcdir/transparent_proxy.conf" "$pkgdir/etc/tor/torrc.d/transparent_proxy.conf"
install -Dm644 "$srcdir/tor.logrotate" "$pkgdir/etc/logrotate.d/tor"
install -Dm644 "$srcdir/tor.service" "$pkgdir/usr/lib/systemd/system/tor.service"
install -Dm644 "$srcdir/tor.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/tor.conf"
install -Dm644 "$srcdir/tor.sysusers" "$pkgdir/usr/lib/sysusers.d/tor.conf"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/tor-git/LICENSE"
}

19
tor-git/bridge.conf Normal file
View File

@ -0,0 +1,19 @@
## When set, Tor will fetch descriptors for each bridge listed in the Bridge
## config lines, and use these relays as both entry guards and directory guards.
#UseBridges 1
## When set (along with UseBridges), Tor will try to fetch bridge descriptors
## from the configured bridge authorities when feasible. It will fall back to
## a direct request if the authority responds with a 404.
#UpdateBridgesFromAuthority 1
## ClientTransportPlugin transport exec path-to-binary [options]
#ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy -enableLogging -logLevel WARN
#ClientTransportPlugin meek exec /usr/bin/meek-client --log /var/lib/tor/pt_state/meek-client.log
## Bridge [transport] IP:ORPort [fingerprint]
## https://gitweb.torproject.org/builders/tor-browser-bundle.git/plain/Bundle-Data/PTConfigs/bridge_prefs.js
#Bridge obfs4 154.35.22.10:15937 8FB9F4319E89E5C6223052AA525A192AFBC85D55 cert=GGGS1TX4R81m3r0HBl79wKy1OtPPNR2CZUIrHjkRg65Vc2VR8fOyo64f9kmT1UAFG7j0HQ iat-mode=0
#Bridge obfs4 192.99.11.54:443 7B126FAB960E5AC6A629C729434FF84FB5074EC2 cert=VW5f8+IBUWpPFxF+rsiVy2wXkyTQG7vEd+rHeN2jV5LIDNu8wMNEOqZXPwHdwMVEBdqXEw iat-mode=0
#Bridge meek 0.0.2.0:2 B9E7141C594AF25699E0079C1F0146F409495296 url=https://d2cly7j4zqgua7.cloudfront.net/ front=a0.awsstatic.com
#Bridge meek 0.0.2.0:3 97700DFE9F483596DDA6264C4D7DF7641E1E39CE url=https://meek.azureedge.net/ front=ajax.aspnetcdn.com

1
tor-git/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,tor}

214
tor-git/configure vendored Normal file
View File

@ -0,0 +1,214 @@
`configure' configures tor 0.4.8.0-alpha-dev to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/tor]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--enable-openbsd-malloc use malloc code from OpenBSD. Linux only.
Deprecated: see --with-malloc
--enable-static-openssl link against a static openssl library. Requires
--with-openssl-dir
--enable-static-libevent
link against a static libevent library. Requires
--with-libevent-dir
--enable-static-zlib link against a static zlib library. Requires
--with-zlib-dir
--enable-static-tor create an entirely static Tor binary. Requires
--with-openssl-dir and --with-libevent-dir and
--with-zlib-dir
--disable-unittests don't build unit tests for Tor. Risky!
--enable-coverage enable coverage support in the unit-test build
--disable-asserts-in-tests
disable tor_assert() calls in the unit tests, for
branch coverage
--disable-system-torrc don't look for a system-wide torrc file
--enable-libfuzzer build extra fuzzers based on 'libfuzzer'
--enable-oss-fuzz build extra fuzzers based on 'oss-fuzz' environment
--disable-memory-sentinels
disable code that tries to prevent some kinds of
memory access bugs. For fuzzing only.
--enable-restart-debugging
Build Tor with support for debugging in-process
restart. Developers only.
--disable-zstd-advanced-apis
Build without support for zstd's "static-only" APIs.
--enable-nss Use Mozilla's NSS TLS library. (EXPERIMENTAL)
--enable-pic Build Tor's binaries as position-independent code,
suitable to link as a library.
--enable-missing-doc-warnings
Tell doxygen to warn about missing documentation.
Makes doxygen warnings nonfatal.
--disable-manpage Disable manpage generation.
--disable-html-manual Disable HTML documentation.
--disable-asciidoc don't use asciidoc (disables building of manpages)
--enable-systemd enable systemd notification support
--enable-gcc-warnings deprecated alias for enable-fatal-warnings
--enable-fatal-warnings tell the compiler to treat all warnings as errors.
--disable-gcc-warnings-advisory
disable the regular verbose warnings
--disable-gcc-hardening disable compiler security checks
--enable-expensive-hardening
enable more fragile and expensive compiler
hardening; makes Tor slower
--enable-fragile-hardening
enable more fragile and expensive compiler
hardening; makes Tor slower
--enable-all-bugs-are-fatal
force all soft asserts in Tor codebase
(tor_assert_nonfatal(), BUG(), etc.) to act as hard
asserts (tor_assert() and equivalents); makes Tor
fragile; only recommended for dev builds
--disable-linker-hardening
disable linker security fixups
--enable-local-appdata default to host local application data paths on
Windows
--disable-tool-name-check
check for sanely named toolchain when
cross-compiling
--disable-seccomp do not attempt to use libseccomp
--disable-libscrypt do not attempt to use libscrypt
--enable-tracing-instrumentation-lttng
build with LTTng-UST instrumentation
--enable-tracing-instrumentation-usdt
build with tracing USDT instrumentation
--enable-tracing-instrumentation-log-debug
build with tracing event to debug log
--enable-android build with Android features enabled
--disable-module-relay Build tor without the Relay modules: tor can not run
as a relay, bridge, or authority. Implies
--disable-module-dirauth
--disable-module-dirauth
Build tor without the Directory Authority module:
tor can not run as a directory authority or bridge
authority
--enable-lzma enable support for the LZMA compression scheme.
--enable-zstd enable support for the Zstandard compression scheme.
--disable-largefile omit support for large files
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-tor-user=NAME specify username for tor daemon
--with-tor-group=NAME specify group name for tor daemon
--with-libevent-dir=PATH
specify path to libevent installation
--with-ssl-dir=PATH obsolete alias for --with-openssl-dir
--with-openssl-dir=PATH specify path to openssl installation
--with-zlib-dir=PATH specify path to zlib installation
--with-tcmalloc use tcmalloc memory allocation library. Deprecated;
see --with-malloc
--with-malloc=system,jemalloc,tcmalloc,openbsd
select special malloc implementation [system]
--with-syslog-facility=LOG
syslog facility to use (default=LOG_DAEMON)
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
SYSTEMD_CFLAGS
C compiler flags for SYSTEMD, overriding pkg-config
SYSTEMD_LIBS
linker flags for SYSTEMD, overriding pkg-config
LIBSYSTEMD209_CFLAGS
C compiler flags for LIBSYSTEMD209, overriding pkg-config
LIBSYSTEMD209_LIBS
linker flags for LIBSYSTEMD209, overriding pkg-config
CPP C preprocessor
PERL path to Perl binary
NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
NSS_LIBS linker flags for NSS, overriding pkg-config
LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
LZMA_LIBS linker flags for LZMA, overriding pkg-config
ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
TCMALLOC_CFLAGS
C compiler flags for TCMALLOC, overriding pkg-config
TCMALLOC_LIBS
linker flags for TCMALLOC, overriding pkg-config
JEMALLOC_CFLAGS
C compiler flags for JEMALLOC, overriding pkg-config
JEMALLOC_LIBS
linker flags for JEMALLOC, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to the package provider.

5
tor-git/deps Normal file
View File

@ -0,0 +1,5 @@
asciidoc
git
python
automake
autoconf

11
tor-git/isolation.conf Normal file
View File

@ -0,0 +1,11 @@
## Stream isolation provides an easy way to separate different Tor circuits
## and make different applications use isolated streams.
## Dont share circuits with streams targeting a different destination address
#SocksPort 127.0.0.1:9150 IsolateDestAddr
## If a host has both an IPv4 and an IPv6 address, prefer to connect to it via IPv6
#SocksPort 127.0.0.1:9151 PreferIPv6 NoIPv4Traffic
## Only connect to .onion addresses in response to SOCKS5 requests on this connection
#SocksPort 127.0.0.1:9152 OnionTrafficOnly

3
tor-git/key Normal file
View File

@ -0,0 +1,3 @@
gpg --recv-keys 42E86A2A11F48D36
gpg -v --recv-keys 6AFEE6D49E92B601
gpg -v --recv-keys BE6A0531C18A9179

296
tor-git/nodes.conf Normal file
View File

@ -0,0 +1,296 @@
## If StrictNodes is set to 1, Tor will treat the ExcludeNodes option as a
## requirement to follow for all the circuits you generate, even if doing so
## will break functionality for you.
StrictNodes 1
## A list of identity fingerprints, country codes, and address patterns of nodes to never use when
## picking an exit node, that is, a node that delivers traffic for you outside the Tor network.
## Note that any node listed in ExcludeNodes is automatically considered to be part of this list too.
## BAD NODES - http://xqz3u5drneuzhaeo.onion/users/badtornodes
## The following list provides information about relays that have been checked
## for injecting content over HTTP-connections.
ExcludeNodes $bbefffa108ad16b8e5f0323cf086811c17190bba, $2d5e2ca4b22809379b36028da5b7cb453671e5b6, \
$5eb6c2094c4ac42d3fbd1cba25fc3b4196e2ff83, $c813d142c092ac01f2f20970dba7086b8a7e52a3, \
$9c8bb2a38d99283c4acefb1ad4f52a23413787d6, $7c18ee0cb68a259ba6ce0001f2f7b8180a875a6d, \
$47bbde163dc80f5f5e666698ab4b97900dcff929, $acbacb92581c078cc6e285075cfef467e9ccf76a, \
$5d84518804ab4b032531b2647603fe1c5e569c26, $2d9a667f3d44f2a3296800bdd310c3747dc8f465, \
$1824cc33499fd55920a804c66bbaa05669d43117, $4205c064e59aaafeadd2ace80d705183c4f2758a, \
$14f04a0861b913bfcac1eabac74a1f47bdf41f3a, $1f9803d6ade967718912622ac876feef1088cfaa, \
$90804a60f89789d44a16a88596598fbc8f5e177b, $0d4f72f90e50b6f5967c4c7267354b22fa48ea86, \
$eda829cba890bbb30fe5be04779d83044126ba67, $c0e236c6e9a6b29efe247dcbc8a1eaaac247770c, \
$192fa9d6e9a27024f6e733a6196d33cc8425d1c9, $fe0551589d19dcbeb193fe78a9a003a8a2fc09aa, \
$2539ea281de61d5b289f580af52dde9a42cdae36, $6c7c819f808ac125c69e1d981f350dcba44da8b5, \
$35bdc6486420efd442c985d8d3c074988bfe544b, $43be706e24143ab6b3b86dbf7cd4fde1e0c4caf1, \
$103827708bd078eec737137585eccb5bcea6424b, $8ff73b8fbfbf2ccb52a8e46a515418f97a69c812, \
$94cbe5df362142d06de73b102e054442cfe627c9, $f2244a8d5da14359cda1dab70f328e62e74e9837, \
$14be6d0789a234bc4c1866b809d8062d22ee38cf, $9e6ee731a0dec6c65bb4bfb8dd2be461b6e58144, \
$2cb53ff756483b738e7b0b39ada3453b5259a1f3, $0077b6576a668f861f9f41fdf8da7795c8bb86d5, \
$c9be2c39ca4e6f120293c80d2cbe2bc34f3a1f30, $bcc93397b50c1ac75c94452954a5bcda01f47215, \
$ee25656d71db9a82c8efd8c4a99ddbec89f24a67, $1caa0aff0a8236fa7f83f392c11b76cf7eeaac60, \
$28151be14cb5c22a236163c3e97409d6fd607356, $1b777f2c879c76fc529d1ec63508aad0e1759e79, \
$53c4c4e1741ca61ad4f09cc9eae8abe1fd92f08b
## A list of identity fingerprints and country codes of nodes to use for the
## first hop in your normal circuits.
## Normal circuits include all circuits except for direct connections to directory servers.
## The Bridge option overrides this option; if you have configured bridges and UseBridges
## is 1, the Bridges are used as your entry nodes.
#EntryNodes
## A list of identity fingerprints, country codes, and address patterns of nodes to
## use as exit node, that is a node that delivers traffic for you outside the Tor network.
#ExitNodes
## https://wikipedia.org/wiki/Five_Eyes
#ExcludeExitNodes {au}, {ca}, {gb}, {nz}, {us}
#NodeFamily {au}, {ca}, {gb}, {nz}, {us}
#PathsNeededToBuildCircuits 0.95
# Country Abbrev
# ASCENSION ISLAND {ac}
# AFGHANISTAN {af}
# ALAND {ax}
# ALBANIA {al}
# ALGERIA {dz}
# ANDORRA {ad}
# ANGOLA {ao}
# ANGUILLA {ai}
# ANTARCTICA {aq}
# ANTIGUA AND BARBUDA {ag}
# ARGENTINA REPUBLIC {ar}
# ARMENIA {am}
# ARUBA {aw}
# AUSTRALIA {au}
# AUSTRIA {at}
# AZERBAIJAN {az}
# BAHAMAS {bs}
# BAHRAIN {bh}
# BANGLADESH {bd}
# BARBADOS {bb}
# BELARUS {by}
# BELGIUM {be}
# BELIZE {bz}
# BENIN {bj}
# BERMUDA {bm}
# BHUTAN {bt}
# BOLIVIA {bo}
# BOSNIA AND HERZEGOVINA {ba}
# BOTSWANA {bw}
# BOUVET ISLAND {bv}
# BRAZIL {br}
# BRITISH INDIAN OCEAN TERR {io}
# BRITISH VIRGIN ISLANDS {vg}
# BRUNEI DARUSSALAM {bn}
# BULGARIA {bg}
# BURKINA FASO {bf}
# BURUNDI {bi}
# CAMBODIA {kh}
# CAMEROON {cm}
# CANADA {ca}
# CAPE VERDE {cv}
# CAYMAN ISLANDS {ky}
# CENTRAL AFRICAN REPUBLIC {cf}
# CHAD {td}
# CHILE {cl}
# PEOPLE'S REPUBLIC OF CHINA {cn}
# CHRISTMAS ISLANDS {cx}
# COCOS ISLANDS {cc}
# COLOMBIA {co}
# COMORAS {km}
# CONGO {cg}
# CONGO (DEMOCRATIC REPUBLIC) {cd}
# COOK ISLANDS {ck}
# COSTA RICA {cr}
# COTE D IVOIRE {ci}
# CROATIA {hr}
# CUBA {cu}
# CYPRUS {cy}
# CZECH REPUBLIC {cz}
# DENMARK {dk}
# DJIBOUTI {dj}
# DOMINICA {dm}
# DOMINICAN REPUBLIC {do}
# EAST TIMOR {tp}
# ECUADOR {ec}
# EGYPT {eg}
# EL SALVADOR {sv}
# EQUATORIAL GUINEA {gq}
# ESTONIA {ee}
# ETHIOPIA {et}
# FALKLAND ISLANDS {fk}
# FAROE ISLANDS {fo}
# FIJI {fj}
# FINLAND {fi}
# FRANCE {fr}
# FRANCE METROPOLITAN {fx}
# FRENCH GUIANA {gf}
# FRENCH POLYNESIA {pf}
# FRENCH SOUTHERN TERRITORIES {tf}
# GABON {ga}
# GAMBIA {gm}
# GEORGIA {ge}
# GERMANY {de}
# GHANA {gh}
# GIBRALTER {gi}
# GREECE {gr}
# GREENLAND {gl}
# GRENADA {gd}
# GUADELOUPE {gp}
# GUAM {gu}
# GUATEMALA {gt}
# GUINEA {gn}
# GUINEA-BISSAU {gw}
# GUYANA {gy}
# HAITI {ht}
# HEARD &amp; MCDONALD ISLAND {hm}
# HONDURAS {hn}
# HONG KONG {hk}
# HUNGARY {hu}
# ICELAND {is}
# INDIA {in}
# INDONESIA {id}
# IRAN, ISLAMIC REPUBLIC OF {ir}
# IRAQ {iq}
# IRELAND {ie}
# ISLE OF MAN {im}
# ISRAEL {il}
# ITALY {it}
# JAMAICA {jm}
# JAPAN {jp}
# JORDAN {jo}
# KAZAKHSTAN {kz}
# KENYA {ke}
# KIRIBATI {ki}
# KOREA, DEM. PEOPLES REP OF {kp}
# KOREA, REPUBLIC OF {kr}
# KUWAIT {kw}
# KYRGYZSTAN {kg}
# LAO PEOPLE'S DEM. REPUBLIC {la}
# LATVIA {lv}
# LEBANON {lb}
# LESOTHO {ls}
# LIBERIA {lr}
# LIBYAN ARAB JAMAHIRIYA {ly}
# LIECHTENSTEIN {li}
# LITHUANIA {lt}
# LUXEMBOURG {lu}
# MACAO {mo}
# MACEDONIA {mk}
# MADAGASCAR {mg}
# MALAWI {mw}
# MALAYSIA {my}
# MALDIVES {mv}
# MALI {ml}
# MALTA {mt}
# MARSHALL ISLANDS {mh}
# MARTINIQUE {mq}
# MAURITANIA {mr}
# MAURITIUS {mu}
# MAYOTTE {yt}
# MEXICO {mx}
# MICRONESIA {fm}
# MOLDAVA REPUBLIC OF {md}
# MONACO {mc}
# MONGOLIA {mn}
# MONTENEGRO {me}
# MONTSERRAT {ms}
# MOROCCO {ma}
# MOZAMBIQUE {mz}
# MYANMAR {mm}
# NAMIBIA {na}
# NAURU {nr}
# NEPAL {np}
# NETHERLANDS ANTILLES {an}
# NETHERLANDS, THE {nl}
# NEW CALEDONIA {nc}
# NEW ZEALAND {nz}
# NICARAGUA {ni}
# NIGER {ne}
# NIGERIA {ng}
# NIUE {nu}
# NORFOLK ISLAND {nf}
# NORTHERN MARIANA ISLANDS {mp}
# NORWAY {no}
# OMAN {om}
# PAKISTAN {pk}
# PALAU {pw}
# PALESTINE {ps}
# PANAMA {pa}
# PAPUA NEW GUINEA {pg}
# PARAGUAY {py}
# PERU {pe}
# PHILIPPINES (REPUBLIC OF THE) {ph}
# PITCAIRN {pn}
# POLAND {pl}
# PORTUGAL {pt}
# PUERTO RICO {pr}
# QATAR {qa}
# REUNION {re}
# ROMANIA {ro}
# RUSSIAN FEDERATION {ru}
# RWANDA {rw}
# SAMOA {ws}
# SAN MARINO {sm}
# SAO TOME/PRINCIPE {st}
# SAUDI ARABIA {sa}
# SCOTLAND {uk}
# SENEGAL {sn}
# SERBIA {rs}
# SEYCHELLES {sc}
# SIERRA LEONE {sl}
# SINGAPORE {sg}
# SLOVAKIA {sk}
# SLOVENIA {si}
# SOLOMON ISLANDS {sb}
# SOMALIA {so}
# SOMOA,GILBERT,ELLICE ISLANDS {as}
# SOUTH AFRICA {za}
# SOUTH GEORGIA, SOUTH SANDWICH ISLANDS {gs}
# SOVIET UNION {su}
# SPAIN {es}
# SRI LANKA {lk}
# ST. HELENA {sh}
# ST. KITTS AND NEVIS {kn}
# ST. LUCIA {lc}
# ST. PIERRE AND MIQUELON {pm}
# ST. VINCENT &amp; THE GRENADINES {vc}
# SUDAN {sd}
# SURINAME {sr}
# SVALBARD AND JAN MAYEN {sj}
# SWAZILAND {sz}
# SWEDEN {se}
# SWITZERLAND {ch}
# SYRIAN ARAB REPUBLIC {sy}
# TAIWAN {tw}
# TAJIKISTAN {tj}
# TANZANIA, UNITED REPUBLIC OF {tz}
# THAILAND {th}
# TOGO {tg}
# TOKELAU {tk}
# TONGA {to}
# TRINIDAD AND TOBAGO {tt}
# TUNISIA {tn}
# TURKEY {tr}
# TURKMENISTAN {tm}
# TURKS AND CALCOS ISLANDS {tc}
# TUVALU {tv}
# UGANDA {ug}
# UKRAINE {ua}
# UNITED ARAB EMIRATES {ae}
# UNITED KINGDOM (no new registrations) {gb}
# UNITED KINGDOM {uk}
# UNITED STATES {us}
# UNITED STATES MINOR OUTL.IS. {um}
# URUGUAY {uy}
# UZBEKISTAN {uz}
# VANUATU {vu}
# VATICAN CITY STATE {va}
# VENEZUELA {ve}
# VIET NAM {vn}
# VIRGIN ISLANDS (USA) {vi}
# WALLIS AND FUTUNA ISLANDS {wf}
# WESTERN SAHARA {eh}
# YEMEN {ye}
# ZAMBIA {zm}
# ZIMBABWE {zw}

9
tor-git/sums Normal file
View File

@ -0,0 +1,9 @@
nodes.conf
bridge.conf
transparent_proxy.conf
isolation.conf
torrc
tor.logrotate
tor.service
tor.tmpfiles
tor.sysusers

6
tor-git/time Normal file
View File

@ -0,0 +1,6 @@
real 1m52.094s
user 1m43.643s
sys 0m9.065s

13
tor-git/tor.logrotate Normal file
View File

@ -0,0 +1,13 @@
/var/log/tor/*.log {
daily
rotate 5
compress
delaycompress
missingok
notifempty
create 0640 tor tor
sharedscripts
postrotate
/bin/systemctl reload tor.service >/dev/null 2>/dev/null || :
endscript
}

34
tor-git/tor.service Normal file
View File

@ -0,0 +1,34 @@
[Unit]
Description=Anonymizing overlay network for TCP
After=syslog.target network.target nss-lookup.target
[Service]
Type=notify
NotifyAccess=all
ExecStartPre=/usr/bin/tor --runasdaemon 0 -f /etc/tor/torrc --verify-config
ExecStart=/usr/bin/tor --runasdaemon 0 -f /etc/tor/torrc
ExecReload=/bin/kill -HUP ${MAINPID}
KillSignal=SIGINT
TimeoutSec=30
Restart=on-failure
RestartSec=1
WatchdogSec=1m
LimitNOFILE=32768
LimitMEMLOCK=infinity
# Hardening
PrivateTmp=yes
PrivateDevices=yes
DeviceAllow=/dev/null rw
DeviceAllow=/dev/urandom r
ProtectHome=yes
ProtectSystem=full
NoNewPrivileges=true
MemoryDenyWriteExecute=true
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/lib/tor
ReadWriteDirectories=-/var/log/tor
CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
[Install]
WantedBy=multi-user.target

1
tor-git/tor.sysusers Normal file
View File

@ -0,0 +1 @@
u tor 43 "TOR Network Daemon" /var/lib/tor

3
tor-git/tor.tmpfiles Normal file
View File

@ -0,0 +1,3 @@
d /var/lib/tor 0700 tor tor - -
d /var/log/tor 0700 tor tor - -
d /etc/tor 0700 tor tor - -

267
tor-git/torrc Normal file
View File

@ -0,0 +1,267 @@
## Configuration file for a typical Tor user
## Last updated 28 February 2019 for Tor 0.3.5.1-alpha.
## (may or may not work for much older or much newer versions of Tor.)
##
## Lines that begin with "## " try to explain what's going on. Lines
## that begin with just "#" are disabled commands: you can enable them
## by removing the "#" symbol.
##
## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
## for more options you can use in this file.
##
## Tor will look for this file in various places based on your platform:
## https://www.torproject.org/docs/faq#torrc
## Tor opens a SOCKS proxy on port 9050 by default -- even if you don't
## configure one below. Set "SOCKSPort 0" if you plan to run Tor only
## as a relay, and not make any local application connections yourself.
SOCKSPort 9050 # Default: Bind to localhost:9050 for local connections.
#SOCKSPort 192.168.0.1:9100 # Bind to this address:port too.
## Entry policies to allow/deny SOCKS requests based on IP address.
## First entry that matches wins. If no SOCKSPolicy is set, we accept
## all (and only) requests that reach a SOCKSPort. Untrusted users who
## can access your SOCKSPort may be able to learn about the connections
## you make.
#SOCKSPolicy accept 192.168.0.0/16
#SOCKSPolicy accept6 FC00::/7
#SOCKSPolicy reject *
## Logs go to stdout at level "notice" unless redirected by something
## else, like one of the below lines. You can have as many Log lines as
## you want.
##
## We advise using "notice" in most cases, since anything more verbose
## may provide sensitive information to an attacker who obtains the logs.
##
## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
#Log notice file /var/log/tor/notices.log
## Send every possible message to /var/log/tor/debug.log
#Log debug file /var/log/tor/debug.log
## Use the system log instead of Tor's logfiles
#Log notice syslog
## To send all messages to stderr:
#Log debug stderr
## Uncomment this to start the process in the background... or use
## --runasdaemon 1 on the command line. This is ignored on Windows;
## see the FAQ entry if you want Tor to run as an NT service.
#RunAsDaemon 1
## Default username and group the server will run as
User tor
## The directory for keeping all the keys/etc. By default, we store
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
DataDirectory /var/lib/tor
## The port on which Tor will listen for local connections from Tor
## controller applications, as documented in control-spec.txt.
#ControlPort 9051
## If you enable the controlport, be sure to enable one of these
## authentication methods, to prevent attackers from accessing it.
#HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
#CookieAuthentication 1
############### This section is just for location-hidden services ###
## Once you have configured a hidden service, you can look at the
## contents of the file ".../hidden_service/hostname" for the address
## to tell people.
##
## HiddenServicePort x y:z says to redirect requests on port x to the
## address y:z.
#HiddenServiceDir /var/lib/tor/hidden_service/
#HiddenServicePort 80 127.0.0.1:80
#HiddenServiceDir /var/lib/tor/other_hidden_service/
#HiddenServicePort 80 127.0.0.1:80
#HiddenServicePort 22 127.0.0.1:22
################ This section is just for relays #####################
#
## See https://www.torproject.org/docs/tor-doc-relay for details.
## Required: what port to advertise for incoming Tor connections.
#ORPort 9001
## If you want to listen on a port other than the one advertised in
## ORPort (e.g. to advertise 443 but bind to 9090), you can do it as
## follows. You'll need to do ipchains or other port forwarding
## yourself to make this work.
#ORPort 443 NoListen
#ORPort 127.0.0.1:9090 NoAdvertise
## If you want to listen on IPv6 your numeric address must be explicitly
## between square brackets as follows. You must also listen on IPv4.
#ORPort [2001:DB8::1]:9050
## The IP address or full DNS name for incoming connections to your
## relay. Leave commented out and Tor will guess.
#Address noname.example.com
## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.
## OutboundBindAddressExit will be used for all exit traffic, while
## OutboundBindAddressOR will be used for all OR and Dir connections
## (DNS connections ignore OutboundBindAddress).
## If you do not wish to differentiate, use OutboundBindAddress to
## specify the same address for both in a single line.
#OutboundBindAddressExit 10.0.0.4
#OutboundBindAddressOR 10.0.0.5
## A handle for your relay, so people don't have to refer to it by key.
## Nicknames must be between 1 and 19 characters inclusive, and must
## contain only the characters [a-zA-Z0-9].
## If not set, "Unnamed" will be used.
#Nickname ididnteditheconfig
## Define these to limit how much relayed traffic you will allow. Your
## own traffic is still unthrottled. Note that RelayBandwidthRate must
## be at least 75 kilobytes per second.
## Note that units for these config options are bytes (per second), not
## bits (per second), and that prefixes are binary prefixes, i.e. 2^10,
## 2^20, etc.
#RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
#RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB (1600Kb)
## Use these to restrict the maximum traffic per day, week, or month.
## Note that this threshold applies separately to sent and received bytes,
## not to their sum: setting "40 GB" may allow up to 80 GB total before
## hibernating.
##
## Set a maximum of 40 gigabytes each way per period.
#AccountingMax 40 GBytes
## Each period starts daily at midnight (AccountingMax is per day)
#AccountingStart day 00:00
## Each period starts on the 3rd of the month at 15:00 (AccountingMax
## is per month)
#AccountingStart month 3 15:00
## Administrative contact information for this relay or bridge. This line
## can be used to contact you if your relay or bridge is misconfigured or
## something else goes wrong. Note that we archive and publish all
## descriptors containing these lines and that Google indexes them, so
## spammers might also collect them. You may want to obscure the fact that
## it's an email address and/or generate a new address for this purpose.
##
## If you are running multiple relays, you MUST set this option.
##
#ContactInfo Random Person <nobody AT example dot com>
## You might also include your PGP or GPG fingerprint if you have one:
#ContactInfo 0xFFFFFFFF Random Person <nobody AT example dot com>
## Uncomment this to mirror directory information for others. Please do
## if you have enough bandwidth.
#DirPort 9030 # what port to advertise for directory connections
## If you want to listen on a port other than the one advertised in
## DirPort (e.g. to advertise 80 but bind to 9091), you can do it as
## follows. below too. You'll need to do ipchains or other port
## forwarding yourself to make this work.
#DirPort 80 NoListen
#DirPort 127.0.0.1:9091 NoAdvertise
## Uncomment to return an arbitrary blob of html on your DirPort. Now you
## can explain what Tor is if anybody wonders why your IP address is
## contacting them. See contrib/tor-exit-notice.html in Tor's source
## distribution for a sample.
#DirPortFrontPage /etc/tor/tor-exit-notice.html
## Uncomment this if you run more than one Tor relay, and add the identity
## key fingerprint of each Tor relay you control, even if they're on
## different networks. You declare it here so Tor clients can avoid
## using more than one of your relays in a single circuit. See
## https://www.torproject.org/docs/faq#MultipleRelays
## However, you should never include a bridge's fingerprint here, as it would
## break its concealability and potentially reveal its IP/TCP address.
##
## If you are running multiple relays, you MUST set this option.
##
## Note: do not use MyFamily on bridge relays.
#MyFamily $keyid,$keyid,...
## Uncomment this if you want your relay to be an exit, with the default
## exit policy (or whatever exit policy you set below).
## (If ReducedExitPolicy, ExitPolicy, or IPv6Exit are set, relays are exits.
## If none of these options are set, relays are non-exits.)
#ExitRelay 1
## Uncomment this if you want your relay to allow IPv6 exit traffic.
## (Relays do not allow any exit traffic by default.)
#IPv6Exit 1
## Uncomment this if you want your relay to be an exit, with a reduced set
## of exit ports.
#ReducedExitPolicy 1
## Uncomment these lines if you want your relay to be an exit, with the
## specified set of exit IPs and ports.
##
## A comma-separated list of exit policies. They're considered first
## to last, and the first match wins.
##
## If you want to allow the same ports on IPv4 and IPv6, write your rules
## using accept/reject *. If you want to allow different ports on IPv4 and
## IPv6, write your IPv6 rules using accept6/reject6 *6, and your IPv4 rules
## using accept/reject *4.
##
## If you want to _replace_ the default exit policy, end this with either a
## reject *:* or an accept *:*. Otherwise, you're _augmenting_ (prepending to)
## the default exit policy. Leave commented to just use the default, which is
## described in the man page or at
## https://www.torproject.org/documentation.html
##
## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
## for issues you might encounter if you use the default exit policy.
##
## If certain IPs and ports are blocked externally, e.g. by your firewall,
## you should update your exit policy to reflect this -- otherwise Tor
## users will be told that those destinations are down.
##
## For security, by default Tor rejects connections to private (local)
## networks, including to the configured primary public IPv4 and IPv6 addresses,
## and any public IPv4 and IPv6 addresses on any interface on the relay.
## See the man page entry for ExitPolicyRejectPrivate if you want to allow
## "exit enclaving".
##
#ExitPolicy accept *:6660-6667,reject *:* # allow irc ports on IPv4 and IPv6 but no more
#ExitPolicy accept *:119 # accept nntp ports on IPv4 and IPv6 as well as default exit policy
#ExitPolicy accept *4:119 # accept nntp ports on IPv4 only as well as default exit policy
#ExitPolicy accept6 *6:119 # accept nntp ports on IPv6 only as well as default exit policy
#ExitPolicy reject *:* # no exits allowed
## Bridge relays (or "bridges") are Tor relays that aren't listed in the
## main directory. Since there is no complete public list of them, even an
## ISP that filters connections to all the known Tor relays probably
## won't be able to block all the bridges. Also, websites won't treat you
## differently because they won't know you're running Tor. If you can
## be a real relay, please do; but if not, be a bridge!
##
## Warning: when running your Tor as a bridge, make sure than MyFamily is
## NOT configured.
#BridgeRelay 1
## By default, Tor will advertise your bridge to users through various
## mechanisms like https://bridges.torproject.org/. If you want to run
## a private bridge, for example because you'll give out your bridge
## address manually to your friends, uncomment this line:
#BridgeDistribution none
## If non-zero, try to write to disk less frequently than we would otherwise.
## This is useful when running on flash memory or other media that support
## only a limited number of writes.
AvoidDiskWrites 1
## Try to use built-in (static) crypto hardware acceleration when available.
HardwareAccel 1
## If set to 1, Tor will attempt to lock all current and future memory pages,
## so that memory cannot be paged out.
DisableAllSwap 1
## Configuration options can be imported from files or folders using the %include
## option with the value being a path. This path can have wildcards. Wildcards are
## expanded first, using lexical order. Then, for each matching file or folder, the following
## rules are followed: if the path is a file, the options from the file will be parsed as if
## they were written where the %include option is. If the path is a folder, all files on that
## folder will be parsed following lexical order. Files starting with a dot are ignored. Files
## on subfolders are ignored.
## The %include option can be used recursively.
%include /etc/tor/torrc.d/*.conf

View File

@ -0,0 +1,21 @@
## https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy
#VirtualAddrNetworkIPv4 10.192.0.0/10
#AutomapHostsOnResolve 1
## TransPort [address:]port|auto [isolation flags]
##
## Open this port to listen for transparent proxy connections.
## Set this to 0 if you dont want to allow transparent proxy connections.
## Set the port to "auto" to have Tor pick a port for you. This directive
## can be specified multiple times to bind to multiple addresses/ports.
#TransPort 127.0.0.1:9040 IsolateClientAddr IsolateClientProtocol IsolateDestAddr IsolateDestPort
## DNSPort [address:]port|auto [isolation flags]
##
## If non-zero, open this port to listen for UDP DNS requests, and
## resolve them anonymously. This port only handles A, AAAA, and PTR
## requests---it doesnt handle arbitrary DNS request types. Set the port
## to "auto" to have Tor pick a port for you.
## This directive can be specified multiple times to bind to multiple addresses/ports.
#DNSPort 127.0.0.1:53

View File

@ -6,40 +6,31 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=tor
pkgver=0.4.7.11
pkgver=0.4.7.12
pkgrel=01
pkgdesc='Anonymizing overlay network. w/o zstd and systemd'
arch=('x86_64')
pkgdesc='An anonymizing overlay network. w/o zstd and systemd'
arch=(x86_64)
#url='https://www.torproject.org/dist'
url="https://dist.torproject.org"
source=("$url/$pkgname-$pkgver.tar.gz"{,.sha256sum{,.asc}}
# 'torrc.patch'
'tor.sysusers'
'tor.tmpfiles')
prepare() {
# verify the signed sums match the expected source tarball
sha256sum -c ${pkgname}-${pkgver}.tar.gz.sha256sum
cd ${pkgname}-${pkgver}
# # uncomment essential config sections in the torrc file
# patch -Np1 < "${srcdir}/torrc.patch"
}
depends=(
'openssl'
'libevent'
'bash'
'libseccomp')
optdepends=(
'torsocks: for torify')
makedepends=(
'ca-certificates')
conflicts=('tor-git')
provides=('tor-git')
#backup=(
# 'etc/tor/torrc')
depends=('openssl' 'libevent' 'bash' 'libseccomp' 'xz')
makedepends=('ca-certificates' 'asciidoc')
checkdepends=('python')
optdepends=('torsocks: allow transparent SOCKS proxying'
'obfs4proxy: obfuscating pluggable transport proxy'
'meek: obfuscating pluggable transport proxy')
source=("$url/$pkgname-$pkgver.tar.gz"{,.sha256sum{,.asc}}
'tor.tmpfiles' 'tor.sysusers')
prepare() {
cd "$pkgname-$pkgver"
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr \
@ -53,43 +44,47 @@ build() {
--enable-lzma \
--enable-xz \
--disable-dependency-tracking \
--disable-unittests \
--enable-pic
make
}
check() {
cd "$pkgname-$pkgver"
make check ||true
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="${pkgdir}" install
make DESTDIR="$pkgdir" install
install -Dm0644 "${srcdir}/tor.sysusers" "${pkgdir}/usr/lib/sysusers.d/tor.conf"
install -Dm0644 "${srcdir}/tor.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/tor.conf"
install -Dm644 "$srcdir/tor.sysusers" "$pkgdir/usr/lib/sysusers.d/tor.conf"
install -Dm644 "$srcdir/tor.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/tor.conf"
# patch upstream configuration file
# patch -Np1 < "${srcdir}/torrc.patch"
# patch -Np1 < "$srcdir/torrc.patch"
make DESTDIR="${pkgdir}" install
install -Dm 0644 src/config/torrc.sample "${pkgdir}"/etc/tor/torrc
install -Dm 0644 src/config/torrc.sample "$pkgdir"/etc/tor/torrc
chown -R 43:43 "${pkgdir}"/etc/tor/torrc
# rm "${pkgdir}"/etc/tor/torrc.sample
# rm "$pkgdir"/etc/tor/torrc.sample
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- license gpg-key sha256sums ----
license=('BSD')
license=('BSD')
validpgpkeys=(2133BC600AB133E1D826D173FE43009C4607B1FB # Nick Mathewson
F65CE37F04BA5B360AE6EE17C218525819F78451 # Roger Dingledine
1C1BC007A9F607AA8152C040BEA7B180B1491921) # Alexander Færøy <ahf@0x90.dk>
sha256sums=(3b5d969712c467851bd028f314343ef15a97ea457191e93ffa97310b05b9e395 # tor-0.4.7.12.tar.gz
5f41319a07feb872c8687219a87f27e39d462f5c0cfba8269234cf48ff0ea5f2 # tor-0.4.7.12.tar.gz.sha256sum
18b1980b6b4441b361494f27bc58857aa097dad7fb0d520968fed2c48303221e # tor-0.4.7.12.tar.gz.sha256sum.asc
06c00318d84ead3f939b267c7ae9e4cc1cd90c534d0b57ddd2595fee9065ee7f # tor.tmpfiles
231405d1fbbcc68168248f93edd19ae14b60f66bb4d1c8e46ead1d4cd8e0ae7c) # tor.sysusers
validpgpkeys=(2133BC600AB133E1D826D173FE43009C4607B1FB # Nick Mathewson
F65CE37F04BA5B360AE6EE17C218525819F78451 # Roger Dingledine
1C1BC007A9F607AA8152C040BEA7B180B1491921) # Alexander Færøy <ahf@0x90.dk>
sha256sums=(cf3cafbeedbdbc5fd1c0540e74d6d10a005eadff929098393815f867e32a136e # tor-0.4.7.11.tar.gz
a3f3a5b38985e4f8044e92f0f2747aa43006661b15643707a0639b5f32e4dcb5 # tor-0.4.7.11.tar.gz.sha256sum
e3bd4dece536c4fa14e389b1b20f2650c2fd7c520b46350c583993f8e136caea # tor-0.4.7.11.tar.gz.sha256sum.asc
04eec05b4e61efccc58c5da657363f0c1059d7f122cb15c32331a201af2d7f94 # tor.sysusers
07bedb17660a3673b31b0005b6505065c90b32f2c6b28b969241da675560f926) # tor.tmpfiles

View File

@ -1,2 +1,4 @@
asciidoc
python

View File

@ -1,3 +1,6 @@
real 2m6.014s
user 6m24.823s
sys 0m19.963s
real 1m46.965s
user 1m40.544s
sys 0m9.080s

View File

@ -1 +1 @@
u tor 43 - /var/lib/tor
u tor 43 "TOR Network Daemon" /var/lib/tor

View File

@ -1 +1,3 @@
d /var/lib/tor 0700 tor tor - -
d /var/log/tor 0700 tor tor - -
d /etc/tor 0700 tor tor - -