summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a78ea04)
raw | patch | inline | side by side (parent: a78ea04)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 6 Jul 2015 21:44:56 +0000 (23:44 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 6 Jul 2015 22:06:46 +0000 (00:06 +0200) |
Now that part of the headers have been moved to the daemon/
subdirectory, this bit needs to be slightly more sophisticated.
subdirectory, this bit needs to be slightly more sophisticated.
debian/changelog | patch | blob | history | |
debian/rules | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index c5cfc2f0f2cf0c261d0ca2ff4815033693862a21..138a11932434c1f8a4c5e550848e5c7115a55373 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
- Removed bts770694_loglevel.dpatch; merged upstream.
- Removed collection.cgi.dpatch; merged upstream.
- Removed myplugin_api.dpatch; merged upstream.
- * debian/collectd-dev.install, myplugin_includes.dpatch:
+ * debian/rules, debian/collectd-dev.install, myplugin_includes.dpatch:
- Update path to header files moved to daemon/ subdirectory upstream.
* debian/rules, debian/control:
- Enable redis, write_redis plugins and add Build-depend on
diff --git a/debian/rules b/debian/rules
index 334690908861e71a24e7abd044a3afac8f1e1656..c38d9af584f0b6ffcdfae8ea55006f416e64bec1 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
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