diff options
author | Jochen Friedrich <jochen@scram.de> | 2010-06-10 16:11:07 +0000 |
---|---|---|
committer | Jochen Friedrich <jochen@scram.de> | 2010-06-10 16:11:07 +0000 |
commit | 43c74407815e7f4288c295305c8234d12eccb67f (patch) | |
tree | 7adcae62319de11a96f339c93e67a46355d6267e /debian/patches | |
parent | 335ea4f549ddcc4bdc1a7159efdbdfa78b2b9c88 (diff) | |
download | pkg-net-snmp-43c74407815e7f4288c295305c8234d12eccb67f.tar.gz |
Reorganize 07_docfiles.patch and 08_defaultconfig.patch
git-svn-id: svn://svn.debian.org/pkg-net-snmp/trunk@334 db575a87-f10d-0410-9662-f1d5ac62e4ba
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/07_docfiles.patch | 13 | ||||
-rw-r--r-- | debian/patches/08_defaultconfig.patch | 128 |
2 files changed, 17 insertions, 124 deletions
diff --git a/debian/patches/07_docfiles.patch b/debian/patches/07_docfiles.patch index daff2f8..999509d 100644 --- a/debian/patches/07_docfiles.patch +++ b/debian/patches/07_docfiles.patch @@ -86,3 +86,16 @@ Index: net-snmp-5.4.3/FAQ 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 + diff --git a/debian/patches/08_defaultconfig.patch b/debian/patches/08_defaultconfig.patch index 071b228..b16c8a6 100644 --- a/debian/patches/08_defaultconfig.patch +++ b/debian/patches/08_defaultconfig.patch @@ -1,127 +1,7 @@ ---- net-snmp-5.1.2.orig/EXAMPLE.conf.def -+++ net-snmp-5.1.2/EXAMPLE.conf.def -@@ -6,7 +6,7 @@ - ############################################################################### - # - # This file is intended to only be an example. If, however, you want --# to use it, it should be placed in SYSCONFDIR/snmp/snmpd.conf. -+# to use it, it should be placed in /etc/snmp/snmpd.conf. - # When the snmpd agent starts up, this is where it will look for it. - # - # You might be interested in generating your own snmpd.conf file using -@@ -58,31 +58,38 @@ - # from): - - # sec.name source community --com2sec local localhost COMMUNITY --com2sec mynetwork NETWORK/24 COMMUNITY -+com2sec paranoid default public -+#com2sec readonly default public -+#com2sec readwrite default private - - #### - # Second, map the security names into group names: - - # sec.model sec.name --group MyRWGroup v1 local --group MyRWGroup v2c local --group MyRWGroup usm local --group MyROGroup v1 mynetwork --group MyROGroup v2c mynetwork --group MyROGroup usm mynetwork -+group MyROSystem v1 paranoid -+group MyROSystem v2c paranoid -+group MyROSystem usm paranoid -+group MyROGroup v1 readonly -+group MyROGroup v2c readonly -+group MyROGroup usm readonly -+group MyRWGroup v1 readwrite -+group MyRWGroup v2c readwrite -+group MyRWGroup usm readwrite - - #### - # Third, create a view for us to let the groups have rights to: - - # incl/excl subtree mask - view all included .1 80 -+view system included .1.3.6.1.2.1.1 -+#view system included .iso.org.dod.internet.mgmt.mib-2.system - - #### - # Finally, grant the 2 groups access to the 1 view with different - # write permissions: - - # context sec.model sec.level match read write notif -+access MyROSystem "" any noauth exact system none none - access MyROGroup "" any noauth exact all none none - access MyRWGroup "" any noauth exact all all none - -@@ -100,8 +106,8 @@ - # value of an object whose value is given here will fail with an error - # status of notWritable. - --syslocation Right here, right now. --syscontact Me <me@somewhere.org> -+syslocation Unknown (configure /etc/snmp/snmpd.local.conf) -+syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf) - - # Example output of snmpwalk: - # % snmpwalk -v 1 -c public localhost system -@@ -135,13 +141,13 @@ - # - - # Make sure mountd is running --proc mountd -+#proc mountd - - # Make sure there are no more than 4 ntalkds running, but 0 is ok too. --proc ntalkd 4 -+#proc ntalkd 4 - - # Make sure at least one sendmail, but less than or equal to 10 are running. --proc sendmail 10 1 -+#proc sendmail 10 1 - - # A snmpwalk of the prTable would look something like this: - # -@@ -199,7 +205,7 @@ - # ARGS: optional arguments to be passed to the program - - # a simple hello world --exec echotest /bin/echo hello world -+#exec echotest /bin/echo hello world - - # Run a shell script containing: - # -@@ -250,7 +256,7 @@ - - # Check the / partition and make sure it contains at least 10 megs. - --disk / 10000 -+#disk / 10000 - - # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM - # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0 -@@ -279,7 +285,7 @@ - # 15MAX: Similar, but for 15 min average. - - # Check for loads: --load 12 14 14 -+#load 12 14 14 - - # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM - # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1 -@@ -365,7 +371,7 @@ - # (commented out here since it requires that you place the - # script in the right location. (its not installed by default)) - --# pass .EXTENSIBLEDOTMIB.255 /bin/sh PREFIX/local/passtest -+# pass .EXTENSIBLEDOTMIB.255 /bin/sh /usr/local/passtest - - # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255 - # enterprises.ucdavis.255.1 = "life the universe and everything" ---- net-snmp-5.1.2.orig/EXAMPLE-trap.conf -+++ net-snmp-5.1.2/EXAMPLE-trap.conf +Index: net-snmp-5.4.3/EXAMPLE-trap.conf +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ net-snmp-5.4.3/EXAMPLE-trap.conf 2010-06-04 17:15:48.000000000 +0200 @@ -0,0 +1,18 @@ +############################################################################### +# |