From: Sebastian Harl Date: Tue, 20 Nov 2012 14:23:30 +0000 (+0100) Subject: patches/: Added myplugin_includes.dpatch. X-Git-Tag: collectd-5.2.0-1~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a7e5508cb8ca469ef36441915bb4c2eefa75e98d;p=pkg-collectd.git patches/: Added myplugin_includes.dpatch. This patch changes the example plugin include path to /usr/include/collectd/core according to the changes done in collectd-dev. --- diff --git a/debian/changelog b/debian/changelog index 786f20c..e64ac17 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ collectd (5.2.0-1) UNRELEASED; urgency=low * 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 070e1e0..23aacf6 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,3 +1,4 @@ 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 new file mode 100644 index 0000000..2b252cf --- /dev/null +++ b/debian/patches/myplugin_includes.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## myplugin_includes.dpatch by Sebastian Harl +## +## 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 +-#include +-#include ++#include ++#include ++#include + + /* + * data source definition: