/[packages]/updates/5/tor/current/SPECS/tor.spec
ViewVC logotype

Contents of /updates/5/tor/current/SPECS/tor.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1062439 - (show annotations) (download)
Wed Oct 19 14:58:09 2016 UTC (7 years, 6 months ago) by wally
File size: 3523 byte(s)
- new version 0.2.8.9 (mga#19145)
1 %define runuser toruser
2
3 #comment out if not rc
4 #define prel rc
5
6 %define rel 1
7
8 Name: tor
9 Version: 0.2.8.9
10 Release: %mkrel %{?prel:0.%prel.}%{rel}
11 Summary: Anonymizing overlay network for TCP (The onion router)
12 URL: http://www.torproject.org/
13 Group: Networking/Other
14 License: BSD-like
15 Requires(post): systemd >= %{systemd_required_version}
16 Requires(post): rpm-helper >= 0.24.8-1
17 Requires(preun): rpm-helper >= 0.24.8-1
18 Requires: openssl >= 0.9.8
19 Requires: tsocks
20 BuildRequires: openssl-devel >= 0.9.8
21 BuildRequires: libevent-devel
22 BuildRequires: zlib-devel
23 BuildRequires: autoconf2.5
24 Source0: http://www.torproject.org/dist/%{name}-%{version}%{?prel:-%prel}.tar.gz
25 Source1: %{name}.logrotate
26 Source4: %{name}.service
27 Source5: %{name}-tmpfiles.conf
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 and
33 a relay node. Scripts will automatically create a "%{runuser}" user and
34 group, and set tor up to run as a daemon when the system is rebooted.
35
36 Applications connect to the local Tor proxy using the SOCKS
37 protocol. The local proxy chooses a path through a set of relays, in
38 which each relay knows its predecessor and successor, but no
39 others. Traffic flowing down the circuit is unwrapped by a symmetric
40 key at each 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
49 for high-stakes anonymity.
50
51
52 %prep
53 %setup -q -n %{name}-%{version}%{?prel:-%prel}
54 %apply_patches
55
56 %build
57 %configure2_5x
58 %make V=1
59
60 %install
61 %makeinstall_std
62
63 # config file
64 install -p -m 644 %{buildroot}%{_sysconfdir}/%{name}/torrc.sample \
65 %{buildroot}%{_sysconfdir}/%{name}/torrc
66
67 # logrotate config
68 install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
69
70 # needed directories
71 mkdir -p -m 700 %{buildroot}%{_localstatedir}/lib/%{name}
72 mkdir -p -m 755 %{buildroot}%{_logdir}/%{name}
73
74 # Bash completion
75 mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
76 echo 'complete -F _command $filenames torify' > %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
77
78 # Systemd support
79 install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
80 install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
81
82 %pre
83 %_pre_useradd %{runuser} %{_localstatedir}/lib/%{name} /bin/false
84
85 %post
86 %_tmpfilescreate %{name}
87 %_post_service %{name}
88
89 %preun
90 %_preun_service %{name} || :
91 if [ $1 -eq 0 ]; then
92 rm -f %{_localstatedir}/lib/%{name}/*
93 fi
94
95 %files
96 %doc ReleaseNotes INSTALL LICENSE README ChangeLog doc/HACKING
97 %{_mandir}/man*/*
98 %{_bindir}/tor
99 %{_bindir}/torify
100 %{_bindir}/tor-resolve
101 %{_bindir}/tor-gencert
102 %{_unitdir}/%{name}.service
103 %{_tmpfilesdir}/%{name}.conf
104 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
105 %dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/
106 %config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/*
107 %attr(0700,%{runuser},%{runuser}) %dir %{_localstatedir}/lib/%{name}
108 %attr(0750,%{runuser},%{runuser}) %dir %{_logdir}/%{name}
109 %{_sysconfdir}/bash_completion.d/%{name}
110 %{_datadir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30