]>
Commit | Line | Data |
---|---|---|
86ae6c7b | 1 | Summary: Anonymizing overlay network for TCP (The onion router) |
0b29817c | 2 | Summary(pl.UTF-8): Sieć nakładkowa dla TCP zapewniająca anonimowość (router cebulowy) |
86ae6c7b | 3 | Name: tor |
49d56670 | 4 | Version: 0.2.0.33 |
1f73a227 | 5 | Release: 1 |
e82ae145 JB |
6 | License: BSD-like |
7 | Group: Networking/Daemons | |
8e79bce0 | 8 | Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz |
49d56670 | 9 | # Source0-md5: 9ad86a956b99b1ab007d459d74348960 |
86ae6c7b | 10 | Source1: %{name}.logrotate |
0a942a76 | 11 | Source2: %{name}.init |
12 | Source3: %{name}.sysconfig | |
8e79bce0 | 13 | URL: http://www.torproject.org/ |
47608012 | 14 | BuildRequires: libevent-devel >= 1.1 |
86ae6c7b | 15 | BuildRequires: openssl-devel >= 0.9.6 |
16 | BuildRequires: rpm-build >= 4.0 | |
dda091c2 ER |
17 | BuildRequires: rpmbuild(macros) >= 1.268 |
18 | Requires(post,preun): /sbin/chkconfig | |
e82ae145 JB |
19 | Requires(pre): /bin/id |
20 | Requires(pre): /usr/bin/getgid | |
21 | Requires(pre): /usr/sbin/groupadd | |
22 | Requires(pre): /usr/sbin/useradd | |
dda091c2 | 23 | Requires: rc-scripts |
e5701848 ER |
24 | Provides: group(tor) |
25 | Provides: user(tor) | |
b59b6295 | 26 | Conflicts: logrotate < 3.7-4 |
86ae6c7b | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Tor is a connection-based low-latency anonymous communication system. | |
31 | ||
32 | This package provides the "tor" program, which serves as both a client | |
e5701848 ER |
33 | and a relay node. Scripts will automatically create a "tor" user and |
34 | group, and set tor up to run as a daemon when the system is rebooted. | |
86ae6c7b | 35 | |
36 | Applications connect to the local Tor proxy using the SOCKS protocol. | |
37 | The local proxy chooses a path through a set of relays, in which each | |
38 | relay knows its predecessor and successor, but no others. Traffic | |
39 | flowing down the circuit is unwrapped by a symmetric key at each | |
40 | relay, which reveals the downstream relay. | |
41 | ||
42 | Warnings: Tor does no protocol cleaning. That means there is a danger | |
43 | that application protocols and associated programs can be induced to | |
44 | reveal information about the initiator. Tor depends on Privoxy and | |
45 | similar protocol cleaners to solve this problem. This is alpha code, | |
46 | and is even more likely than released code to have anonymity-spoiling | |
47 | bugs. The present network is very small -- this further reduces the | |
48 | strength of the anonymity provided. Tor is not presently suitable for | |
49 | high-stakes anonymity. | |
50 | ||
9030a8ce | 51 | %description -l pl.UTF-8 |
49d56670 | 52 | Tor to oparty na połączeniach system anonimowej komunikacji o |
53 | małych opóźnieniach. | |
e82ae145 | 54 | |
49d56670 | 55 | Ten pakiet dostarcza program "tor", służący zarówno jako klient, |
56 | jak i węzeł przekaźnikowy. Skrypty automatycznie tworzą | |
57 | użytkownika i grupę "tor" i konfigurują tora do działania jako | |
58 | demon po uruchomieniu systemu. | |
e82ae145 | 59 | |
49d56670 | 60 | Aplikacje łączą się z lokalnym proxy Tor przy użyciu protokołu |
61 | SOCKS. Lokalne proxy wybiera ścieżkę poprzez zbiór przekaźników, | |
62 | z których każdy zna swojego poprzednika i następnika, ale żadnego | |
63 | więcej. Ruch przychodzący jest rozpakowywany przy użyciu klucza | |
64 | symetrycznego na każdym przekaźniku, który odsłania kolejny | |
65 | przekaźnik. | |
e82ae145 | 66 | |
9030a8ce | 67 | Uwaga: Tor nie oczyszcza protokołów. Oznacza to, że istnieje |
49d56670 | 68 | niebezpieczeństwo, że protokoły aplikacji i powiązane programy |
69 | mogą odkryć informacje o pochodzeniu. Tor polega na Privoxy i | |
70 | podobnych oczyszczaczach protokołów w celu rozwiązania tego | |
71 | problemu. To jest kod alpha, więc może mieć więcej błędów | |
72 | psujących anonimowość niż kod wydany. Obecna sieć jest bardzo | |
73 | mała - co w dalszym stopniu ogranicza zapewnianą anonimowość. Tor | |
74 | aktualnie nie nadaje się do zadań wymagających anonimowości na | |
75 | wysoką stawkę. | |
e82ae145 | 76 | |
86ae6c7b | 77 | %prep |
e82ae145 | 78 | %setup -q |
86ae6c7b | 79 | |
80 | %build | |
81 | %configure | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/torrc{.sample,} | |
0a942a76 | 91 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
92 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
93 | install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
86ae6c7b | 94 | |
e82ae145 JB |
95 | install -d $RPM_BUILD_ROOT/var/lib/%{name} |
96 | install -d $RPM_BUILD_ROOT/var/run/%{name} | |
647e00f0 | 97 | install -d $RPM_BUILD_ROOT/var/log/{,archive/}%{name} |
86ae6c7b | 98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %pre | |
103 | %groupadd -g 156 tor | |
104 | %useradd -u 156 -r -d /var/lib/tor -s /bin/false -c "Tor" -g tor tor | |
86ae6c7b | 105 | |
106 | %post | |
107 | /sbin/chkconfig --add %{name} | |
108 | %service %{name} restart | |
109 | ||
110 | %preun | |
111 | if [ "$1" = "0" ]; then | |
112 | %service -q %{name} stop | |
113 | /sbin/chkconfig --del %{name} | |
86ae6c7b | 114 | fi |
115 | ||
0a942a76 | 116 | %postun |
117 | if [ "$1" = "0" ]; then | |
118 | %userremove tor | |
119 | %groupremove tor | |
120 | fi | |
121 | ||
86ae6c7b | 122 | %files |
123 | %defattr(644,root,root,755) | |
db7b1bd7 | 124 | %doc AUTHORS INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO |
86ae6c7b | 125 | %attr(755,root,root) %{_bindir}/* |
126 | %{_mandir}/man?/* | |
e5701848 | 127 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
0a942a76 | 128 | %dir %attr(750,root,tor) %{_sysconfdir}/%{name} |
129 | %attr(640,root,tor) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/* | |
130 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/* | |
131 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} | |
86ae6c7b | 132 | %dir %attr(750,root,tor) /var/lib/%{name} |
133 | %dir %attr(750,root,tor) /var/run/%{name} | |
0a942a76 | 134 | %dir %attr(750,root,tor) /var/log/%{name} |
318eb40d | 135 | %dir %attr(750,root,tor) /var/log/archive/%{name} |