head 1.9; access; symbols pkgsrc-2013Q2:1.9.0.18 pkgsrc-2013Q2-base:1.9 pkgsrc-2012Q4:1.9.0.16 pkgsrc-2012Q4-base:1.9 pkgsrc-2011Q4:1.9.0.14 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q2:1.9.0.12 pkgsrc-2011Q2-base:1.9 pkgsrc-2009Q4:1.9.0.10 pkgsrc-2009Q4-base:1.9 pkgsrc-2008Q4:1.9.0.8 pkgsrc-2008Q4-base:1.9 pkgsrc-2008Q3:1.9.0.6 pkgsrc-2008Q3-base:1.9 cube-native-xorg:1.9.0.4 cube-native-xorg-base:1.9 pkgsrc-2008Q2:1.9.0.2 pkgsrc-2008Q2-base:1.9 pkgsrc-2008Q1:1.8.0.4 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.2 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.7.0.6 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.4 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.2 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.6.0.4 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.2 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.5.0.2 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.4.0.2 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.3.0.4 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.2 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.1.0.12 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.10 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.8 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.6 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.4 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.2 pkgsrc-2004Q1-base:1.1; locks; strict; comment @# @; 1.9 date 2008.06.23.16.24.30; author he; state dead; branches; next 1.8; 1.8 date 2007.11.20.11.58.00; author martti; state Exp; branches; next 1.7; 1.7 date 2007.01.30.13.26.55; author adam; state Exp; branches; next 1.6; 1.6 date 2006.07.22.07.37.07; author adam; state Exp; branches; next 1.5; 1.5 date 2006.05.05.17.42.07; author adam; state Exp; branches; next 1.4; 1.4 date 2006.01.24.22.22.16; author adam; state Exp; branches; next 1.3; 1.3 date 2005.07.30.06.53.16; author wulf; state Exp; branches; next 1.2; 1.2 date 2005.07.03.15.23.34; author wulf; state Exp; branches; next 1.1; 1.1 date 2004.02.07.17.44.10; author seb; state Exp; branches; next ; desc @@ 1.9 log @Update rrdtool from 1.2.27nb1 to 1.3.0nb1. Local change warranting nb1 is to prefix some error messages from rrdupdate with the name of the file the error relates to, carried over from nb1 of 1.2.27. Update loosely OKed by martti@@ The announcement of 1.3.0 outlines the changes since 1.2.27: NEW Fast file access methods (Bernhard Fischer / Tobi Oetiker) ---------------------------- * introduced file-accessor functions rrd_read/rrd_seek/rrd_write * implemented full mmap-based file access with madvise hints for improved scalability, much reduced memory-footprint and much less blocking while accessing the disk * implemented optional full file-descriptor access instead of FILE* access NEW Graphing (Tobi Oetiker) ------------ * libart has been replaced by cairo/pango * pango markup is supported (--pango-markup) * full grid fitting * --graph-render-mode=mono for non anti aliased graphing * --font-render-mode=mono for non anti aliased fonts * fonts come through fontconfig, use the Pango font nameing scheme -> 'Times 20' ... it is not possible to use truetype fonts directly anymore. * Tabs are position independent. * TRENDNAN filter that ignores NAN values while calculating the TREND data. (Timo Stripf) * --full-size-mode to specify the outer border of the image and not just of the graphing canvas (Matthew Chambers) * TEXTALIGN command to alter default text alignment behavior * C API in-memory graphing with rrd_graph_v (Evan Miller) * draw dashed lines in graphs (Thomas Gutzler) * new interface graphv which returns information using the rrd_info interface (Tobi Oetiker and Mark Plaksin) * improved horizontal grid. Have a bit more grid lines and y-axis labels while keeping them far enough apart to not run into each other. NEW Forecasting (Evan Miller) --------------- * the new MHWPREDICT consolidation function uses a variation of the Holt-Winters method. It is a drop-in replacement for HWPREDICT, and is better suited for data whose seasonal variations grow or shrink in proportion to the average. * If you create an RRD with the new MHWPREDICT function, the resulting rrd file will be version 0004 and can only be used in rrdtool 1.3. Rewrites -------- * rrd_restore now uses libxml for parsing which makes things much more tolerant towards xml variations. The old code could mostly just parse the XML as it was output by rrdtool dump. See also: the note at the bottom of this document. (by Florian octo Forster) * rrd_update rewritten to make it more modular. Fixed two longstanding HW bugs in the process (Evan Miller) Internationalization (Takao Fujiwara and Tobi Oetiker) -------------------- * The help output by rrdtool has been internationalized. There are no real translations included with rrdtool yet, contributions are welcome. * The internationalization will only be compiled if libintl and friends are available on your system. Use the configure option --disable-libintl if you want to disable this feature Language Bindings ----------------- * ruby rrd_fetch will return step as a last property -- Mike Perham RRDtool dump / restore incompatibility -------------------------------------- * rrdtool dump 1.3 does emit completely legal XML. Basically this means that it contains an XML header and a DOCTYPE definition. Unfortunately this causes older versions of rrdtool restore to be unhappy. * To restore a new dump with an old rrdtool restore version, either remove the XML header and the doctype by hand (both on the first line of the dump) or use rrdtool dump --no-header. @ text @$NetBSD: patch-aw,v 1.8 2007/11/20 11:58:00 martti Exp $ --- src/rrd_tool.c.orig 2007-11-20 02:15:10.000000000 +0200 +++ src/rrd_tool.c 2007-11-20 12:58:12.000000000 +0200 @@@@ -699,9 +699,9 @@@@ printf("\n\n", XML_ENCODING); printf("<%s>\n", ROOT_TAG); printf(" <%s>\n", META_TAG); - printf(" <%s>%lu\n", META_START_TAG, start+step, META_START_TAG); + printf(" <%s>%lu\n", META_START_TAG, (unsigned long) start+step, META_START_TAG); printf(" <%s>%lu\n", META_STEP_TAG, step, META_STEP_TAG); - printf(" <%s>%lu\n", META_END_TAG, end, META_END_TAG); + printf(" <%s>%lu\n", META_END_TAG, (unsigned long) end, META_END_TAG); printf(" <%s>%lu\n", META_ROWS_TAG, row_cnt, META_ROWS_TAG); printf(" <%s>%lu\n", META_COLS_TAG, col_cnt, META_COLS_TAG); printf(" <%s>\n", LEGEND_TAG); @@@@ -717,7 +717,7 @@@@ printf(" <%s>\n", DATA_TAG); for (ti = start+step; ti <= end; ti += step) { printf (" <%s>", DATA_ROW_TAG); - printf ("<%s>%lu", COL_TIME_TAG, ti, COL_TIME_TAG); + printf ("<%s>%lu", COL_TIME_TAG, (unsigned long) ti, COL_TIME_TAG); for (j = 0; j < col_cnt; j++) { rrd_value_t newval = DNAN; if (enumds == 1) @ 1.8 log @Updated databases/rrdtool to 1.2.26 * Bug fixes @ text @d1 1 a1 1 $NetBSD: patch-aw,v 1.7 2007/01/30 13:26:55 adam Exp $ @ 1.7 log @Changes 1.2.18: * Bug fixes @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- src/rrd_tool.c.orig 2007-01-23 21:54:49.000000000 +0100 +++ src/rrd_tool.c @@@@ -702,9 +702,9 @@@@ int HandleInputLine(int argc, char **arg d17 1 a17 1 @@@@ -720,7 +720,7 @@@@ int HandleInputLine(int argc, char **arg @ 1.6 log @Changes 1.2.15: The pwd command for server mode was added. Logarithmic graphs were revisited. GPRINT can now access the time component of VDEF values. DNAN and DINF are much faster through caching. Many bugs were killed. @ text @d3 1 a3 1 --- src/rrd_tool.c.orig 2006-07-14 14:11:26.000000000 +0200 d5 1 a5 10 @@@@ -619,7 +619,7 @@@@ int HandleInputLine(int argc, char **arg else if (strcmp("resize", argv[1]) == 0) rrd_resize(argc-1, &argv[1]); else if (strcmp("last", argv[1]) == 0) - printf("%ld\n",rrd_last(argc-1, &argv[1])); + printf("%ld\n",(long) rrd_last(argc-1, &argv[1])); else if (strcmp("first", argv[1]) == 0) printf("%ld\n",rrd_first(argc-1, &argv[1])); else if (strcmp("update", argv[1]) == 0) @@@@ -659,9 +659,9 @@@@ int HandleInputLine(int argc, char **arg d17 1 a17 1 @@@@ -677,7 +677,7 @@@@ int HandleInputLine(int argc, char **arg d25 1 a25 1 newval = *ptr; @ 1.5 log @Changes 1.2.13: Restoring from 1.0.x format XML dumps was enabled. The stability of rrdtool fetch results was fixed. A new rrdtool graph and rrdcgi functions were added. The pipe mode interface was improved. Many bugfixes were made. @ text @d3 1 a3 1 --- src/rrd_tool.c.orig 2006-05-04 15:26:28.000000000 +0200 d5 1 a5 1 @@@@ -590,7 +590,7 @@@@ int HandleInputLine(int argc, char **arg d14 1 a14 1 @@@@ -630,9 +630,9 @@@@ int HandleInputLine(int argc, char **arg d26 1 a26 1 @@@@ -648,7 +648,7 @@@@ int HandleInputLine(int argc, char **arg @ 1.4 log @Changes 1.2.12: * Bug fixes @ text @d3 1 a3 1 --- src/rrd_tool.c.orig 2005-12-18 21:30:45.000000000 +0100 d5 1 a5 1 @@@@ -557,7 +557,7 @@@@ int HandleInputLine(int argc, char **arg d14 1 a14 1 @@@@ -597,9 +597,9 @@@@ int HandleInputLine(int argc, char **arg d26 1 a26 1 @@@@ -615,7 +615,7 @@@@ int HandleInputLine(int argc, char **arg @ 1.3 log @Updated rrdtool to 1.2.11: Minor bug fix release Added --enable-perl-site-install configuration argument relevant to PR30719 @ text @d1 1 a1 1 $NetBSD: patch-aw,v 1.2 2005/07/03 15:23:34 wulf Exp $ d3 3 a5 3 --- src/rrd_tool.c.orig 2005-07-25 23:43:13.000000000 +0930 +++ src/rrd_tool.c 2005-07-29 14:29:16.000000000 +0930 @@@@ -564,7 +564,7 @@@@ d14 1 a14 1 @@@@ -604,9 +604,9 @@@@ d26 1 a26 1 @@@@ -622,7 +622,7 @@@@ @ 1.2 log @Update of rrdtool to 1.2.9: Major Changes between 1.0.x and 1.2.x Graphing -------- * rewritten graphics generation based on libart. - anti-aliased output - alpha transparency support - truetype fonts * additional graphics formats: EPS, PDF, SVG * extended multi-part documentation * VDEF support; define and use variables. Find, and use, the maximum rate seen by rrdtool; compute and show the average * Sliding window (trend) analysis Compute a smoother average, for instance over the last 6 CDPs * percentile (95th or other) Remove peaks, 95 percent of all rates are at or below the returned value Logging ------- * a second logging interface: rrdtool updatev Verbose updating of the database; show CPDs being created * Aberrant Behavior Detection with Holt-Winters Forecasting Compare current data with expected data, detect and log when the rates are outside expected levels * COMPUTE data type for artificial data-sources calculating their input using RPN math and data from the other data-sources. @ text @d1 1 a1 1 $NetBSD: patch-aw,v 1.1 2004/02/07 17:44:10 seb Exp $ d3 3 a5 3 --- src/rrd_tool.c.orig 2005-05-28 22:31:55.000000000 +0930 +++ src/rrd_tool.c 2005-06-19 14:09:40.000000000 +0930 @@@@ -559,7 +559,7 @@@@ d14 1 a14 1 @@@@ -599,9 +599,9 @@@@ d26 1 a26 1 @@@@ -617,7 +617,7 @@@@ @ 1.1 log @Now that lang/perl5/module.mk fiddles with OTHERLDFLAGS fix the way RRDs.so shared perl module is built and thus fix runtime failure described in PR pkg/24292 by Michael van Elst . Also fix sparc64 compilation warnings and runtime failure due to time_t's size assumption: sizeof(time_t) != sizeof(long) on NetBSD/sparc64. While here bl3ify, this somewhat simplify the package, and provide a buildlink3.mk file. Bump PKGREVISION. With wulf@@'s blessing. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- src/rrd_tool.c.orig Fri Oct 11 18:39:48 2002 +++ src/rrd_tool.c @@@@ -325,7 +325,7 @@@@ int HandleInputLine(int argc, char **arg d10 3 a12 1 + printf("%ld\n",(long)rrd_last(argc-1, &argv[1])); d14 1 a14 3 rrd_update(argc-1, &argv[1]); else if (strcmp("fetch", argv[1]) == 0) { @@@@ -363,9 +363,9 @@@@ int HandleInputLine(int argc, char **arg d18 2 a19 2 - printf(" <%s>%lu\n", META_START_TAG, start, META_START_TAG); + printf(" <%s>%lu\n", META_START_TAG, (unsigned long)start, META_START_TAG); d22 1 a22 1 + printf(" <%s>%lu\n", META_END_TAG, (unsigned long)end, META_END_TAG); d26 1 a26 1 @@@@ -381,7 +381,7 @@@@ int HandleInputLine(int argc, char **arg d28 1 a28 1 for (i = start; i <= end; i += step) { d30 2 a31 2 - printf ("<%s>%lu", COL_TIME_TAG, i, COL_TIME_TAG); + printf ("<%s>%lu", COL_TIME_TAG, (unsigned long)i, COL_TIME_TAG); d34 1 a34 1 newval = *(ptr++); @