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

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