]> git.pld-linux.org Git - packages/tor.git/blame - tor.spec
- 0.2.0.34
[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
2b391f8a 4Version: 0.2.0.34
1f73a227 5Release: 1
e82ae145
JB
6License: BSD-like
7Group: Networking/Daemons
8e79bce0 8Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz
2b391f8a 9# Source0-md5: f20011be23d5a76988233df12c346f41
86ae6c7b 10Source1: %{name}.logrotate
0a942a76 11Source2: %{name}.init
12Source3: %{name}.sysconfig
8e79bce0 13URL: http://www.torproject.org/
55df0f75 14# http://archives.seul.org/or/announce/Feb-2009/msg00000.html
2b391f8a 15#BuildRequires: security(0.2.0.34)
47608012 16BuildRequires: libevent-devel >= 1.1
86ae6c7b 17BuildRequires: openssl-devel >= 0.9.6
18BuildRequires: rpm-build >= 4.0
dda091c2
ER
19BuildRequires: rpmbuild(macros) >= 1.268
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
49d56670 54Tor to oparty na połączeniach system anonimowej komunikacji o
55małych opóźnieniach.
e82ae145 56
49d56670 57Ten pakiet dostarcza program "tor", służący zarówno jako klient,
58jak i węzeł przekaźnikowy. Skrypty automatycznie tworzą
59użytkownika i grupę "tor" i konfigurują tora do działania jako
60demon po uruchomieniu systemu.
e82ae145 61
49d56670 62Aplikacje łączą się z lokalnym proxy Tor przy użyciu protokołu
63SOCKS. Lokalne proxy wybiera ścieżkę poprzez zbiór przekaźników,
64z których każdy zna swojego poprzednika i następnika, ale żadnego
65więcej. Ruch przychodzący jest rozpakowywany przy użyciu klucza
66symetrycznego na każdym przekaźniku, który odsłania kolejny
67przekaźnik.
e82ae145 68
9030a8ce 69Uwaga: Tor nie oczyszcza protokołów. Oznacza to, że istnieje
49d56670 70niebezpieczeństwo, że protokoły aplikacji i powiązane programy
71mogą odkryć informacje o pochodzeniu. Tor polega na Privoxy i
72podobnych oczyszczaczach protokołów w celu rozwiązania tego
73problemu. To jest kod alpha, więc może mieć więcej błędów
74psujących anonimowość niż kod wydany. Obecna sieć jest bardzo
75mała - co w dalszym stopniu ogranicza zapewnianą anonimowość. Tor
76aktualnie nie nadaje się do zadań wymagających anonimowości na
77wysoką stawkę.
e82ae145 78
86ae6c7b 79%prep
e82ae145 80%setup -q
86ae6c7b 81
82%build
83%configure
84%{__make}
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
91
92mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/torrc{.sample,}
0a942a76 93install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
94install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
95install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
86ae6c7b 96
e82ae145
JB
97install -d $RPM_BUILD_ROOT/var/lib/%{name}
98install -d $RPM_BUILD_ROOT/var/run/%{name}
647e00f0 99install -d $RPM_BUILD_ROOT/var/log/{,archive/}%{name}
86ae6c7b 100
101%clean
102rm -rf $RPM_BUILD_ROOT
103
104%pre
105%groupadd -g 156 tor
106%useradd -u 156 -r -d /var/lib/tor -s /bin/false -c "Tor" -g tor tor
86ae6c7b 107
108%post
109/sbin/chkconfig --add %{name}
110%service %{name} restart
111
112%preun
113if [ "$1" = "0" ]; then
114 %service -q %{name} stop
115 /sbin/chkconfig --del %{name}
86ae6c7b 116fi
117
0a942a76 118%postun
119if [ "$1" = "0" ]; then
120 %userremove tor
121 %groupremove tor
122fi
123
86ae6c7b 124%files
125%defattr(644,root,root,755)
db7b1bd7 126%doc AUTHORS INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO
86ae6c7b 127%attr(755,root,root) %{_bindir}/*
128%{_mandir}/man?/*
e5701848 129%attr(754,root,root) /etc/rc.d/init.d/%{name}
0a942a76 130%dir %attr(750,root,tor) %{_sysconfdir}/%{name}
131%attr(640,root,tor) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
132%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
133%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
86ae6c7b 134%dir %attr(750,root,tor) /var/lib/%{name}
135%dir %attr(750,root,tor) /var/run/%{name}
0a942a76 136%dir %attr(750,root,tor) /var/log/%{name}
318eb40d 137%dir %attr(750,root,tor) /var/log/archive/%{name}
This page took 0.078591 seconds and 4 git commands to generate.