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