SPECS: tor.spec - version 0.1.0.15, almost finished
radek
radek at pld-linux.org
Tue Nov 8 22:22:16 CET 2005
Author: radek Date: Tue Nov 8 21:22:16 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- version 0.1.0.15, almost finished
---- Files affected:
SPECS:
tor.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/tor.spec
diff -u SPECS/tor.spec:1.3 SPECS/tor.spec:1.4
--- SPECS/tor.spec:1.3 Fri Sep 23 01:51:30 2005
+++ SPECS/tor.spec Tue Nov 8 22:22:10 2005
@@ -2,13 +2,15 @@
Summary: Anonymizing overlay network for TCP (The onion router)
Summary(pl): Sieć nakładkowa dla TCP zapewniająca anonimowość (router cebulowy)
Name: tor
-Version: 0.1.0.14
-Release: 0.1
+Version: 0.1.0.15
+Release: 0.2
License: BSD-like
Group: Networking/Daemons
Source0: http://tor.eff.org/dist/%{name}-%{version}.tar.gz
-# Source0-md5: a3698218371ed0e647886fef0545bb44
+# Source0-md5: b2f1002da96ebfbfac7edf2272733967
Source1: %{name}.logrotate
+Source2: %{name}.init
+Source3: %{name}.sysconfig
URL: http://tor.eff.org/
BuildRequires: libevent-devel
BuildRequires: openssl-devel >= 0.9.6
@@ -80,8 +82,9 @@
DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/torrc{.sample,}
-install -D contrib/tor.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
install -d $RPM_BUILD_ROOT/var/lib/%{name}
install -d $RPM_BUILD_ROOT/var/run/%{name}
@@ -93,8 +96,6 @@
%pre
%groupadd -g 156 tor
%useradd -u 156 -r -d /var/lib/tor -s /bin/false -c "Tor" -g tor tor
-# ???
-/etc/rc.d/init.d/tor stop
%post
/sbin/chkconfig --add %{name}
@@ -111,18 +112,26 @@
#%{__rm} -f ${_localstatedir}/lib/%{name}/fingerprint
fi
+%postun
+if [ "$1" = "0" ]; then
+ %userremove tor
+ %groupremove tor
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO doc/FAQ
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man?/*
-/etc/rc.d/init.d/%{name}
-%dir %attr(755,root,tor) %{_sysconfdir}/%{name}
-%attr(644,root,tor) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
+%attr(755,root,root) /etc/rc.d/init.d/%{name}
+%dir %attr(750,root,tor) %{_sysconfdir}/%{name}
+%attr(640,root,tor) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
%dir %attr(750,root,tor) /var/lib/%{name}
%dir %attr(750,root,tor) /var/run/%{name}
-%dir %attr(750,root,tor) /var/log/{,archiv/}%{name}
+%dir %attr(750,root,tor) /var/log/%{name}
+%dir %attr(750,root,tor) /var/log/archiv/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -130,6 +139,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2005/11/08 21:22:10 radek
+- version 0.1.0.15, almost finished
+
Revision 1.3 2005/09/22 23:51:30 qboosh
- pl, some cleanups
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/tor.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list