/[packages]/cauldron/tor/current/SPECS/tor.spec
ViewVC logotype

Annotation of /cauldron/tor/current/SPECS/tor.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 147145 - (hide annotations) (download)
Fri Sep 23 21:45:28 2011 UTC (10 years ago) by boklm
File size: 4109 byte(s)
update to version 0.2.2.33
1 boklm 73394 %define runuser toruser
2    
3     Name: tor
4 boklm 147145 Version: 0.2.2.33
5 boklm 73394 Release: %mkrel 1
6     Summary: Anonymizing overlay network for TCP (The onion router)
7     URL: http://www.torproject.org/
8     Group: Networking/Other
9     License: BSD-like
10     Requires(pre): rpm-helper
11     Requires(post): rpm-helper
12     Requires(preun): rpm-helper
13     Requires(postun): rpm-helper
14     Requires: openssl >= 0.9.6
15     Requires: tsocks
16     BuildRequires: openssl-devel >= 0.9.6
17     BuildRequires: libevent-devel
18     BuildRequires: zlib-devel
19     BuildRequires: autoconf2.5
20     BuildRequires: transfig, tetex-latex
21     BuildRequires: ghostscript
22     Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz
23     Source1: %{name}.logrotate
24     Source2: %{name}.init
25     Source3: %{name}.sysconfig
26    
27     %description
28     Tor is a connection-based low-latency anonymous communication system.
29    
30     This package provides the "tor" program, which serves as both a client and
31     a relay node. Scripts will automatically create a "%{runuser}" user and
32     group, and set tor up to run as a daemon when the system is rebooted.
33    
34     Applications connect to the local Tor proxy using the SOCKS
35     protocol. The local proxy chooses a path through a set of relays, in
36     which each relay knows its predecessor and successor, but no
37     others. Traffic flowing down the circuit is unwrapped by a symmetric
38     key at each relay, which reveals the downstream relay.
39    
40     Warnings: Tor does no protocol cleaning. That means there is a danger
41     that application protocols and associated programs can be induced to
42     reveal information about the initiator. Tor depends on Privoxy and
43     similar protocol cleaners to solve this problem. This is alpha code,
44     and is even more likely than released code to have anonymity-spoiling
45     bugs. The present network is very small -- this further reduces the
46     strength of the anonymity provided. Tor is not presently suitable
47     for high-stakes anonymity.
48    
49     %prep
50     %setup -q
51    
52     %build
53     %configure2_5x
54     %make
55    
56     %install
57     [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
58    
59     %makeinstall
60    
61     %define _logdir %{_var}/log
62    
63     mkdir -p ${RPM_BUILD_ROOT}%{_initrddir}
64     cat %{SOURCE2} > ${RPM_BUILD_ROOT}%{_initrddir}/%{name}
65     chmod 0755 ${RPM_BUILD_ROOT}%{_initrddir}/%{name}
66    
67     install -p -m 644 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/torrc.sample ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/torrc
68    
69     mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
70     cat %{SOURCE1} > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
71    
72     mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/
73     cat %{SOURCE3} > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
74    
75     mkdir -p -m 700 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/%{name}
76     mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_var}/run/%{name}
77     mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_logdir}/%{name}
78    
79     # Bash completion
80     mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/bash_completion.d
81     echo 'complete -F _command $filenames torify' > ${RPM_BUILD_ROOT}%{_sysconfdir}/bash_completion.d/%{name}
82    
83     %clean
84     [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
85    
86     %pre
87     %_pre_useradd %{runuser} / /bin/false
88    
89     %post
90     %_post_service %{name}
91    
92     %preun
93     %_preun_service %{name}
94     rm -f %{_localstatedir}/%{name}/cached-directory
95     rm -f %{_localstatedir}/%{name}/bw_accounting
96     rm -f %{_localstatedir}/%{name}/control_auth_cookie
97     rm -f %{_localstatedir}/%{name}/router.desc
98     rm -f %{_localstatedir}/%{name}/fingerprint
99    
100     %postun
101     %_postun_userdel %{runuser}
102     %_postun_groupdel %{runuser}
103    
104     %files
105     %defattr(-,root,root)
106 boklm 147145 %doc ReleaseNotes INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO
107 boklm 73394 %{_mandir}/man*/*
108     %{_bindir}/tor
109     %{_bindir}/torify
110     %{_bindir}/tor-resolve
111     %{_bindir}/tor-gencert
112     %config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name}
113     %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
114     %dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/
115     %config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/*
116     %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
117     %attr(0700,%{runuser},%{runuser}) %dir %{_localstatedir}/lib/%{name}
118     %attr(0750,%{runuser},%{runuser}) %dir %{_var}/run/%{name}
119     %attr(0750,%{runuser},%{runuser}) %dir %{_logdir}/%{name}
120     %{_sysconfdir}/bash_completion.d/%{name}
121     %{_datadir}/%{name}
122    
123    

  ViewVC Help
Powered by ViewVC 1.1.28