pkgsrc/net/xymon/patches/patch-build_snmp.sh
spz 3d62fd57a8 fix build issues when building with non-standard PREFIX (found by dholland)
introduce options
allow optional building with net-snmp support

pkglint cosmetics
2011-10-16 15:19:08 +00:00

23 lines
576 B
Bash

$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"