rpms/mailgraph/devel mailgraph.conf, NONE, 1.1 mailgraph.init, NONE, 1.1 mailgraph.spec, NONE, 1.1 mailgraph.sysconfig, NONE, 1.1 paths.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Bernard Johnson (bjohnson)
fedora-extras-commits at redhat.com
Mon Jan 29 21:09:44 UTC 2007
Author: bjohnson
Update of /cvs/extras/rpms/mailgraph/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26559/devel
Modified Files:
.cvsignore sources
Added Files:
mailgraph.conf mailgraph.init mailgraph.spec
mailgraph.sysconfig paths.patch
Log Message:
auto-import mailgraph-1.12-4.fc6 on branch devel from mailgraph-1.12-4.fc6.src.rpm
--- NEW FILE mailgraph.conf ---
#
# Mailgraph: An postfix/sendmail log file analyzer
#
Alias /mailgraph /usr/share/mailgraph
<Directory /usr/share/mailgraph/>
AllowOverride None
Options +ExecCGI
DirectoryIndex mailgraph.cgi
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
--- NEW FILE mailgraph.init ---
#!/bin/bash
#
# Startup script for the mailgraph service
#
# chkconfig: - 82 28
# description: mailgraph mail log file analyzer
# processname: mailgraph
# pidfile: /var/run/mailgraph.pid
# config:
MAILLOG=/var/log/maillog
PRIORITY=-19
# Source function library.
. /etc/rc.d/init.d/functions
if [ -f /etc/sysconfig/mailgraph ]; then
. /etc/sysconfig/mailgraph
fi
# Path to the mailgraph script.
exe=/usr/sbin/mailgraph
prog=mailgraph
RETVAL=0
start() {
echo -n $"Starting $prog: "
daemon nice $PRIORITY $exe -l $MAILLOG -d \
--daemon-pid=/var/run/mailgraph.pid \
--daemon-rrd=/var/lib/mailgraph $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc $exe
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog /var/run/$prog.pid
}
reload() {
echo -n $"Reloading $prog: "
killproc $exe -HUP
RETVAL=$?
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $exe
RETVAL=$?
;;
restart)
stop
start
;;
condrestart)
if [ -f /var/run/$prog.pid ] ; then
stop
start
fi
;;
reload)
reload
;;
*)
echo $"Usage: $prog {start|stop|restart|condrestart|reload|status}"
exit 1
esac
exit $RETVAL
--- NEW FILE mailgraph.spec ---
Name: mailgraph
Version: 1.12
Release: 4%{?dist}%{?repotag:.%{repotag}}
Summary: A RRDtool frontend for Mail statistics
Group: System Environment/Daemons
License: GPL
URL: http://people.ee.ethz.ch/~dws/software/mailgraph
Source0: http://people.ee.ethz.ch/~dws/software/mailgraph/pub/mailgraph-1.12.tar.gz
Source1: mailgraph.init
Source2: mailgraph.conf
Source3: mailgraph.sysconfig
Patch0: paths.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl-File-Tail, rrdtool, httpd
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires(preun): /sbin/chkconfig
Requires(post): /sbin/chkconfig
BuildArch: noarch
%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 -q
%patch0 -p1 -b .paths
%build
%install
rm -rf $RPM_BUILD_ROOT
%{__install} -d -m 0755 $RPM_BUILD_ROOT/%{_sbindir}
%{__install} -d -m 0755 $RPM_BUILD_ROOT/%{_initrddir}
%{__install} -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
%{__install} -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d
%{__install} -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}/mailgraph
%{__install} -d -m 0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/mailgraph
%{__install} -d -m 0775 $RPM_BUILD_ROOT/%{_localstatedir}/cache/mailgraph
%{__install} -p -m 0755 mailgraph.cgi $RPM_BUILD_ROOT/%{_datadir}/mailgraph
%{__install} -p -m 0755 mailgraph.pl $RPM_BUILD_ROOT/%{_sbindir}/mailgraph
%{__install} -p -m 0755 %SOURCE1 $RPM_BUILD_ROOT/%{_initrddir}/mailgraph
%{__install} -p -m 0644 %SOURCE2 $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/
%{__install} -p -m 0644 %SOURCE3 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/mailgraph
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add %{name} 2>&1 > /dev/null || :
%preun
if [ $1 = 0 ]; then
%{_initrddir}/%{name} stop 2>&1 > /dev/null || :
/sbin/chkconfig --del %{name} 2>&1 > /dev/null || :
fi
exit 0
%postun
if [ "$1" -ge "1" ]; then
%{_initrddir}/%{name} condrestart 2>&1 > /dev/null || :
fi
%files
%defattr(-,root,root,-)
%dir %{_localstatedir}/lib/mailgraph
%dir %attr(0775,root,apache) %{_localstatedir}/cache/mailgraph
%{_sbindir}/*
%dir %{_datadir}/mailgraph
%{_datadir}/mailgraph/*
%{_initrddir}/mailgraph
%config(noreplace) %{_sysconfdir}/sysconfig/mailgraph
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mailgraph.conf
%doc CHANGES COPYING README
%changelog
* Sun Jan 28 2007 Bernard Johnson <bjohnson at symetrix.com> - 1.12-4
- replace %%{_var} with %%{_localstatedir}
* Sun Jan 28 2007 Bernard Johnson <bjohnson at symetrix.com> - 1.12-3
- consistent use of mode in creating directories
- add Requires for httpd
- preserve timestamps on install
* Sat Jan 27 2007 Bernard Johnson <bjohnson at symetrix.com> - 1.12-2
- add Requires(preun), Requires(post) for chkconfig
* Sat Jan 13 2007 Bernard Johnson <bjohnson at symetrix.com> - 1.12-1
- initial release
--- NEW FILE mailgraph.sysconfig ---
MAILLOG=/var/log/maillog
PRIORITY=-19
OPTIONS=--ignore-localhost
paths.patch:
--- NEW FILE paths.patch ---
--- mailgraph-1.12/mailgraph.cgi.orig 2005-10-16 13:17:00.000000000 -0400
+++ mailgraph-1.12/mailgraph.cgi 2007-01-13 18:51:55.000000000 -0500
@@ -15,9 +15,9 @@
my $points_per_sample = 3;
my $ypoints = 160;
my $ypoints_err = 96;
-my $rrd = 'mailgraph.rrd'; # path to where the RRD database is
-my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is
-my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images
+my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is
+my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is
+my $tmp_dir = '/var/cache/mailgraph'; # temporary directory where to store the images
my @graphs = (
{ title => 'Day Graphs', seconds => 3600*24, },
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mailgraph/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 29 Jan 2007 21:08:53 -0000 1.1
+++ .cvsignore 29 Jan 2007 21:09:14 -0000 1.2
@@ -0,0 +1 @@
+mailgraph-1.12.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mailgraph/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 29 Jan 2007 21:08:53 -0000 1.1
+++ sources 29 Jan 2007 21:09:14 -0000 1.2
@@ -0,0 +1 @@
+e3c88ee9ff6e423942ff8ce7038449c4 mailgraph-1.12.tar.gz
More information about the scm-commits
mailing list