diff --git a/debian/rules b/debian/rules
index c5ca9dd83e9b2a1aa7dcf01d814db9dca9371d6c..aab7db998ca552109936748cbd164bf1756d0dae 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
JAVA_CPPFLAGS = -I$(JAVA_HOME)/include
JAVA_LDFLAGS = -L$(JAVA_LIBDIR) -Wl,-rpath -Wl,$(JAVA_LIBDIR)
-include /usr/share/dpatch/dpatch.make
-
confflags = --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
--mandir=\$${prefix}/share/man \
ifneq (,$(filter kfreebsd-i386 kfreebsd-amd64, $(DEB_BUILD_ARCH)))
confflags += \
--disable-gmond \
- --disable-libvirt \
+ --disable-virt \
--disable-tokyotyrant \
--disable-java
endif
confflags += --disable-java
endif
-config.status: configure $(DPATCH_STAMPFN)
+config.status: configure
dh_testdir
- ( cd debian/patches/; for patch in *; do \
- if test "$$patch" != "00list"; then \
- grep "$$patch" 00list > /dev/null \
- || ( echo "$$patch not enabled\!"; exit 1 ); \
- fi; done )
-
# This is a work-around for #474087 (broken openipmi .pc files).
mkdir debian/pkgconfig
sed -re 's/^(Requires:.*) pthread(.*)$$/\1\2/' \
touch build-stamp
-clean: unpatch
+clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_install -i
# update include path for collectd header files
- sed -r -i -e 's/include "(.*)"/include "collectd\/core\/\1"/' \
- $(CURDIR)/debian/collectd-dev/usr/include/collectd/core/*
- sed -r -i -e 's/"collectd\/core\/(liboconfig\/.*)"/"collectd\/\1"/' \
- $(CURDIR)/debian/collectd-dev/usr/include/collectd/core/*
+ ( set -e; \
+ cd $(CURDIR)/debian/collectd-dev/usr/include/collectd/; \
+ for lib in $$(find . -type f -name '*.h'); 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; \
+ done; \
+ done )
install-arch: build
dh_testdir
&& 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_installinit -pcollectd-core --name=collectd -- defaults 95
+ dh_systemd_start
dh_link -a
dh_strip -a --dbg-package=collectd-dbg
dh_compress -a -Xexamples/