Pārlūkot izejas kodu

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.
Olle E. Johansson 12 gadi atpakaļ
vecāks
revīzija
7bbf8fece2
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14 0
      modules/snmpstats/Makefile

+ 14 - 0
modules/snmpstats/Makefile

@@ -15,6 +15,20 @@ else
 	INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config --prefix)/share/snmp/mibs
 	INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config --prefix)/share/snmp/mibs
 endif 
 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+=
 CFLAGS+=
 auto_gen=
 auto_gen=
 NAME=snmpstats.so
 NAME=snmpstats.so