]> git.pld-linux.org Git - packages/cacti-template-mail_statistics.git/blobdiff - cacti-template-mail_statistics.spec
- renamed to be more generic: mail_statistics
[packages/cacti-template-mail_statistics.git] / cacti-template-mail_statistics.spec
index ee28a3be611eda63c9bf68fc89dfb3519e2cdd76..89530a44344f77c93133bf670ed64e2c3a37886f 100644 (file)
@@ -1,14 +1,16 @@
-%define                template        postfix
+%define                template        mail_statistics
 %include       /usr/lib/rpm/macros.perl
-Summary:       Postifix monitoring with Cacti
+Summary:       Mail logs Graphing with Cacti
 Name:          cacti-template-%{template}
 Version:       0.1
-Release:       0.5
+Release:       0.6
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://forums.cacti.net/download/file.php?id=4091#/postfix_mailserver.tar.gz
 # Source0-md5: 3cd539df3669c72b0679f18cbf74f164
 URL:           http://forums.cacti.net/about6657.html
+Patch0:                cachetime.patch
+Patch1:                more-matches.patch
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: rpmbuild(macros) >= 1.554
 Requires:      cacti
@@ -21,23 +23,25 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                snmpdconfdir    /etc/snmp
 %define                _libdir                 %{_prefix}/lib
 %define                dbfile                  /var/spool/postfix/mailstats.db
-%define                agentscript             %{_libdir}/snmpd-agent-cacti_postfix
+%define                agentscript             %{_libdir}/snmpd-agent-cacti-mail_statistics
 # This is officially registered: http://www.oid-info.com/get/1.3.6.1.4.1.16606
 %define                snmpoid                 .1.3.6.1.4.1.16606.2
 
 %description
 Postifix monitoring with Cacti.
 
-%package -n net-snmp-agent-cacti_postfix
-Summary:       SNMPd agent to provide Postfix stats
+%package -n net-snmp-agent-mail_statistics
+Summary:       SNMPd agent to provide mail stats
 Group:         Networking/Daemons
 Requires:      net-snmp
 
-%description -n net-snmp-agent-cacti_postfix
-SNMPd agent to provide Postfix stats for cacti.
+%description -n net-snmp-agent-mail_statistics
+SNMPd agent to provide mail stats for Cacti.
 
 %prep
 %setup -qc
+%patch0 -p1
+%patch1 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -54,13 +58,13 @@ rm -rf $RPM_BUILD_ROOT
 %post
 %cacti_import_template %{resourcedir}/cacti_host_template_postfix_mailserver.xml
 
-%post -n net-snmp-agent-cacti_postfix
+%post -n net-snmp-agent-mail_statistics
 if ! grep -qF %{snmpoid} %{snmpdconfdir}/snmpd.local.conf; then
        echo "extend %{snmpoid} cacti_postfix %{agentscript} /var/log/maillog %{dbfile} %{snmpoid}" >> %{snmpdconfdir}/snmpd.local.conf
        %service -q snmpd reload
 fi
 
-%preun -n net-snmp-agent-cacti_postfix
+%preun -n net-snmp-agent-mail_statistics
 if [ "$1" = 0 ]; then
        if [ -f %{snmpdconfdir}/snmpd.local.conf ]; then
                %{__sed} -i -e "/extend %(echo %{snmpoid} | sed -e 's,\.,\\.,g')/d" %{snmpdconfdir}/snmpd.local.conf
@@ -72,7 +76,7 @@ fi
 %defattr(644,root,root,755)
 %{resourcedir}/*.xml
 
-%files -n net-snmp-agent-cacti_postfix
+%files -n net-snmp-agent-mail_statistics
 %defattr(644,root,root,755)
 %attr(755,root,root) %{agentscript}
 %ghost %attr(700,root,root) %{dbfile}
This page took 0.078426 seconds and 4 git commands to generate.