Name: sarg Version: 2.3.1 Release: 1mamba Summary: Sarg - Squid Analysis Report Generator Group: System/Management Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://sarg.sourceforge.net/sarg.php Source0: http://heanet.dl.sourceforge.net/sourceforge/sarg/sarg-%{version}.tar.gz Source1: sarg-conf Source2: sarg-crond.daily Source3: sarg-crond.weekly Patch0: %{name}-1.4.1-index.sort.patch Patch1: %{name}-2.2.2-topsites.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgd-devel ## AUTOBUILDREQ-END Requires: squid >= 2.5 Requires: vixie-cron >= 3.0.1 Requires: mailx >= 8.1.1 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Sarg - Squid Analysis Report Generator is a tool that allow you to view "where" your users are going to on the Internet. Sarg generate reports in html showing users, IP Addresses, bytes, sites and times. %prep %setup -q #%patch0 -p0 #%patch1 -p1 -b .topsites %build %configure \ --sysconfdir=%{_sysconfdir}/squid/sarg \ --mandir=%{_mandir}/man1/ \ --enable-sargphp=/var/www/html/squid-reports/ %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/squid/sarg/sarg.conf install -D -m 0755 %{S:2} %{buildroot}%{_sysconfdir}/cron.daily/sarg install -D -m 0755 %{S:3} %{buildroot}%{_sysconfdir}/cron.weekly/sarg %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post case $LANG in it*) sed -i "s|#language .*|language Italian|" \ %{_sysconfdir}/squid/sarg/sarg.conf ;; esac exit 0 %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/sarg %dir %{_sysconfdir}/squid/sarg %config(noreplace) %{_sysconfdir}/squid/sarg/sarg.conf %config(noreplace) %{_sysconfdir}/squid/sarg/exclude_codes %{_sysconfdir}/squid/sarg/css.tpl %{_datadir}/sarg/fonts/* %{_datadir}/sarg/images/* #%{_datadir}/sarg/languages/* %{_sysconfdir}/squid/sarg/user_limit_block %{_sysconfdir}/cron.daily/sarg %{_sysconfdir}/cron.weekly/sarg %{_mandir}/man1/* %changelog * Fri Oct 01 2010 Automatic Build System 2.3.1-1mamba - automatic update by autodist * Mon Aug 09 2010 Automatic Build System 2.3-1mamba - automatic update by autodist * Wed Mar 03 2010 Silvan Calarco 2.2.7.1-1mamba - update to 2.2.7.1 * Fri Feb 05 2010 Silvan Calarco 2.2.6-1mamba - update to 2.2.6 * Thu Jan 01 2009 Silvan Calarco 2.2.5-1mamba - update to 2.2.5 * Thu Oct 05 2006 Davide Madrisan 2.0.8-1qilnx - update to version 2.0.8 by autospec - modified crontab daily script - added cron.weekly script * Thu May 12 2005 Silvan Calarco 2.0.7-1qilnx - update to version 2.0.7 by autospec * Fri Apr 08 2005 Silvan Calarco 2.0.5-1qilnx - update to version 2.0.5 by autospec * Wed Sep 24 2003 Silvan Calarco 1.4.1-3qilnx - html index page applied from sarg web site - removed notification via email * Thu Jun 12 2003 Silvan Calarco 1.4.1-2qilnx - added mailx support - changed report frequency from hourly to daily * Wed Jun 04 2003 Silvan Calarco 1.4.1-1qilnx - first build