blob: 556c9c3b7545cc7ac3c469008b3a1114d66fd587 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-build_snmp.sh,v 1.1 2011/10/16 15:19:09 spz Exp $
make it possible to deal with a net-snmp-config that's not in the default path
--- build/snmp.sh.orig 2008-09-30 16:37:31.000000000 +0000
+++ build/snmp.sh
@@ -2,8 +2,15 @@
SNMPINC=""
SNMPLIB=""
+ SNMPCONFIG=""
+
+ if test "$USERSNMPCONFIG" != ""; then
+ SNMPCONFIG="$USERSNMPCONFIG"
+ else
+ SNMPCONFIG="net-snmp-config" # it might be in the path
+ fi
+ VERSION=`${SNMPCONFIG} --version`
- VERSION=`net-snmp-config --version`
if test $? -eq 0
then
echo "Found Net-SNMP version $VERSION"
|