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