summaryrefslogtreecommitdiff
path: root/source/n/net-snmp/net-snmp.net-snmp-create-v3-user.etc.snmpd.conf.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/net-snmp/net-snmp.net-snmp-create-v3-user.etc.snmpd.conf.diff')
-rw-r--r--source/n/net-snmp/net-snmp.net-snmp-create-v3-user.etc.snmpd.conf.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/n/net-snmp/net-snmp.net-snmp-create-v3-user.etc.snmpd.conf.diff b/source/n/net-snmp/net-snmp.net-snmp-create-v3-user.etc.snmpd.conf.diff
new file mode 100644
index 00000000..b726c471
--- /dev/null
+++ b/source/n/net-snmp/net-snmp.net-snmp-create-v3-user.etc.snmpd.conf.diff
@@ -0,0 +1,14 @@
+Let net-snmp-create-v3-user save settings into /etc/ instead of /usr/
+
+diff -up net-snmp-5.5/net-snmp-create-v3-user.in.orig net-snmp-5.5/net-snmp-create-v3-user.in
+--- net-snmp-5.5/net-snmp-create-v3-user.in.orig 2008-07-22 16:33:25.000000000 +0200
++++ net-snmp-5.5/net-snmp-create-v3-user.in 2009-09-29 16:30:36.000000000 +0200
+@@ -158,7 +158,7 @@ if test ! -d $outfile ; then
+ touch $outfile
+ 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