summaryrefslogtreecommitdiff
path: root/debian/patches/07_docfiles.patch
blob: 01dbda22821eb66f717c7f7e655c9aeae19b2a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Patch documentation files to change paths to Debian specific locations.

Index: net-snmp-5.4.3/FAQ
===================================================================
--- net-snmp-5.4.3.orig/FAQ	2010-05-23 22:39:44.000000000 +0200
+++ net-snmp-5.4.3/FAQ	2010-06-04 17:15:28.000000000 +0200
@@ -108,7 +108,7 @@
    How do I configure access control?
    How do I configure SNMPv3 users?
    The 'createUser' line disappears when I start the agent.  Why?
-   What's the difference between /var/net-snmp and /usr/local/share/snmp?
+   What's the difference between /var/lib/snmp and /usr/share/snmp?
    My new agent is ignoring the old snmpd.conf file. Why?
    Where should the snmpd.conf file go?
    Why am I getting "Connection refused"?
@@ -700,7 +700,7 @@
   There are two steps required to add a new MIB file to the tools.
   Firstly, copy the MIB file into the appropriate location:
 
-	cp MY-MIB.txt /usr/local/share/snmp/mibs
+	cp MY-MIB.txt /usr/share/snmp/mibs
             (which makes it available to everyone on the system)
     or
         mkdir $HOME/.snmp
@@ -1396,7 +1396,7 @@
   If this is the case, then you can specify this interpreter
   explicitly as part of the trap handle directive:
 
-	traphandle default /usr/bin/perl /usr/local/bin/log_it
+	traphandle default /usr/bin/perl /usr/bin/log_it
 
     In this case, it's almost certain that you'll also
   need to give the full path to the traphandle script (as shown)
@@ -1490,7 +1490,7 @@
   string to use.
 
     Some of these (such as MIB information), might be best put in a
-  shared snmp.conf file (typically /usr/local/share/snmp/snmp.conf or
+  shared snmp.conf file (typically /usr/share/snmp/snmp.conf or
   /etc/snmp/snmp.conf) to apply to all users of the system.  Others
   (particularly the SNMPv3 security settings), are more likely to refer
   to a particular user, and should probably go in a personal snmp.conf
@@ -2655,7 +2655,7 @@
 
 	createUser {myUser} MD5 {myPassword} DES
 
-    to the file /var/net-snmp/snmpd.conf (where {myUser} and
+    to the file /var/lib/snmp/snmpd.conf (where {myUser} and
     {myPassword} are the appropriate values for username and password,
     _without_ the braces!).  Then re-start the snmpd agent.
 
@@ -2664,7 +2664,7 @@
         net-snmp-config --create-snmpv3-user
 
      and follow the prompts given.  This will create an entry
-     in the /var/net-snmp/snmpd.conf file similar to the above.
+     in the /var/lib/snmp/snmpd.conf file similar to the above.
      Then re-start the snmpd agent.
 
   3) Make sure the agent is running, and will respond to an SNMPv3
@@ -2698,16 +2698,16 @@
 
 
 
-What's the difference between /var/net-snmp and /usr/local/share/snmp?
----------------------------------------------------------------------
+What's the difference between /var/lib/snmp and /usr/share/snmp?
+----------------------------------------------------------------
 
-    The /var/net-snmp location is primarily used for information set
+    The /var/lib/snmp location is primarily used for information set
   during the running of the agent, which needs to be persistent between
   one run of the agent and the next.   Apart from "createUser" (see
   the previous entry), you shouldn't need to touch this file.
 
   All other user-provided configuration should go in the traditional
-  location (typically /usr/local/share/snmp/snmpd.conf or /etc/snmp).
+  location (typically /usr/share/snmp or /etc/snmp).
 
 
 
@@ -2728,7 +2728,7 @@
 -----------------------------------
 
     The default location for this file with the basic distribution is
-  /usr/local/share/snmp/snmpd.conf (or PREFIX/share/snmp/snmpd.conf).
+  /usr/share/snmp/snmpd.conf (or PREFIX/share/snmp/snmpd.conf).
   Ready-installed versions often look for the file as /etc/snmpd.conf,
   or /etc/snmp/snmpd.conf.
 
Index: net-snmp-5.4.3/EXAMPLE.conf.def
===================================================================
--- net-snmp-5.4.3.orig/EXAMPLE.conf.def	2009-06-01 15:11:07.000000000 +0200
+++ net-snmp-5.4.3/EXAMPLE.conf.def	2010-06-04 17:24:24.000000000 +0200
@@ -23,7 +23,7 @@
 #  SNMPv3 AUTHENTICATION
 #
 #  Note that these particular settings don't actually belong here.
-#  They should be copied to the file /var/net-snmp/snmpd.conf
+#  They should be copied to the file /var/lib/snmp/snmpd.conf
 #     and the passwords changed, before being uncommented in that file *only*.
 #  Then restart the agent