mirror of
https://abf.rosa.ru/djam/tor.git
synced 2025-02-24 01:52:46 +00:00
Adjust spec style
This commit is contained in:
parent
183e6190b7
commit
ef0c5d0c76
1 changed files with 63 additions and 65 deletions
128
tor.spec
128
tor.spec
|
@ -1,29 +1,27 @@
|
||||||
%define runuser toruser
|
%define runuser toruser
|
||||||
|
|
||||||
|
Summary: Anonymizing overlay network for TCP (The onion router)
|
||||||
Name: tor
|
Name: tor
|
||||||
Version: 0.2.7.6
|
Version: 0.2.7.6
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Anonymizing overlay network for TCP (The onion router)
|
|
||||||
URL: http://www.torproject.org/
|
|
||||||
Group: Networking/Other
|
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
Requires(post): systemd
|
Group: Networking/Other
|
||||||
Requires(post): rpm-helper
|
Url: http://www.torproject.org/
|
||||||
Requires(preun): rpm-helper
|
|
||||||
Requires: openssl >= 0.9.6
|
|
||||||
Requires: tsocks
|
|
||||||
Requires: vidalia
|
|
||||||
BuildRequires: openssl-devel >= 0.9.6
|
|
||||||
BuildRequires: libevent-devel
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
BuildRequires: autoconf2.5
|
|
||||||
#BuildRequires: transfig, tetex-latex
|
|
||||||
BuildRequires: ghostscript
|
|
||||||
Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz
|
Source0: http://www.torproject.org/dist/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}.logrotate
|
Source1: %{name}.logrotate
|
||||||
Source3: %{name}.sysconfig
|
Source3: %{name}.sysconfig
|
||||||
Source4: %{name}.service
|
Source4: %{name}.service
|
||||||
Source5: %{name}-tmpfiles.conf
|
Source5: %{name}-tmpfiles.conf
|
||||||
|
BuildRequires: autoconf2.5
|
||||||
|
BuildRequires: ghostscript
|
||||||
|
BuildRequires: pkgconfig(libevent)
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
Requires: openssl
|
||||||
|
Requires: tsocks
|
||||||
|
Requires: vidalia
|
||||||
|
Requires(pre,post,preun,postun): rpm-helper
|
||||||
|
Requires(post): systemd
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tor is a connection-based low-latency anonymous communication system.
|
Tor is a connection-based low-latency anonymous communication system.
|
||||||
|
@ -47,38 +45,24 @@ bugs. The present network is very small -- this further reduces the
|
||||||
strength of the anonymity provided. Tor is not presently suitable
|
strength of the anonymity provided. Tor is not presently suitable
|
||||||
for high-stakes anonymity.
|
for high-stakes anonymity.
|
||||||
|
|
||||||
|
%files
|
||||||
%prep
|
%doc ReleaseNotes INSTALL LICENSE README ChangeLog doc/HACKING
|
||||||
%setup -q
|
%{_mandir}/man*/*
|
||||||
|
%{_bindir}/tor
|
||||||
%build
|
%{_bindir}/torify
|
||||||
%configure2_5x
|
%{_bindir}/tor-resolve
|
||||||
%make
|
%{_bindir}/tor-gencert
|
||||||
|
%{_unitdir}/%{name}.service
|
||||||
%install
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%makeinstall
|
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
|
||||||
|
%dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/
|
||||||
%define _logdir %{_var}/log
|
%config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/*
|
||||||
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||||
install -p -m 644 %{buildroot}%{_sysconfdir}/%{name}/torrc.sample %{buildroot}%{_sysconfdir}/%{name}/torrc
|
%attr(0700,%{runuser},%{runuser}) %dir %{_localstatedir}/lib/%{name}
|
||||||
|
%attr(0750,%{runuser},%{runuser}) %dir %{_var}/%{name}
|
||||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
|
%attr(0750,%{runuser},%{runuser}) %dir %{_var}/log/%{name}
|
||||||
cat %{SOURCE1} > %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
%{_sysconfdir}/bash_completion.d/%{name}
|
||||||
|
%{_datadir}/%{name}
|
||||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/sysconfig/
|
|
||||||
cat %{SOURCE3} > %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
||||||
|
|
||||||
mkdir -p -m 700 %{buildroot}%{_localstatedir}/lib/%{name}
|
|
||||||
mkdir -p -m 755 %{buildroot}%{_var}/%{name}
|
|
||||||
mkdir -p -m 755 %{buildroot}%{_logdir}/%{name}
|
|
||||||
|
|
||||||
# Bash completion
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
||||||
echo 'complete -F _command $filenames torify' > %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
|
|
||||||
|
|
||||||
# Systemd support
|
|
||||||
install -D -p -m 0644 %SOURCE4 %{buildroot}%_unitdir/%name.service
|
|
||||||
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%_pre_useradd %{runuser} / /bin/false
|
%_pre_useradd %{runuser} / /bin/false
|
||||||
|
@ -99,21 +83,35 @@ rm -f %{_localstatedir}/%{name}/fingerprint
|
||||||
%_postun_userdel %{runuser}
|
%_postun_userdel %{runuser}
|
||||||
%_postun_groupdel %{runuser}
|
%_postun_groupdel %{runuser}
|
||||||
|
|
||||||
%files
|
#----------------------------------------------------------------------------
|
||||||
%doc ReleaseNotes INSTALL LICENSE README ChangeLog doc/HACKING
|
|
||||||
%{_mandir}/man*/*
|
%prep
|
||||||
%{_bindir}/tor
|
%setup -q
|
||||||
%{_bindir}/torify
|
|
||||||
%{_bindir}/tor-resolve
|
%build
|
||||||
%{_bindir}/tor-gencert
|
%configure2_5x
|
||||||
%_unitdir/%name.service
|
%make
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
|
||||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
|
%install
|
||||||
%dir %attr(0755,root,%{runuser}) %{_sysconfdir}/%{name}/
|
%makeinstall
|
||||||
%config(noreplace) %attr(0644,root,%{runuser}) %{_sysconfdir}/%{name}/*
|
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
install -p -m 644 %{buildroot}%{_sysconfdir}/%{name}/torrc.sample %{buildroot}%{_sysconfdir}/%{name}/torrc
|
||||||
%attr(0700,%{runuser},%{runuser}) %dir %{_localstatedir}/lib/%{name}
|
|
||||||
%attr(0750,%{runuser},%{runuser}) %dir %{_var}/%{name}
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
|
||||||
%attr(0750,%{runuser},%{runuser}) %dir %{_logdir}/%{name}
|
cat %{SOURCE1} > %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
%{_sysconfdir}/bash_completion.d/%{name}
|
|
||||||
%{_datadir}/%{name}
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/sysconfig/
|
||||||
|
cat %{SOURCE3} > %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||||
|
|
||||||
|
mkdir -p -m 700 %{buildroot}%{_localstatedir}/lib/%{name}
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_var}/%{name}
|
||||||
|
mkdir -p -m 755 %{buildroot}%{_var}/log/%{name}
|
||||||
|
|
||||||
|
# Bash completion
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||||
|
echo 'complete -F _command $filenames torify' > %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
|
||||||
|
|
||||||
|
# Systemd support
|
||||||
|
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue