diff --git a/debian/rules b/debian/rules
index 3960dff718620145034dd2c1062d89703aa81d33..068b3b2bb983452a21ba7a1579702295403a7b15 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -Wall -Wno-error=deprecated-declarations
-# There is no way to tell lt_dlopen() to use the RTLD_GLOBAL flag which is
-# however required by the perl plugin (which would otherwise be unable to find
-# symbols defined in libperl when loading perl modules that require such
-# symbols). This is a workaround for this issue.
-CPPFLAGS += -DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL'
-
# Upstream defaults to ${sysconfdir}/collectd.conf. Setting ${sysconfdir} to
# /etc/collectd would be wrong though.
CPPFLAGS += -UCONFIGFILE
# xmms1 is required for the xmms plugin.
confflags += --disable-xmms
+# protobuf-compiler >= 3.0.0 is required for the grpc plugin.
+confflags += --disable-grpc
+
# These plugins are Linux-specific.
ifneq (,$(filter kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
confflags += \
config.status: configure
dh_testdir
+ dh_autoreconf
# This is a work-around for #474087 (broken openipmi .pc files).
mkdir debian/pkgconfig
rm -rf debian/pkgconfig
+ dh_autoreconf_clean
dh_clean
debconf-updatepo
&& rm -f lib/Collectd/Graph/File.pm lib/Collectd/Graph/Filter.pm \
&& rm -f lib/Collectd/Graph/MetaData.pm )
dh_installdebconf -a
- dh_systemd_enable -pcollectd-core --name=collectd collectd.service
+ dh_systemd_enable -pcollectd-core --name=collectd
dh_installinit -pcollectd-core --name=collectd -- defaults 95
dh_systemd_start -pcollectd-core
dh_link -a