debian/0000755000000000000000000000000012073610553007170 5ustar debian/copyright0000644000000000000000000000205212073610553011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: RRD-Simple Source: http://search.cpan.org/dist/RRD-Simple/ Upstream-Contact: Nicola Worthington Files: * Copyright: 2005, 2006, 2007, 2008 Nicola Worthington License: Apache-2.0 Files: debian/* Copyright: 2013, Russ Allbery License: Apache-2.0 License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Comment: On Debian systems, the complete text of the Apache 2.0 license can be found in the file /usr/share/common-licenses/Apache-2.0. debian/rules0000755000000000000000000000017112073610553010247 0ustar #!/usr/bin/make -f # Disable the prompt to phone home to report package build. export AUTOMATED_TESTING := 1 %: dh $@ debian/docs0000644000000000000000000000002312073610553010036 0ustar NOTICE README TODO debian/watch0000644000000000000000000000016112073610553010217 0ustar version=3 http://search.cpan.org/dist/RRD-Simple/ .*/RRD-Simple-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/patches/0000755000000000000000000000000012073610553010617 5ustar debian/patches/rrd-test-nan0000644000000000000000000000257012073610553013064 0ustar Subject: Correct expected undefined test values Author: Russ Allbery Bug: https://rt.cpan.org/Public/Bug/Display.html?id=78785 RRD apparently now returns -nan for undefined values instead of nan. These are functionality equivalent for most purposes I can think of, so I doubt this would cause any problems. Update the expected test output accordingly. --- librrd-simple-perl.orig/t/answers.pl +++ librrd-simple-perl/t/answers.pl @@ -26,16 +26,16 @@ 'bytesOut min 50.00', 'bytesOut max 50.00', 'bytesOut last 50.00' )], 'monthly' => [( - 'bytesIn min nan', 'bytesIn max nan', 'bytesIn last nan', - 'bytesOut min nan', 'bytesOut max nan', 'bytesOut last nan' + 'bytesIn min -nan', 'bytesIn max -nan', 'bytesIn last -nan', + 'bytesOut min -nan', 'bytesOut max -nan', 'bytesOut last -nan' )], 'annual' => [( - 'bytesIn min nan', 'bytesIn max nan', 'bytesIn last nan', - 'bytesOut min nan', 'bytesOut max nan', 'bytesOut last nan' + 'bytesIn min -nan', 'bytesIn max -nan', 'bytesIn last -nan', + 'bytesOut min -nan', 'bytesOut max -nan', 'bytesOut last -nan' )], '3years' => [( - 'bytesIn min nan', 'bytesIn max nan', 'bytesIn last nan', - 'bytesOut min nan', 'bytesOut max nan', 'bytesOut last nan' + 'bytesIn min -nan', 'bytesIn max -nan', 'bytesIn last -nan', + 'bytesOut min -nan', 'bytesOut max -nan', 'bytesOut last -nan' )], ); debian/patches/example-interpreter0000644000000000000000000000044012073610553014534 0ustar Subject: Use /usr/bin/perl as Perl path in all examples Author: Russ Allbery Forwarded: not-needed --- librrd-simple-perl.orig/examples/foo.pl +++ librrd-simple-perl/examples/foo.pl @@ -1,4 +1,4 @@ -#!/bin/env perl +#!/usr/bin/perl use strict; use RRD::Simple 1.44; debian/patches/doc-spelling0000644000000000000000000000172712073610553013131 0ustar Subject: Correct spelling errors in documentation Author: Russ Allbery Bug: https://rt.cpan.org/Ticket/Display.html?id=82622 --- librrd-simple-perl.orig/lib/RRD/Simple.pm +++ librrd-simple-perl/lib/RRD/Simple.pm @@ -1642,7 +1642,7 @@ faultsPerSec => "COUNTER" ); - # Put some arbitary data values in the RRD file for the same + # Put some arbitrary data values in the RRD file for the same # 3 data sources called bytesIn, bytesOut and faultsPerSec. $rrd->update( bytesIn => 10039, @@ -1884,7 +1884,7 @@ The number of image files that are created depends on the retention period of the RRD file. Hourly, 6 hourly, 12 hourly, daily, weekly, monthly, annual and 3year graphs will be created if there is enough data in the RRD file to -accomodate them. +accommodate them. The image filenames will start with either the basename of the RRD file, or whatever is specified by the C parameter. The second part debian/patches/rrd-test-cdp-prep0000644000000000000000000000500412073610553014015 0ustar Subject: Correct expected rrdinfo output Author: Russ Allbery Bug: https://rt.cpan.org/Public/Bug/Display.html?id=46193 Newer versions of RRDs include a new cur_row field in the output and seem to use a slightly different calculation for cdp_prep. The version threshold here is just a guess and needs more research to be accurate. --- librrd-simple-perl.orig/t/32exported_function_interface.t +++ librrd-simple-perl/t/32exported_function_interface.t @@ -55,6 +55,12 @@ } my $info = info($rrdfile); + + # The cur_row values appear to be random, so strip them out. + for my $source (@{ $info->{rra} }) { + delete $source->{cur_row}; + } + cmp_deeply( $info->{rra}, $rra, --- librrd-simple-perl.orig/t/answers.pl +++ librrd-simple-perl/t/answers.pl @@ -41,7 +41,66 @@ @schemes = keys %retention_periods; -# Default values for 1.33 and higher +# Default values for 1.40 and higher +$rra = [ + { + 'xff' => '0.5', + 'pdp_per_row' => 1, + 'cdp_prep' => undef, + 'cf' => 'AVERAGE', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 6, + 'cdp_prep' => 0, + 'cf' => 'AVERAGE', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 24, + 'cdp_prep' => 0, + 'cf' => 'AVERAGE', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 288, + 'cdp_prep' => 0, + 'cf' => 'AVERAGE', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 1, + 'cdp_prep' => undef, + 'cf' => 'MAX', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 6, + 'cdp_prep' => -inf, + 'cf' => 'MAX', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 24, + 'cdp_prep' => -inf, + 'cf' => 'MAX', + 'rows' => 800 + }, + { + 'xff' => '0.5', + 'pdp_per_row' => 288, + 'cdp_prep' => -inf, + 'cf' => 'MAX', + 'rows' => 800 + }]; + +# Default values for 1.33 through 1.40 $rra = [ { 'xff' => '0.5', @@ -98,7 +157,7 @@ 'cdp_prep' => undef, 'cf' => 'MAX', 'rows' => 800 - }]; + }] if $RRD::Simple::VERSION < 1.33; # Old default values for 1.32 $rra = [ debian/patches/series0000644000000000000000000000010012073610553012023 0ustar rrd-test-nan rrd-test-cdp-prep doc-spelling example-interpreter debian/compat0000644000000000000000000000000212073610553010366 0ustar 9 debian/changelog0000644000000000000000000000023712073610553011044 0ustar librrd-simple-perl (1.44-1) unstable; urgency=low * Initial release. (Closes: #697869) -- Russ Allbery Thu, 10 Jan 2013 09:46:00 -0800 debian/clean0000644000000000000000000000001112073610553010165 0ustar Makefile debian/control0000644000000000000000000000236412073610553010600 0ustar Source: librrd-simple-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: Russ Allbery Build-Depends: debhelper (>= 9), librrds-perl, libtest-deep-perl, libtest-pod-coverage-perl, libtest-pod-perl, perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/librrd-simple-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/librrd-simple-perl.git Homepage: http://search.cpan.org/dist/RRD-Simple/ Package: librrd-simple-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, librrds-perl Description: Simple interface to create and store data in RRD files RRD::Simple provides a simple interface to RRDTool's RRDs module that supports creating RRD files and storing data. It provides a simple mechanism to create RRD files with a sensible set of default RRA (Round Robin Archive) definitions, and can dynamically add new data source names to an existing RRD file. It is useful for quick storage of data in an RRD file if you do not need to, nor want to, bother defining custom RRA definitions. . RRD::Simple does not currently offer a fetch method to retrieve data; for that, use the RRDs module directly. debian/examples0000644000000000000000000000001312073610553010723 0ustar examples/* debian/source/0000755000000000000000000000000012073610553010470 5ustar debian/source/format0000644000000000000000000000001412073610553011676 0ustar 3.0 (quilt)