2 |
|
|
3 |
Name: tor |
Name: tor |
4 |
Version: 0.2.3.25 |
Version: 0.2.3.25 |
5 |
Release: %mkrel 2 |
Release: %mkrel 3 |
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 |
9 |
License: BSD-like |
License: BSD-like |
10 |
Requires(post): systemd |
Requires(post): systemd >= %{systemd_required_version} |
11 |
Requires(post): rpm-helper >= 0.24.8-1 |
Requires(post): rpm-helper >= 0.24.8-1 |
12 |
Requires(preun): rpm-helper >= 0.24.8-1 |
Requires(preun): rpm-helper >= 0.24.8-1 |
13 |
Requires(post): sysvinit |
Requires(post): sysvinit |
85 |
|
|
86 |
# Systemd support |
# Systemd support |
87 |
install -D -p -m 0644 %SOURCE4 $RPM_BUILD_ROOT%_unitdir/%name.service |
install -D -p -m 0644 %SOURCE4 $RPM_BUILD_ROOT%_unitdir/%name.service |
88 |
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf |
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf |
89 |
|
|
90 |
%pre |
%pre |
91 |
%_pre_useradd %{runuser} / /bin/false |
%_pre_useradd %{runuser} / /bin/false |
92 |
|
|
93 |
%post |
%post |
94 |
systemd-tmpfiles --create %{name}.conf |
%_tmpfilescreate %{name} |
95 |
%_post_service %{name} |
%_post_service %{name} |
96 |
|
|
97 |
%preun |
%preun |
115 |
%{_bindir}/tor-gencert |
%{_bindir}/tor-gencert |
116 |
%config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name} |
%config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name} |
117 |
%_unitdir/%name.service |
%_unitdir/%name.service |
118 |
%{_prefix}/lib/tmpfiles.d/%{name}.conf |
%{_tmpfilesdir}/%{name}.conf |
119 |
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} |
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} |
120 |
%dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/ |
%dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/ |
121 |
%config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/* |
%config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/* |