summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5807c6c)
raw | patch | inline | side by side (parent: 5807c6c)
author | Sebastian Harl <sh@teamix.net> | |
Tue, 20 Nov 2012 14:23:30 +0000 (15:23 +0100) | ||
committer | Sebastian Harl <sh@teamix.net> | |
Tue, 20 Nov 2012 14:23:30 +0000 (15:23 +0100) |
This patch changes the example plugin include path to
/usr/include/collectd/core according to the changes done in collectd-dev.
/usr/include/collectd/core according to the changes done in collectd-dev.
debian/changelog | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/myplugin_includes.dpatch | [new file with mode: 0644] | patch | blob |
diff --git a/debian/changelog b/debian/changelog
index 786f20cec28813098a325e6696e55e143519d602..e64ac17c14d136785df8bc2fd7c9a06a93a9451b 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
* debian/patches:
- Removed migrate-4-5-df.dpatch; merged upstream.
- Removed rtnl_dump_filter.dpatch; merged upstream.
+ - Added myplugin_includes.dpatch -- change the example plugin include path
+ to /usr/include/collectd/core/ (see below).
* debian/rules:
- Fix installation paths used for Perl bindings. Upstream now passes
INSTALL_BASE rather than PREFIX to Makefile.PL which resulted in the
diff --git a/debian/patches/00list b/debian/patches/00list
index 070e1e06050c5577e7ac7cea3251b636e5404a1a..23aacf62e043c084fffcce668440b01881337668 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
rrd_filter_path.dpatch
collection_conf_path.dpatch
+myplugin_includes.dpatch
bts559801_plugin_find_fix.dpatch
diff --git a/debian/patches/myplugin_includes.dpatch b/debian/patches/myplugin_includes.dpatch
--- /dev/null
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## myplugin_includes.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: Let the example plugin include the core headers from
+## DP: /usr/include/collectd/core.
+
+@DPATCH@
+
+diff a/contrib/examples/myplugin.c b/contrib/examples/myplugin.c
+--- a/contrib/examples/myplugin.c
++++ b/contrib/examples/myplugin.c
+@@ -38,9 +38,9 @@
+
+ #endif /* ! HAVE_CONFIG */
+
+-#include <collectd/collectd.h>
+-#include <collectd/common.h>
+-#include <collectd/plugin.h>
++#include <collectd/core/collectd.h>
++#include <collectd/core/common.h>
++#include <collectd/core/plugin.h>
+
+ /*
+ * data source definition: