From 9ad25378a6c3c755bc483067542f3adfcc9aae9a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 13 Sep 2012 13:17:41 +0200 Subject: [PATCH] Build system: Add the PF plugin. --- configure.in | 3 +++ src/Makefile.am | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/configure.in b/configure.in index a63544a6..33ecca7c 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/Makefile.am b/src/Makefile.am index eef2a609..fb94c761 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 -- 2.11.0