diff --git a/debian/rules b/debian/rules
index b25ae8e9e1ba1c0e663d77bc8b37172881681051..e26fb5465d616911dd21f9d6cf0f4946a27b2d97 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
# xmms1 is required for the xmms plugin.
confflags += --disable-xmms
# xmms1 is required for the xmms plugin.
confflags += --disable-xmms
+# 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 \
# 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-ethstat \
--disable-iptables \
--disable-ipvs \
--disable-numa \
--disable-sensors \
--disable-vserver
--disable-numa \
--disable-sensors \
--disable-vserver
+ # libsigrok >= 0.2.0 is required for the sigrok plugin,
+ # only available on Linux.
+ confflags += \
+ --disable-sigrok
endif
# This plugin is FreeBSD-specific.
endif
# This plugin is FreeBSD-specific.
--disable-pf
endif
--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
# 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-conntrack \
--disable-contextswitch \
--disable-cpufreq \
--disable-conntrack \
--disable-contextswitch \
--disable-cpufreq \
- --disable-disk \
--disable-entropy \
--disable-fscache \
--disable-irq \
--disable-entropy \
--disable-fscache \
--disable-irq \
--disable-turbostat
endif
--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
# libatasmart isn't available on these platforms.
ifneq (,$(filter hurd-i386 kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
confflags += --disable-smart
confflags += --disable-java
endif
confflags += --disable-java
endif
-config.status: configure
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+
+build-stamp:
dh_testdir
dh_testdir
+ dh_autoreconf
+
# This is a work-around for #474087 (broken openipmi .pc files).
mkdir debian/pkgconfig
sed -re 's/^(Requires:.*) pthread(.*)$$/\1\2/' \
# This is a work-around for #474087 (broken openipmi .pc files).
mkdir debian/pkgconfig
sed -re 's/^(Requires:.*) pthread(.*)$$/\1\2/' \
JAVA_LDFLAGS="$(JAVA_LDFLAGS)" \
|| ( status=$$?; cat config.log; exit $$status )
JAVA_LDFLAGS="$(JAVA_LDFLAGS)" \
|| ( status=$$?; cat config.log; exit $$status )
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-
-build-stamp: config.status
- dh_testdir
-
$(MAKE)
perl ./debian/bin/check_plugins.pl
$(MAKE)
perl ./debian/bin/check_plugins.pl
rm -rf debian/pkgconfig
rm -rf debian/pkgconfig
+ dh_autoreconf_clean
dh_clean
debconf-updatepo
dh_clean
debconf-updatepo
libname=$$(basename $$lib); \
fullpath=$$(echo $$lib | sed -r -e 's,^\./,collectd/,'); \
for dir in $$(find . -mindepth 1 -type d); do \
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 )
done; \
done )