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

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