1 |
%define runuser toruser |
%define runuser toruser |
2 |
|
|
3 |
Name: tor |
Name: tor |
4 |
Version: 0.2.3.25 |
Version: 0.2.4.20 |
5 |
Release: %mkrel 4 |
Release: %mkrel 1 |
6 |
Summary: Anonymizing overlay network for TCP (The onion router) |
Summary: Anonymizing overlay network for TCP (The onion router) |
7 |
URL: http://www.torproject.org/ |
URL: http://www.torproject.org/ |
8 |
Group: Networking/Other |
Group: Networking/Other |
13 |
Requires(post): sysvinit |
Requires(post): sysvinit |
14 |
Requires(preun): sysvinit |
Requires(preun): sysvinit |
15 |
Requires(postun): sysvinit |
Requires(postun): sysvinit |
16 |
Requires: openssl >= 0.9.6 |
Requires: openssl >= 0.9.8 |
17 |
Requires: tsocks |
Requires: tsocks |
18 |
BuildRequires: openssl-devel >= 0.9.6 |
BuildRequires: openssl-devel >= 0.9.8 |
19 |
BuildRequires: libevent-devel |
BuildRequires: libevent-devel |
20 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
21 |
BuildRequires: autoconf2.5 |
BuildRequires: autoconf2.5 |
22 |
BuildRequires: transfig, tetex-latex |
BuildRequires: transfig |
23 |
|
BuildRequires: texlive |
24 |
BuildRequires: ghostscript |
BuildRequires: ghostscript |
25 |
Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz |
Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz |
26 |
Source1: %{name}.logrotate |
Source1: %{name}.logrotate |
85 |
echo 'complete -F _command $filenames torify' > ${RPM_BUILD_ROOT}%{_sysconfdir}/bash_completion.d/%{name} |
echo 'complete -F _command $filenames torify' > ${RPM_BUILD_ROOT}%{_sysconfdir}/bash_completion.d/%{name} |
86 |
|
|
87 |
# Systemd support |
# Systemd support |
88 |
install -D -p -m 0644 %SOURCE4 $RPM_BUILD_ROOT%_unitdir/%name.service |
install -D -p -m 0644 %{SOURCE4} ${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service |
89 |
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf |
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf |
90 |
|
|
91 |
%pre |
%pre |
115 |
%{_bindir}/tor-resolve |
%{_bindir}/tor-resolve |
116 |
%{_bindir}/tor-gencert |
%{_bindir}/tor-gencert |
117 |
%config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name} |
%config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name} |
118 |
%_unitdir/%name.service |
%{_unitdir}/%{name}.service |
119 |
%{_tmpfilesdir}/%{name}.conf |
%{_tmpfilesdir}/%{name}.conf |
120 |
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} |
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} |
121 |
%dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/ |
%dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/ |