Module: sip-router
Branch: master
Commit: 7bbf8fece2cc93c5b1ddd2c3dcc12e8a920dd54d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7bbf8fe…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: Sat Apr 6 22:02:48 2013 +0200
snmpstats Add disabled section in Makefile for compilation on Centos systems
Net-SNMP and snmpd can be built with embedded perl and libwrap support. If that's
the case on your system you need to enable the EMBEDDED_PERL section in the
Makefile. Maybe this could be enabled automatically.
---
modules/snmpstats/Makefile | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/modules/snmpstats/Makefile b/modules/snmpstats/Makefile
index f518ba6..0086ef1 100644
--- a/modules/snmpstats/Makefile
+++ b/modules/snmpstats/Makefile
@@ -15,6 +15,20 @@ else
INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config --prefix)/share/snmp/mibs
endif
+ifeq($(EMBEDDED_PERL),1)
+#
+# Enable this part if you compile on Centos 5 or another system that has a
+# packaged snmpd with embedded perl and libwrap support
+#
+BUILDAGENTLIBS += -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE \
+ -L/usr/local/lib
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a \
+ -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE \
+ -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc \
+ -lwrap \
+ -lsensors \
+ -lrpmdb -lrpm
+endif
+
CFLAGS+=
auto_gen=
NAME=snmpstats.so