File queuegraph.spec of Package queuegraph

# norootforbuild


Name:           queuegraph
Summary:        RRDtool frontend for Mail statistics
Version:        20070728
Release:        1
Url:            http://www.arschkrebs.de/postfix/queuegraph/
License:        GPLv2
Group:          System/Monitoring
Source0:        %name.tar.bz2
Source1:        suse.de-queuegraph
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)

%description
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.


Authors:
--------
    Ralf Hildebrandt

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

%build

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

%clean
rm -rf %buildroot

%files 
%defattr(-,root,root)
%doc README
%config(noreplace) %{_sysconfdir}/cron.d/suse.de-%name
%{_bindir}/%name-rrd.sh
%attr(2750, root, www) %dir /var/lib/%name
%attr(0750, wwwrun, www) %dir /var/lib/%name/img
%cgidir/*

%changelog