diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-05-22 00:31:52 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-05-22 00:34:03 +0200 |
commit | f2a6b1d0e3af83399ff1277a6cc2be7951fd1ea6 (patch) | |
tree | 9514d5c48219a2b5d41457e0a90999260d2945a0 /net-analyzer/rrdtool/files | |
parent | dev-ruby/rrdtool-bindings: Version bump. (diff) | |
download | gentoo-f2a6b1d0e3af83399ff1277a6cc2be7951fd1ea6.tar.gz gentoo-f2a6b1d0e3af83399ff1277a6cc2be7951fd1ea6.tar.bz2 gentoo-f2a6b1d0e3af83399ff1277a6cc2be7951fd1ea6.zip |
net-analyzer/rrdtool: Version bump.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'net-analyzer/rrdtool/files')
-rw-r--r-- | net-analyzer/rrdtool/files/rrdtool-1.7.0-disable-rrd_graph-cgi.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net-analyzer/rrdtool/files/rrdtool-1.7.0-disable-rrd_graph-cgi.patch b/net-analyzer/rrdtool/files/rrdtool-1.7.0-disable-rrd_graph-cgi.patch new file mode 100644 index 000000000000..beb1ba794f22 --- /dev/null +++ b/net-analyzer/rrdtool/files/rrdtool-1.7.0-disable-rrd_graph-cgi.patch @@ -0,0 +1,49 @@ +--- a/src/rrd_cgi.c ++++ b/src/rrd_cgi.c +@@ -51,6 +51,7 @@ + const char **); + + /* call rrd_graph and insert appropriate image tag */ ++#ifdef HAVE_RRD_GRAPH + static char *drawgraph( + long, + const char **); +@@ -59,6 +60,7 @@ + static char *drawprint( + long, + const char **); ++#endif /* HAVE_RRD_GRAPH */ + + /* pretty-print the <last></last> value for some.rrd via strftime() */ + static char *printtimelast( +@@ -510,9 +512,13 @@ + } + parse(&buffer, i, "<RRD::GETVAR", rrdgetvar); + parse(&buffer, i, "<RRD::GOODFOR", rrdgoodfor); ++#ifdef HAVE_RRD_GRAPH + parse(&buffer, i, "<RRD::GRAPH", drawgraph); ++#endif /* HAVE_RRD_GRAPH */ + parse(&buffer, i, "<RRD::INCLUDE", includefile); ++#ifdef HAVE_RRD_GRAPH + parse(&buffer, i, "<RRD::PRINT", drawprint); ++#endif /* HAVE_RRD_GRAPH */ + parse(&buffer, i, "<RRD::SETCONSTVAR", rrdsetvarconst); + parse(&buffer, i, "<RRD::SETENV", rrdsetenv); + parse(&buffer, i, "<RRD::SETVAR", rrdsetvar); +@@ -900,7 +906,7 @@ + } + + +- ++#ifdef HAVE_RRD_GRAPH + static char *drawgraph( + long argc, + const char **args) +@@ -931,6 +937,7 @@ + } + return NULL; + } ++#endif /* HAVE_RRD_GRAPH */ + + static char *drawprint( + long argc, |