Blame SOURCES/net-snmp-5.9-dir-fix.patch

bc6b3f
diff --git a/net-snmp-create-v3-user.in b/net-snmp-create-v3-user.in
bc6b3f
index b0c71d9..ac3c60f 100644
bc6b3f
--- a/net-snmp-create-v3-user.in
bc6b3f
+++ b/net-snmp-create-v3-user.in
bc6b3f
@@ -14,6 +14,10 @@ Xalgorithm="DES"
bc6b3f
 token=rwuser
bc6b3f
 
bc6b3f
 while test "x$done" = "x" -a "x$1" != "x" -a "x$usage" != "xyes"; do
bc6b3f
+case "$1" in
bc6b3f
+    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
bc6b3f
+    *) optarg= ;;
bc6b3f
+esac
bc6b3f
 
bc6b3f
 unset shifted
bc6b3f
 case $1 in
bc6b3f
@@ -136,7 +140,7 @@ fi
bc6b3f
 echo "$line" >> "$outfile"
bc6b3f
 # Avoid that configure complains that this script ignores @datarootdir@
bc6b3f
 echo "@datarootdir@" >/dev/null
bc6b3f
-outfile="@datadir@/snmp/snmpd.conf"
bc6b3f
+outfile="/etc/snmp/snmpd.conf"
bc6b3f
 line="$token $user"
bc6b3f
 echo "adding the following line to $outfile:"
bc6b3f
 echo "   $line"