Module: check_mk
Branch: master
Commit: 372ac970e4b4ca84f69deef6fa164b6f1bbb7842
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=372ac970e4b4ca…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 8 13:04:43 2018 +0100
net-snmp: Cleaned up .f12 file
Change-Id: Iac2bc8a4e0b6592914812e7150b3e029cefbb316
---
omd/packages/net-snmp/.f12 | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/omd/packages/net-snmp/.f12 b/omd/packages/net-snmp/.f12
index 3762c7a..12a9d73 100755
--- a/omd/packages/net-snmp/.f12
+++ b/omd/packages/net-snmp/.f12
@@ -5,24 +5,14 @@ SITE=${SITE:-$(cat ../../../.site 2>/dev/null || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
ROOT=/omd/sites/$SITE
-echo "Installing to site \"$SITE\"..."
+VERSION=$(sed -n 's/VERSION.*= \(.*\)/\1/p' Makefile)
-if [ ! -d net-snmp-5.7.3 ]; then
+echo "Compile net-snmp..."
+if [ ! -d net-snmp-$VERSION ]; then
make
- cd net-snmp-5.7.3
else
- cd net-snmp-5.7.3
- make || exit 1
+ make -C net-snmp-$VERSION || exit 1
fi
-cd python
-sudo PYTHONPATH=$PYTHONPATH:$ROOT/lib/python \
- python setup.py install --home=$ROOT \
- --prefix='' \
- --install-platlib=$ROOT/lib/python \
- --install-purelib=$ROOT/lib/python
-
-cd ..
-
-sudo install -m 755 apps/.libs/snmp{bulkwalk,walk,get} $ROOT/bin
-sudo install -m 644 snmplib/.libs/libnetsnmp.* $ROOT/lib
+echo "Installing to site \"$SITE\"..."
+sudo make install OMD_ROOT=$ROOT