Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
amavis-stats
> amavis-stats.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File amavis-stats.spec of Package amavis-stats (Revision 9)
Currently displaying revision
9
,
show latest
Name: amavis-stats Version: 0.1.22 Release: 1 License: GPL Group: Productivity/Networking/Email Summary: amavis statistics generator URL: http://osx.topicdesk.com/content/view/42/59/ Source0: http://downloads.topicdesk.com/amavis_stats/%{name}-%{version}.tar.gz Patch0: %{name}-gzcat.patch Patch1: %{name}-share-makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gzip %if 0%{?suse_version} BuildRequires: apache2 Requires: apache2 php5-rrdtool %define apache_usr wwwrun %define apache_grp www %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: httpd Requires: httpd %define apache_usr www %define apache_grp www %endif %description amavis-stats is a simple amavis statistics generator based on rrdtool. It produces graphs of clean emails, spam emails and infected emails broken down by virus, from amavis log entries (such as /var/log/mail.info). %prep %setup %patch0 %patch1 autoreconf -fi %configure \ --disable-php \ --without-php \ --enable-startup \ --disable-rrdtool \ --without-rrdtool \ --with-user=%{apache_usr} \ --with-group=%{apache_grp} \ %if 0%{?suse_version} --with-log-file=/var/log/mail %else --with-log-file=/var/log/maillog %endif %build %__make %install make DESTDIR=%{buildroot} install rm -rf %{buildroot}%{_prefix}/doc mkdir -p %{buildroot}%{_var}/cache/%{name} mkdir -p %{buildroot}%{_var}/lib/%{name} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc doc/amavis-stats.pod doc/amavis-stats.txt %config(noreplace) %{_sysconfdir}/amavis-stats.conf %config %{_sysconfdir}/amavis-stats.conf.default %{_sbindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1* %dir %attr(0755,%{apache_usr},%{apache_grp}) %{_var}/cache/%{name} %dir %attr(0755,%{apache_usr},%{apache_grp}) %{_var}/lib/%{name} %changelog * Tue Oct 14 2008 Carsten Schoene <cs@linux-administrator.com> - initial build