net-snmp/net-snmp-5.1.2-dir-fix.patch

15 lines
581 B
Diff

Assume that the configuration is in /etc/snmp, instead of /usr/share/snmp
diff -up net-snmp-5.4.1/net-snmp-config.in.backup_patch_6 net-snmp-5.4.1/net-snmp-config.in
--- net-snmp-5.4.1/net-snmp-config.in.backup_patch_6 2007-06-30 00:18:27.000000000 +0200
+++ net-snmp-5.4.1/net-snmp-config.in 2008-07-25 12:53:19.000000000 +0200
@@ -302,7 +302,7 @@ else
fi
echo $line >> $outfile
- outfile="@datadir@/snmp/snmpd.conf"
+ outfile="/etc/snmp/snmpd.conf"
line="$token $user"
echo "adding the following line to $outfile:"
echo " " $line