sarg/sarg.spec

127 lines
4.0 KiB
RPMSpec
Raw Normal View History

Name: sarg
Version: 2.3.8
Release: 1mamba
Summary: Sarg - Squid Analysis Report Generator
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://sarg.sourceforge.net/sarg.php
Source0: http://downloads.sourceforge.net/sourceforge/sarg/sarg-%{version}.tar.gz
Source1: sarg-conf
Source2: sarg-crond.daily
Source3: sarg-crond.weekly
Source4: sarg-2.3.1-it.po
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
cp %{SOURCE4} po/it.po
%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}"
%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/*
%{_sysconfdir}/squid/sarg/user_limit_block
%{_sysconfdir}/cron.daily/sarg
%{_sysconfdir}/cron.weekly/sarg
%{_mandir}/man1/*
%changelog
* Sun Jun 01 2014 Automatic Build System <autodist@mambasoft.it> 2.3.8-1mamba
- automatic update by autodist
* Fri Nov 08 2013 Automatic Build System <autodist@mambasoft.it> 2.3.7-1mamba
- automatic update by autodist
* Sun Apr 21 2013 Automatic Build System <autodist@mambasoft.it> 2.3.6-1mamba
- automatic version update by autodist
* Thu Jan 17 2013 Automatic Build System <autodist@mambasoft.it> 2.3.5-1mamba
- automatic version update by autodist
* Thu Jan 03 2013 Automatic Build System <autodist@mambasoft.it> 2.3.3-1mamba
- automatic version update by autodist
* Tue Apr 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.1-2mamba
- pass --localedir to configure to fix language support
* Fri Oct 01 2010 Automatic Build System <autodist@mambasoft.it> 2.3.1-1mamba
- automatic update by autodist
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
- automatic update by autodist
* Wed Mar 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.7.1-1mamba
- update to 2.2.7.1
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.6-1mamba
- update to 2.2.6
* Thu Jan 01 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.5-1mamba
- update to 2.2.5
* Thu Oct 05 2006 Davide Madrisan <davide.madrisan@qilinux.it> 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 <silvan.calarco@mambasoft.it> 2.0.7-1qilnx
- update to version 2.0.7 by autospec
* Fri Apr 08 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.5-1qilnx
- update to version 2.0.5 by autospec
* Wed Sep 24 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.1-3qilnx
- html index page applied from sarg web site
- removed notification via email
* Thu Jun 12 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.4.1-2qilnx
- added mailx support
- changed report frequency from hourly to daily
* Wed Jun 04 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.4.1-1qilnx
- first build