]> git.pld-linux.org Git - packages/tor.git/blobdiff - tor.spec
- update to 0.1.1.26
[packages/tor.git] / tor.spec
index c7161a4b8e6465b3d5a8c0228bfeea8837bc6e04..660bc5057e23abed44a30c1f484047b96ca0310f 100644 (file)
--- a/tor.spec
+++ b/tor.spec
@@ -1,26 +1,36 @@
 Summary:       Anonymizing overlay network for TCP (The onion router)
+Summary(pl.UTF-8):     Sieć nakładkowa dla TCP zapewniająca anonimowość (router cebulowy)
 Name:          tor
-Version:       0.1.0.14
-Release:       0.1
+Version:       0.1.1.26
+Release:       1
+License:       BSD-like
+Group:         Networking/Daemons
 Source0:       http://tor.eff.org/dist/%{name}-%{version}.tar.gz
-# Source0-md5: f210023a97b5b97d1517a47f587876b9
+# Source0-md5: 0667df7a1f670bee5163b607aea172ba
 Source1:       %{name}.logrotate
+Source2:       %{name}.init
+Source3:       %{name}.sysconfig
 URL:           http://tor.eff.org/
-Group:         Networking/Daemons
-License:       BSD-like
-BuildRequires: libevent-devel
+BuildRequires: libevent-devel >= 1.1
 BuildRequires: openssl-devel >= 0.9.6
 BuildRequires: rpm-build >= 4.0
-Requires(pre): shadow-utils, /usr/bin/id, /bin/date, /bin/sh
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires:      rc-scripts
+Provides:      group(tor)
+Provides:      user(tor)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Tor is a connection-based low-latency anonymous communication system.
 
 This package provides the "tor" program, which serves as both a client
-and a relay node. Scripts will automatically create a "tor"
-user and group, and set tor up to run as a daemon when the system is
-rebooted.
+and a relay node. Scripts will automatically create a "tor" user and
+group, and set tor up to run as a daemon when the system is rebooted.
 
 Applications connect to the local Tor proxy using the SOCKS protocol.
 The local proxy chooses a path through a set of relays, in which each
@@ -37,8 +47,32 @@ bugs. The present network is very small -- this further reduces the
 strength of the anonymity provided. Tor is not presently suitable for
 high-stakes anonymity.
 
+%description -l pl.UTF-8
+Tor to oparty na połączeniach system anonimowej komunikacji o małych
+opóźnieniach.
+
+Ten pakiet dostarcza program "tor", służący zarówno jako klient, jak i
+węzeł przekaźnikowy. Skrypty automatycznie tworzą użytkownika i grupę
+"tor" i konfigurują tora do działania jako demon po uruchomieniu
+systemu.
+
+Aplikacje łączą się z lokalnym proxy Tor przy użyciu protokołu SOCKS.
+Lokalne proxy wybiera ścieżkę poprzez zbiór przekaźników, z których
+każdy zna swojego poprzednika i następnika, ale żadnego więcej. Ruch
+przychodzący jest rozpakowywany przy użyciu klucza symetrycznego na
+każdym przekaźniku, który odsłania kolejny przekaźnik.
+
+Uwaga: Tor nie oczyszcza protokołów. Oznacza to, że istnieje
+niebezpieczeństwo, że protokoły aplikacji i powiązane programy mogą
+odkryć informacje o pochodzeniu. Tor polega na Privoxy i podobnych
+oczyszczaczach protokołów w celu rozwiązania tego problemu. To jest
+kod alpha, więc może mieć więcej błędów psujących anonimowość niż kod
+wydany. Obecna sieć jest bardzo mała - co w dalszym stopniu ogranicza
+zapewnianą anonimowość. Tor aktualnie nie nadaje się do zadań
+wymagających anonimowości na wysoką stawkę.
+
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 %build
 %configure
@@ -51,12 +85,13 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/torrc{.sample,}
-install -D contrib/tor.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install -D %{SOURCE1}     $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
-%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/%{name}
-%{__mkdir_p} $RPM_BUILD_ROOT/var/run/%{name}
-%{__mkdir_p} $RPM_BUILD_ROOT/var/log/{,archiv/}%{name}
+install -d $RPM_BUILD_ROOT/var/lib/%{name}
+install -d $RPM_BUILD_ROOT/var/run/%{name}
+install -d $RPM_BUILD_ROOT/var/log/{,archiv/}%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,7 +99,6 @@ rm -rf $RPM_BUILD_ROOT
 %pre
 %groupadd -g 156 tor
 %useradd  -u 156 -r -d /var/lib/tor -s /bin/false -c "Tor" -g tor tor
-[ -f %{_initrddir}/%{name}  ] && /sbin/service %{name} stop
 
 %post
 /sbin/chkconfig --add %{name}
@@ -74,22 +108,25 @@ rm -rf $RPM_BUILD_ROOT
 if [ "$1" = "0" ]; then
        %service -q %{name} stop
        /sbin/chkconfig --del %{name}
-       #%{__rm} -f ${_localstatedir}/lib/%{name}/cached-directory
-       #%{__rm} -f ${_localstatedir}/lib/%{name}/bw_accounting
-       #%{__rm} -f ${_localstatedir}/lib/%{name}/control_auth_cookie
-       #%{__rm} -f ${_localstatedir}/lib/%{name}/router.desc
-       #%{__rm} -f ${_localstatedir}/lib/%{name}/fingerprint
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       %userremove  tor
+       %groupremove tor
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO doc/FAQ
+%doc AUTHORS INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man?/*
-%config %{_initrddir}/%{name}
-%dir %attr(755,root,tor) %{_sysconfdir}/%{name}/
-%attr(644,root,tor)  %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%dir %attr(750,root,tor) %{_sysconfdir}/%{name}
+%attr(640,root,tor)  %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 %dir %attr(750,root,tor) /var/lib/%{name}
 %dir %attr(750,root,tor) /var/run/%{name}
-%dir %attr(750,root,tor) /var/log/{,archiv/}%{name}
+%dir %attr(750,root,tor) /var/log/%{name}
+%dir %attr(750,root,tor) /var/log/archiv/%{name}
This page took 0.066949 seconds and 4 git commands to generate.