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

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