Blame SOURCES/net-snmp-5.7.2-cert-path.patch

23ac29
1134475 - dependency in perl package
23ac29
23ac29
Use hardcoded path to configuration directories instead of net-snmp-config.
23ac29
net-snmp-config is in net-snmp-devel package and we do not want net-snmp-perl
23ac29
depending on -devel.
23ac29
23ac29
diff -up net-snmp-5.7.2/local/net-snmp-cert.cert-path net-snmp-5.7.2/local/net-snmp-cert
23ac29
--- net-snmp-5.7.2/local/net-snmp-cert.cert-path	2012-10-10 00:28:58.000000000 +0200
23ac29
+++ net-snmp-5.7.2/local/net-snmp-cert	2014-09-01 12:05:10.582427036 +0200
23ac29
@@ -819,8 +819,7 @@ sub set_default {
23ac29
 sub cfg_path {
23ac29
   my $path;
23ac29
 
23ac29
-  $path = `$NetSNMP::Cert::CFGTOOL --snmpconfpath`;
23ac29
-  chomp $path;
23ac29
+  $path = "/etc/snmp:/usr/share/snmp:/usr/lib64/snmp:/home/jsafrane/.snmp:/var/lib/net-snmp";
23ac29
   return (wantarray ? split(':', $path) : $path);
23ac29
 }
23ac29
 
23ac29
@@ -1414,8 +1413,8 @@ sub checkReqs {
23ac29
   die("$NetSNMP::Cert::OPENSSL (v$ossl_ver): must be $ossl_min_ver or later")
23ac29
     if ($ossl_ver cmp $ossl_min_ver) < 0;
23ac29
 
23ac29
-  die("$NetSNMP::Cert::CFGTOOL not found: please install")
23ac29
-    if system("$NetSNMP::Cert::CFGTOOL > /dev/null 2>&1");
23ac29
+#  die("$NetSNMP::Cert::CFGTOOL not found: please install")
23ac29
+#    if system("$NetSNMP::Cert::CFGTOOL > /dev/null 2>&1");
23ac29
 }
23ac29
 
23ac29
 sub initOpts {