Build system: Add the PF plugin.
authorFlorian Forster <octo@collectd.org>
Thu, 13 Sep 2012 11:17:41 +0000 (13:17 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 13 Sep 2012 11:17:41 +0000 (13:17 +0200)
configure.in
src/Makefile.am

index a63544a..33ecca7 100644 (file)
@@ -4544,6 +4544,7 @@ fi
 if test "x$ac_system" = "xOpenBSD"
 then
        plugin_tcpconns="yes"
+       plugin_pf="yes"
 fi
 
 # Mac OS X devices
@@ -4843,6 +4844,7 @@ AC_PLUGIN([onewire],     [$with_libowcapi],    [OneWire sensor statistics])
 AC_PLUGIN([openvpn],     [yes],                [OpenVPN client statistics])
 AC_PLUGIN([oracle],      [$with_oracle],       [Oracle plugin])
 AC_PLUGIN([perl],        [$plugin_perl],       [Embed a Perl interpreter])
+AC_PLUGIN([pf],          [$plugin_pf],         [OpenBSD packet filter (PF) statistics])
 # FIXME: Check for libevent, too.
 AC_PLUGIN([pinba],       [$have_protoc_c],     [Pinba statistics])
 AC_PLUGIN([ping],        [$with_liboping],     [Network latency statistics])
@@ -5175,6 +5177,7 @@ Configuration:
     openvpn . . . . . . . $enable_openvpn
     oracle  . . . . . . . $enable_oracle
     perl  . . . . . . . . $enable_perl
+    pf  . . . . . . . . . $enable_pf
     pinba . . . . . . . . $enable_pinba
     ping  . . . . . . . . $enable_ping
     postgresql  . . . . . $enable_postgresql
index eef2a60..fb94c76 100644 (file)
@@ -862,6 +862,14 @@ collectd_LDADD += "-dlopen" perl.la
 collectd_DEPENDENCIES += perl.la
 endif
 
+if BUILD_PLUGIN_PF
+pkglib_LTLIBRARIES += pf.la
+pf_la_SOURCES = pf.c
+pf_la_LDFLAGS = -module -avoid-version
+collectd_LDADD += "-dlopen" pf.la
+collectd_DEPENDENCIES += pf.la
+endif
+
 if BUILD_PLUGIN_PINBA
 BUILT_SOURCES += pinba.pb-c.c pinba.pb-c.h
 CLEANFILES += pinba.pb-c.c pinba.pb-c.h