]> git.pld-linux.org Git - packages/cacti-template-mail_statistics.git/blobdiff - cacti-template-mail_statistics.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-template-mail_statistics.git] / cacti-template-mail_statistics.spec
index 89530a44344f77c93133bf670ed64e2c3a37886f..774e0089d3bc08836fc2bee9a083da8084fe3a7b 100644 (file)
@@ -1,5 +1,4 @@
 %define                template        mail_statistics
-%include       /usr/lib/rpm/macros.perl
 Summary:       Mail logs Graphing with Cacti
 Name:          cacti-template-%{template}
 Version:       0.1
@@ -60,14 +59,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
+       echo "pass %{snmpoid} cacti_postfix %{agentscript} /var/log/maillog %{dbfile} %{snmpoid}" >> %{snmpdconfdir}/snmpd.local.conf
        %service -q snmpd reload
 fi
 
 %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
+               %{__sed} -i -e "/pass %(echo %{snmpoid} | sed -e 's,\.,\\.,g')/d" %{snmpdconfdir}/snmpd.local.conf
                %service -q snmpd reload
        fi
 fi
This page took 0.061996 seconds and 4 git commands to generate.