diff --git a/debian/rules b/debian/rules
index 16153dde499979c48762df61728229aecaa86a1e..e26fb5465d616911dd21f9d6cf0f4946a27b2d97 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
# xmms1 is required for the xmms plugin.
confflags += --disable-xmms
-# protobuf-compiler >= 3.0.0 is required for the grpc plugin.
+# protobuf-compiler >= 3.0.0 and libgrpc++ are required for the grpc plugin.
confflags += --disable-grpc
# These plugins are Linux-specific.
ifneq (,$(filter kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
confflags += \
--disable-cgroups \
+ --disable-cpusleep \
--disable-ethstat \
--disable-iptables \
--disable-ipvs \
--disable-pf
endif
+# This plugin is Solaris-specific.
+confflags += \
+ --disable-zone
+
# These plugins have not been ported to FreeBSD yet.
ifneq (,$(filter kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
# Work-around an incomplete check for kvm functionality
--disable-turbostat
endif
+# This plugin is x86 and arm specific.
+ifeq (,$(filter amd64 arm64 armhf i386, $(DEB_BUILD_ARCH)))
+ confflags += \
+ --disable-xencpu
+endif
+
# libatasmart isn't available on these platforms.
ifneq (,$(filter hurd-i386 kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
confflags += --disable-smart
libname=$$(basename $$lib); \
fullpath=$$(echo $$lib | sed -r -e 's,^\./,collectd/,'); \
for dir in $$(find . -mindepth 1 -type d); do \
- sed -r -i -e "s,(include\s+)\".*$$libname\",\1\"$$fullpath\"," $$dir/*.h; \
+ sed -r -i -e "s,(include\s+)\".*\<$$libname\",\1\"$$fullpath\"," $$dir/*.h; \
done; \
done )