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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 274220 by fwang, Thu Jun 14 00:53:50 2012 UTC revision 274221 by colin, Wed Jul 25 12:23:32 2012 UTC
# Line 2  Line 2 
2    
3  Name:           tor  Name:           tor
4  Version:        0.2.2.37  Version:        0.2.2.37
5  Release:        %mkrel 1  Release:        %mkrel 2
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
# Line 24  Source0:       http://www.torproject.org/dist/ Line 24  Source0:       http://www.torproject.org/dist/
24  Source1:        %{name}.logrotate  Source1:        %{name}.logrotate
25  Source2:        %{name}.init  Source2:        %{name}.init
26  Source3:        %{name}.sysconfig  Source3:        %{name}.sysconfig
27  Source4:        tor.systemd.service  Source4:        %{name}.service
28    Source5:        %{name}-tmpfiles.conf
29    
30  %description  %description
31  Tor is a connection-based low-latency anonymous communication system.  Tor is a connection-based low-latency anonymous communication system.
# Line 73  mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_sysc Line 74  mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_sysc
74  cat %{SOURCE3} > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}  cat %{SOURCE3} > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
75    
76  mkdir -p -m 700 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/%{name}  mkdir -p -m 700 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/%{name}
 mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_var}/run/%{name}  
77  mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_var}/%{name}  mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_var}/%{name}
78  mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_logdir}/%{name}  mkdir -p -m 755 ${RPM_BUILD_ROOT}%{_logdir}/%{name}
79    
# Line 83  echo 'complete -F _command $filenames to Line 83  echo 'complete -F _command $filenames to
83    
84  # Systemd support  # Systemd support
85  install -D -p -m 0644 %SOURCE4 $RPM_BUILD_ROOT%_unitdir/%name.service  install -D -p -m 0644 %SOURCE4 $RPM_BUILD_ROOT%_unitdir/%name.service
86    install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
87    
88  %pre  %pre
89  %_pre_useradd %{runuser} / /bin/false  %_pre_useradd %{runuser} / /bin/false
90    
91  %post  %post
92    systemd-tmpfiles --create %{name}.conf
93  %_post_service %{name}  %_post_service %{name}
94    
95  %preun  %preun
# Line 111  rm -f %{_localstatedir}/%{name}/fingerpr Line 113  rm -f %{_localstatedir}/%{name}/fingerpr
113  %{_bindir}/tor-gencert  %{_bindir}/tor-gencert
114  %config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name}  %config(noreplace) %attr(0755,%{runuser},%{runuser}) %{_initrddir}/%{name}
115  %_unitdir/%name.service  %_unitdir/%name.service
116    %{_prefix}/lib/tmpfiles.d/%{name}.conf
117  %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}  %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
118  %dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/  %dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/
119  %config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/*  %config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/*
120  %config(noreplace) %{_sysconfdir}/sysconfig/%{name}  %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
121  %attr(0700,%{runuser},%{runuser}) %dir %{_localstatedir}/lib/%{name}  %attr(0700,%{runuser},%{runuser}) %dir %{_localstatedir}/lib/%{name}
 %attr(0750,%{runuser},%{runuser}) %dir %{_var}/run/%{name}  
122  %attr(0750,%{runuser},%{runuser}) %dir %{_var}/%{name}  %attr(0750,%{runuser},%{runuser}) %dir %{_var}/%{name}
123  %attr(0750,%{runuser},%{runuser}) %dir %{_logdir}/%{name}  %attr(0750,%{runuser},%{runuser}) %dir %{_logdir}/%{name}
124  %{_sysconfdir}/bash_completion.d/%{name}  %{_sysconfdir}/bash_completion.d/%{name}

Legend:
Removed from v.274220  
changed lines
  Added in v.274221

  ViewVC Help
Powered by ViewVC 1.1.28