summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 76a7816)
raw | patch | inline | side by side (parent: 76a7816)
author | Florian Forster <octo@collectd.org> | |
Thu, 13 Sep 2012 11:17:41 +0000 (13:17 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 13 Sep 2012 11:17:41 +0000 (13:17 +0200) |
configure.in | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index a63544a6f021c03e57cb5508790c23d5cc4a0835..33ecca7cabdb493bf649a597e8dde5e4ba1207fb 100644 (file)
--- a/configure.in
+++ b/configure.in
if test "x$ac_system" = "xOpenBSD"
then
plugin_tcpconns="yes"
+ plugin_pf="yes"
fi
# Mac OS X devices
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])
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 eef2a6095844545872953bc55de6f096ccfbfc99..fb94c7616c0cd7892b01f13643fe7bdd4f327cac 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
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