SF.net SVN: gar:[26827] csw/mgar/pkg/mrtg/trunk/files/ 0002-Fix-hard-coded-path.patch

idogan23 at users.sourceforge.net idogan23 at users.sourceforge.net
Wed Dec 15 14:33:03 CET 2021


Revision: 26827
          http://sourceforge.net/p/gar/code/26827
Author:   idogan23
Date:     2021-12-15 13:33:03 +0000 (Wed, 15 Dec 2021)
Log Message:
-----------
mrtg: correcting patch

Modified Paths:
--------------
    csw/mgar/pkg/mrtg/trunk/files/0002-Fix-hard-coded-path.patch

Modified: csw/mgar/pkg/mrtg/trunk/files/0002-Fix-hard-coded-path.patch
===================================================================
--- csw/mgar/pkg/mrtg/trunk/files/0002-Fix-hard-coded-path.patch	2021-12-15 13:16:15 UTC (rev 26826)
+++ csw/mgar/pkg/mrtg/trunk/files/0002-Fix-hard-coded-path.patch	2021-12-15 13:33:03 UTC (rev 26827)
@@ -1,47 +1,14 @@
-From 2e1fbf5475788b4d1b95f50e5d964059358198b2 Mon Sep 17 00:00:00 2001
+From 10f33cebbd766890e924e617db2de91dd4067ce5 Mon Sep 17 00:00:00 2001
 From: Ihsan Dogan <ihsan at opencsw.org>
-Date: Wed, 15 Dec 2021 14:12:58 +0100
-Subject: [PATCH] Fix hard coded path
+Date: Wed, 15 Dec 2021 14:24:20 +0100
+Subject: [PATCH] fix hard coded path
 
 ---
- bin/cfgmaker               | 2 +-
- bin/indexmaker             | 2 +-
- bin/mrtg                   | 2 +-
- lib/mrtg2/Net_SNMP_util.pm | 2 +-
- 4 files changed, 4 insertions(+), 4 deletions(-)
+ lib/mrtg2/Net_SNMP_util.pm | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
 
-diff --git a/bin/cfgmaker b/bin/cfgmaker
-index f427184..03777b8 100755
---- a/bin/cfgmaker
-+++ b/bin/cfgmaker
-@@ -1,4 +1,4 @@
--#! /home/oetiker/.plenv/shims/perl -w
-+#! /opt/csw/bin/perl -w
- # -*- mode: Perl -*-
- ##################################################################
- # MRTG 2.17.8  -- Config file creator
-diff --git a/bin/indexmaker b/bin/indexmaker
-index 0852059..33154ac 100755
---- a/bin/indexmaker
-+++ b/bin/indexmaker
-@@ -1,4 +1,4 @@
--#! /home/oetiker/.plenv/shims/perl -w
-+#! /opt/csw/bin/perl -w
- # -*- mode: Perl -*-
- ##################################################################
- # MRTG 2.17.8  --- Index Generator
-diff --git a/bin/mrtg b/bin/mrtg
-index dde8a3a..ee58fa0 100755
---- a/bin/mrtg
-+++ b/bin/mrtg
-@@ -1,4 +1,4 @@
--#! /home/oetiker/.plenv/shims/perl -w
-+#! /opt/csw/bin/perl -w
- # -*- mode: cperl -*-
- 
- ###################################################################
 diff --git a/lib/mrtg2/Net_SNMP_util.pm b/lib/mrtg2/Net_SNMP_util.pm
-index b0299fc..8a7ca40 100644
+index b0299fc..b010cd3 100644
 --- a/lib/mrtg2/Net_SNMP_util.pm
 +++ b/lib/mrtg2/Net_SNMP_util.pm
 @@ -2016,7 +2016,7 @@ follow the rules and conventions of the F<Exporter> module (see L<Exporter>).
@@ -53,6 +20,33 @@
      use strict;
      use Net_SNMP_util;
      my ($host, $ret)
+@@ -2034,7 +2034,7 @@ This example sets the sysContact information on the remote host to
+ the demonstration of syntax only.  These parameters will need to be
+ set according to the SNMPv3 parameters of the remote host used by the script. 
+ 
+-    #! /usr/local/bin/perl
++    #! /opt/csw/bin/perl
+     use strict;
+     use Net_SNMP_util;
+     my($host, %v3hash, $ret);
+@@ -2056,7 +2056,7 @@ This example gets the contents of the ifTable by sending get-bulk-requests
+ until the responses are no longer part of the ifTable.  The ifTable can also
+ be retrieved using C<snmpmaptable>.
+ 
+-    #! /usr/local/bin/perl
++    #! /opt/csw/bin/perl
+     use strict;
+     use Net_SNMP_util;
+     my($host, @ret, $oid, $val);
+@@ -2074,7 +2074,7 @@ be retrieved using C<snmpmaptable>.
+ This example collects a table containing the columns ifDescr, ifInOctets, and
+ ifOutOctets.  A printing function is called once per row.
+ 
+-    #! /usr/local/bin/perl
++    #! /opt/csw/bin/perl
+     use strict;
+     use Net_SNMP_util;
+ 
 -- 
 2.4.0
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list