mailgraph/mailgraph.spec

Name: mailgraph
Summary: RRDtool-based mail graphing tool
Version: 1.14
Release: 1
License: GPL
Group: Applications/System
URL: http://mailgraph.schweikert.ch/
Description: Mailgraph is a very simple mail statistics RRDtool frontend for Postfix and Sendmail that produces daily, weekly, monthly and yearly graphs of received/sent and bounced/rejected mail.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was not successful.

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: nac

Summary: RRDtool-based mail graphing tool
Name: mailgraph
Version: 1.14
Release: 1%{?dist}
License: GPL
Group: Applications/System
URL: http://mailgraph.schweikert.ch/

Source0: http://mailgraph.schweikert.ch/pub/mailgraph-%{version}.tar.gz
Source1: mailgraph.httpd-conf
Patch0: mailgraph.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: perl(File::Tail)

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

%prep
%setup
%patch0

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp mailgraph.pl %{buildroot}%{_libdir}/mailgraph/mailgraph.pl
%{__install} -Dp mailgraph.cgi %{buildroot}%{_libdir}/mailgraph/cgi/mailgraph.cgi
%{__install} -Dp mailgraph-init %{buildroot}%{_initrddir}/mailgraph
%{__install} -Dp mailgraph.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mailgraph
%{__install} -Dp %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/mailgraph.conf.example

%{__install} -d -m0755 %{buildroot}%{_localstatedir}/lib/mailgraph/{img,rrd}/

%clean
%{__rm} -rf %{buildroot}

%post
if [ $1 -eq 1 ]; then
    /sbin/chkconfig --add mailgraph
fi

%postun
if [ $1 -eq 0 ]; then
    /sbin/chkconfig --del mailgraph
fi

%files
%defattr(-, root, root, 0755)
%doc CHANGES COPYING README
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mailgraph.conf.example
%config(noreplace) %{_sysconfdir}/sysconfig/mailgraph
%config %{_initrddir}/mailgraph
%{_libdir}/mailgraph/
%dir %{_localstatedir}/lib/mailgraph/
%{_localstatedir}/lib/mailgraph/img/
%{_localstatedir}/lib/mailgraph/rrd/

%changelog
* Sat Mar 01 2008 Dag Wieers <dag@wieers.com> - 1.14-1
- Updated to release 1.14.

* Fri Jul 29 2005 Wil Cooley <wcooley@nakedape.cc> - 1.11-1
- Initial package creation