File queuegraph.spec of Package queuegraph

# norootforbuild

Name:           queuegraph
Summary:        RRDtool frontend for Mail statistics
Version:        20070728
Release:        1
License:        GPLv2
Group:          System/Monitoring
Source0:        %name.tar.bz2
Source10:       queuegraph-rpmlintrc
Patch1:         queuegraph-locations.patch
BuildRequires:  apache2-devel
PreReq:         %insserv_prereq
Requires:       cron
Requires:       perl 
Requires:       rrdtool
Recommends:     apache2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         cgidir %(/usr/sbin/apxs2 -q CGIDIR)

Queuegraph is a very simple mail statistics RRDtool frontend for Postfix
that produces daily, weekly, monthly and yearly graphs of received/sent 
and bounced/rejected mail.

    Ralf Hildebrandt

%setup -q -n %name
%patch1 -p1


install -Dm644 %{SOURCE1} %buildroot%{_sysconfdir}/cron.d/
install -Dm755 %name.cgi %buildroot%cgidir/%name.cgi
install -Dm755 %buildroot/%{_bindir}/
install -d -m 750 %buildroot/var/lib/%name/img

rm -rf %buildroot

%config(noreplace) %{_sysconfdir}/cron.d/
%attr(2750, root, www) %dir /var/lib/%name
%attr(0750, wwwrun, www) %dir /var/lib/%name/img

openSUSE Build Service is sponsored by