SPECS: sarg.spec - secured user_limit_block script

glen glen at pld-linux.org
Wed Feb 7 18:22:51 CET 2007


Author: glen                         Date: Wed Feb  7 17:22:51 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- secured user_limit_block script

---- Files affected:
SPECS:
   sarg.spec (1.30 -> 1.31) 

---- Diffs:

================================================================
Index: SPECS/sarg.spec
diff -u SPECS/sarg.spec:1.30 SPECS/sarg.spec:1.31
--- SPECS/sarg.spec:1.30	Fri Oct 27 20:04:27 2006
+++ SPECS/sarg.spec	Wed Feb  7 18:22:46 2007
@@ -1,6 +1,4 @@
 # $Revision$, $Date$
-# TODO:
-#	- review user_limit_block script
 Summary:	Squid log analyzer
 Summary(es):	generador de informes del squid por utilizador/ip/nombre
 Summary(pl):	Analizator logów Squida
@@ -13,6 +11,7 @@
 Source0:	http://dl.sourceforge.net/sarg/%{name}-%{version}.tar.gz
 # Source0-md5:	ec1ae7a0b666831caa8ace596b01174a
 Source1:	%{name}.crontab
+Source2:	%{name}-user_limit_block
 Patch0:		%{name}-font.patch
 Patch1:		%{name}-config.patch
 Patch2:		%{name}-paths.patch
@@ -79,12 +78,12 @@
 
 install sarg.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/sarg.conf
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name}
-install user_limit_block $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 
 mv $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/images,%{_datadir}/%{name}}
 mv $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/languages,%{_datadir}/%{name}}
-rm -r $RPM_BUILD_ROOT{/etc/sarg/sarg-php,/etc/sarg/fonts}
-rm $RPM_BUILD_ROOT/etc/sarg/css.tpl
+rm -r $RPM_BUILD_ROOT{%{_sysconfdir}/sarg/sarg-php,%{_sysconfdir}/sarg/fonts}
+rm $RPM_BUILD_ROOT%{_sysconfdir}/sarg/css.tpl
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -110,6 +109,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.31  2007/02/07 17:22:46  glen
+- secured user_limit_block script
+
 Revision 1.30  2006/10/27 18:04:27  darekr
 - updated to 2.2, todo
 - added -fix_pathes and -topsites patches
@@ -147,7 +149,7 @@
 - disabled messages written to stdout when sarg is run without any debug flags
 - /var/lib/%{name}/tmp as the default temporary dir (/tmp usage may be insecure)
 - crontab entry provided
-sarg should be usable now
+  sarg should be usable now
 
 Revision 1.19  2004/11/02 21:01:35  qboosh
 - X11-* still aren't metapackage names - use XFree86-fonts in R
@@ -158,7 +160,7 @@
 Revision 1.17  2004/11/02 13:47:39  jajcus
 - FHS updates
 - use font from X11-fonts instead of Verdana included in sarg sources (%{name}-font.patch)
-(nfy)
+  (nfy)
 
 Revision 1.16  2004/10/29 19:11:17  jajcus
 - starting upgrade to Version: 2.0.1 nfy
@@ -196,9 +198,9 @@
 - license fix
 
 Revision 1.5  2002/05/21 23:14:41  kloczek
-perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
+- perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
              s/^automake -a -c -f/\%\{__automake\}/; \
-	     s/^autoconf/\%\{__autoconf\}/"
+     s/^autoconf/\%\{__autoconf\}/"
 
 Revision 1.4  2002/05/21 08:59:29  klark
 - add example config
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sarg.spec?r1=1.30&r2=1.31&f=u



More information about the pld-cvs-commit mailing list