[-]
[+]
|
Added |
rrdtool-CentOS_5.spec
|
|
[-]
[+]
|
Deleted |
rrdtool.spec
^
|
@@ -1,363 +0,0 @@
-#
-# spec file for package rrdtool (Version 1.2.30)
-#
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-# norootforbuild
-
-Name: rrdtool
-BuildRequires: freetype2-devel libart_lgpl-devel libpng-devel python-devel tcl-devel
-License: GPL v2 or later
-Group: Productivity/Scientific/Math
-AutoReqProv: on
-Requires: perl = %{perl_version}
-Version: 1.2.30
-Release: 75
-Source: %{name}-%{version}.tar.bz2
-Source1: cgilib-0.5.tar.bz2
-Patch: %{name}-%{version}-ssize.diff
-Url: http://oss.oetiker.ch/rrdtool/
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Summary: A tool for data logging and analysis
-Requires: dejavu >= 2.21
-
-%description
-A tool to log and analyze data gathered from all kinds of data sources.
-The data analysis part of RRDtool is based on the ability to quickly
-generate graphical representations of the data values collected over a
-definable time period.
-
-
-
-Authors:
---------
- Tobias Oetiker <oetiker@ee.ethz.ch>
-
-%prep
-%setup -q -a1
-%patch
-
-%build
-# first prepare cgilib
-cd cgilib*
-make CC=gcc CFLAGS="$RPM_OPT_FLAGS -fPIC -I."
-mkdir -p ../lb/include
-cp *.h ../lb/include
-mkdir -p ../lb/lib
-cp libcgi* ../lb/lib
-cd ..
-# build rrdtool
-%{suse_update_config}
-libtoolize --force
-#autoreconf --force --install
-aclocal --force
-autoconf -f
-automake -fca
-CFLAGS="$RPM_OPT_FLAGS -fPIC" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-L`pwd`/lb/lib" CPPFLAGS="-I`pwd`/lb/include" \
-./configure \
- --mandir=%{_mandir} \
- --prefix=%{_prefix} \
- --libdir=%{_libdir} \
- --datadir=%{_datadir} \
- --infodir=%{_infodir} \
- --sysconfdir=%{_sysconfdir} \
- --enable-shared \
- --with-tcllib=%{_libdir} \
- --with-gnu-ld \
- --with-rrd-default-font=/usr/share/fonts/truetype/DejaVuSansMono.ttf
-make %{?jobs:-j %jobs}
-
-%install
-#eval `perl -V:installarchlib`
-make \
- DESTDIR=$RPM_BUILD_ROOT \
- idocdir=%{_docdir}/%{name}/txt/ \
- ihtmldir=%{_docdir}/%{name}/html/ \
- examplesdir=%{_docdir}/%{name}/examples/ \
- libdir=%{_libdir} \
- pkglibdir=%_datadir/tcl/tclrrd%version \
- TCL_PACKAGE_DIR=%_datadir/tcl/tclrrd%version \
- TCL_PACKAGE_PATH=%_datadir/tcl \
- install
-# we install this later again
-rm -r $RPM_BUILD_ROOT%{_prefix}/lib/perl
-# do not install fonts (use system fonts instead)
-rm -rf $RPM_BUILD_ROOT%_datadir/rrdtool/fonts
-# install correctly perl modules
-pushd bindings/perl-piped
-perl Makefile.PL
-make DESTDIR=$RPM_BUILD_ROOT install_vendor
-popd
-pushd bindings/perl-shared
-perl Makefile.PL
-make DESTDIR=$RPM_BUILD_ROOT install_vendor
-popd
-%perl_process_packlist
-#fix build (it would be better to split cgilib)
-sed 's/[[:space:]]*-L\/usr\/src\/packages\/BUILD\/%{name}-%{version}\/lb\/lib[[:space:]]*/ /' $RPM_BUILD_ROOT/%{_libdir}/librrd.la > tmp
-mv tmp $RPM_BUILD_ROOT/%{_libdir}/librrd.la
-sed 's/[[:space:]]*-L\/usr\/src\/packages\/BUILD\/%{name}-%{version}\/lb\/lib[[:space:]]*/ /' $RPM_BUILD_ROOT/%{_libdir}/librrd_th.la > tmp
-mv tmp $RPM_BUILD_ROOT/%{_libdir}/librrd_th.la
-# documentation
-install -m 644 CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO $RPM_BUILD_ROOT/%{_docdir}/%{name}
-# Script libraries for Tcl extensions should be in a package-specific
-# subdir of /usr/share/tcl
-mkdir -p $RPM_BUILD_ROOT/usr/share/tcl/tclrrd%{version}
-#mv $RPM_BUILD_ROOT/usr/lib/tclrrd%{version}/pkgIndex.tcl \
-# $RPM_BUILD_ROOT/usr/share/tcl/tclrrd%{version}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(-, root, root)
-%doc %{_docdir}/rrdtool
-%doc %{_mandir}/*/*
-/usr/bin/*
-%{_datadir}/tcl
-%{_libdir}/librrd.so.*
-%{_libdir}/librrd_th.so.*
-%{_libdir}/tclrrd*.so
-%{perl_vendorlib}/RRDp.pm
-%{perl_vendorarch}/RRDs.pm
-%{perl_vendorarch}/ntmake.pl
-%{perl_vendorarch}/auto/*
-/var/adm/perl-modules/rrdtool
-%{_datadir}/%{name}
-
-%package devel
-Summary: A tool for data logging and analysis - Development files
-Group: Productivity/Scientific/Math
-Requires: %name = %version
-
-%description devel
-A tool to log and analyze data gathered from all kinds of data sources.
-The data analysis part of RRDtool is based on the ability to quickly
-generate graphical representations of the data values collected over a
-definable time period.
-
-
-
-Authors:
---------
- Tobias Oetiker <oetiker@ee.ethz.ch>
-
-%files devel
-%defattr(-, root, root)
-/usr/include/*
-%{_libdir}/librrd_th.so
-%{_libdir}/librrd.a
-%{_libdir}/librrd.la
-%{_libdir}/librrd.so
-%{_libdir}/librrd_th.a
-%{_libdir}/librrd_th.la
-
-%package -n python-rrdtool
-Summary: Python bindings for rrdtool
-Group: Productivity/Scientific/Math
-Requires: %name = %version
-%py_requires
-
-%description -n python-rrdtool
-A tool to log and analyze data gathered from all kinds of data sources.
-The data analysis part of RRDtool is based on the ability to quickly
-generate graphical representations of the data values collected over a
-definable time period.
-
-This package contains the Python bindings
-
-
-
-Authors:
---------
- Tobias Oetiker <oetiker@ee.ethz.ch>
-
-%files -n python-rrdtool
-%defattr(-, root, root)
-%{py_sitedir}/*
-
-%changelog
-* Tue Jan 20 2009 Carsten Schoene <cs@linux-administrator.com>
-- update to version 1.2.30
- * TICK with negative numbers should 'start from the top of the graph' looking down ... now it does.
- * fix for segfault in rrd_cgi: caused by freeing a invalid address when printing an error message.
-
-
-* Thu Jul 24 2008 Carsten Schoene <cs@linux-administrator.com>
-- update to version 1.2.28
- * build fixes
- * add filename to illegal update message
- * rrdtool.fetch is returning an extra, bogus, data point.
|
[-]
[+]
|
Added |
rrdtool-1.2.13-php.patch
^
|
@@ -0,0 +1,1095 @@
+diff -Naur php4-orig/config.m4 php4/config.m4
+--- php4-orig/config.m4 2006-06-05 15:56:46.000000000 -0400
++++ php4/config.m4 2006-06-07 15:59:40.000000000 -0400
+@@ -1,24 +1,96 @@
+-dnl $Id: config.m4 9 2001-02-25 22:30:32Z oetiker $
++dnl $Id$
++dnl config.m4 for extension rrdtool
+
+-PHP_ARG_WITH(rrdtool, for RRDTool support,
+-[ --with-rrdtool[=DIR] Include RRDTool support. DIR is the rrdtool
+- install directory.])
++dnl Comments in this file start with the string 'dnl'.
++dnl Remove where necessary. This file will not work
++dnl without editing.
++
++dnl
++dnl Checks for the configure options
++dnl
++
++PHP_ARG_WITH(rrdtool, for rrdtool support,
++[ --with-rrdtool[=DIR] Include rrdtool support (requires rrdtool >= 1.0.49).])
+
+ if test "$PHP_RRDTOOL" != "no"; then
+- for i in /usr/local /usr /opt/rrdtool /usr/local/rrdtool $PHP_RRDTOOL; do
+- if test -f $i/include/rrd.h; then
+- RRDTOOL_DIR=$i
+- fi
+- done
+
+- if test -z "$RRDTOOL_DIR"; then
+- AC_MSG_ERROR(Please reinstall rrdtool, or specify a directory - I cannot find rrd.h)
++ if test "$PHP_RRDTOOL" != "yes"; then
++ AC_MSG_CHECKING(if rrdtool specified path is valid)
++ if test -r $PHP_RRDTOOL/include/rrd.h && test -f $PHP_RRDTOOL/lib/librrd.$SHLIB_SUFFIX_NAME -o -f $PHP_RRDTOOL/lib/librrd.a; then # path given as parameter
++ RRDTOOL_DIR=$PHP_RRDTOOL
++ RRDTOOL_INCDIR=$PHP_RRDTOOL/include
++ RRDTOOL_LIBDIR=$PHP_RRDTOOL/lib
++ AC_MSG_RESULT([yes])
++ else
++ AC_MSG_RESULT([no])
++ AC_MSG_ERROR([The specified RRDTool path is Invalid or the installation is incomplete
++ Please specify another path or reinstall the rrdtool distribution])
++ fi
++ else
++ dnl Header path
++ AC_MSG_CHECKING([for rrdtool header files in default path])
++ for i in /usr/local/rrdtool /usr/local /usr /opt ""; do
++ test -r $i/include/rrd.h && RRDTOOL_DIR=$i && RRDTOOL_INCDIR=$i/include
++ done
++ if test -z "$RRDTOOL_INCDIR"; then
++ AC_MSG_RESULT([not found])
++ AC_MSG_ERROR([Please reinstall the rrdtool distribution])
++ else
++ AC_MSG_RESULT(found in $RRDTOOL_INCDIR)
++ fi
++ dnl Library path
++ AC_MSG_CHECKING([for rrdtool library files in default path])
++ for i in librrd.$SHLIB_SUFFIX_NAME librrd.a; do
++ test -f $RRDTOOL_DIR/lib/$i && RRDTOOL_LIBDIR=$RRDTOOL_DIR/lib
++ done
++ if test -z "$RRDTOOL_LIBDIR"; then
++ AC_MSG_RESULT([not found])
++ AC_MSG_ERROR([Please reinstall the rrdtool distribution])
++ else
++ AC_MSG_RESULT(found in $RRDTOOL_LIBDIR)
++ fi
+ fi
+- AC_ADD_INCLUDE($RRDTOOL_DIR/include)
+- AC_ADD_LIBRARY_WITH_PATH(rrd, $RRDTOOL_DIR/lib, RRDTOOL_SHARED_LIBADD)
+- PHP_SUBST(RRDTOOL_SHARED_LIBADD)
+
+- AC_DEFINE(HAVE_RRDTOOL,1,[ ])
++dnl Finish the setup
+
+- PHP_EXTENSION(rrdtool, $ext_shared)
++ RRD_H_PATH="$RRDTOOL_INCDIR/rrd.h"
++ PHP_RRDTOOL_DIR=$RRDTOOL_DIR
++ PHP_ADD_INCLUDE($RRDTOOL_INCDIR)
++
++ PHP_CHECK_LIBRARY(rrd, rrd_create,
++ [],[
++ PHP_CHECK_LIBRARY(rrd, rrd_create,
++ [],[
++ AC_MSG_ERROR([wrong rrd lib version or lib not found])
++ ],[
++ -L$RRDTOOL_LIBDIR -ldl
++ ])
++ ],[
++ -L$RRDTOOL_LIBDIR -ldl
++ ])
++
++ AC_MSG_CHECKING([rrdtool version])
++ AC_TRY_COMPILE([
++#include <$RRD_H_PATH>
++ ], [int main() {
++ double some_variable;
++ some_variable = rrd_version();
++ }
++ ], [
++ AC_MSG_RESULT([1.2.x])
++ ac_cv_rrdversion=yes
++ ], [
++ AC_MSG_RESULT([1.0.x])
++ ac_cv_rrdversion=no
++ ])
++
++ if test "$ac_cv_rrdversion" = yes; then
++ AC_DEFINE(HAVE_RRD_12X, 1, [Whether you have rrd_verion])
++ fi
++
++ PHP_ADD_LIBRARY_WITH_PATH(rrd, $RRDTOOL_LIBDIR, RRDTOOL_SHARED_LIBADD)
++
++ PHP_NEW_EXTENSION(rrdtool, rrdtool.c, $ext_shared)
++ PHP_SUBST(RRDTOOL_SHARED_LIBADD)
++ AC_DEFINE(HAVE_RRDTOOL, 1, [ ])
+ fi
+diff -Naur php4-orig/configure php4/configure
+--- php4-orig/configure 2006-06-06 09:31:42.000000000 -0400
++++ php4/configure 2006-06-07 15:56:06.000000000 -0400
+@@ -1159,6 +1159,7 @@
+
+ cat >> confdefs.h <<\EOF
+ #define HAVE_RRDTOOL 1
++#define HAVE_RRD_12X 1
+ EOF
+
+
+diff -Naur php4-orig/ltconfig php4/ltconfig
+--- php4-orig/ltconfig 2006-06-05 15:56:46.000000000 -0400
++++ php4/ltconfig 2006-06-07 17:16:50.000000000 -0400
+@@ -1247,7 +1247,8 @@
+
+ if test "$ld_shlibs" = yes; then
+ runpath_var=LD_RUN_PATH
+- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
++ #hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
++ hardcode_libdir_flag_spec=''
+ export_dynamic_flag_spec='${wl}--export-dynamic'
+ case $host_os in
+ cygwin* | mingw*)
+diff -Naur php4-orig/php_rrdtool.h php4/php_rrdtool.h
+--- php4-orig/php_rrdtool.h 2006-06-05 15:56:46.000000000 -0400
++++ php4/php_rrdtool.h 2006-06-07 17:26:07.000000000 -0400
+@@ -5,42 +5,60 @@
+ *
+ * Joe Miller, <joeym@inficad.com>,<joeym@ibizcorp.com>, 7/19/2000
+ *
+- * $Id: php_rrdtool.h 9 2001-02-25 22:30:32Z oetiker $
++ * $Id: php_rrdtool.h,v 1.1.1.1 2002/02/26 10:21:20 oetiker Exp $
+ *
+ */
+
+-#ifndef _PHP4_RRDTOOL_H
+-#define _PHP4_RRDTOOL_H
++#ifndef PHP_RRDTOOL_H
++#define PHP_RRDTOOL_H
+
+-#if COMPILE_DL
+-#undef HAVE_RRDTOOL
+-#define HAVE_RRDTOOL 1
++#ifdef PHP_WIN32
++#ifdef PHP_RRDTOOL_EXPORTS
++#define PHP_RRDTOOL_API __declspec(dllexport)
++#else
++#define PHP_RRDTOOL_API __declspec(dllimport)
+ #endif
+-#ifndef DLEXPORT
+-#define DLEXPORT
++#else
++#define PHP_RRDTOOL_API
+ #endif
+
+ #if HAVE_RRDTOOL
+
+-PHP_MINFO_FUNCTION(rrdtool);
+-
+ extern zend_module_entry rrdtool_module_entry;
+ #define rrdtool_module_ptr &rrdtool_module_entry
+-#define phpext_rrdtool_ptr rrdtool_module_ptr
+
++#ifdef ZTS
++#include "TSRM.h"
++#endif
++
++#define RRDTOOL_LOGO_GUID "PHP25B1F7E8-916B-11D9-9A54-000A95AE92DA"
++
++/* If you declare any globals in php_rrdtool.h uncomment this:
++ZEND_BEGIN_MODULE_GLOBALS(rrdtool)
++
++ZEND_END_MODULE_GLOBALS(rrdtool)
++ */
++
++PHP_MINIT_FUNCTION(rrdtool);
++PHP_MSHUTDOWN_FUNCTION(rrdtool);
++PHP_MINFO_FUNCTION(rrdtool);
++
++PHP_FUNCTION(rrd_graph);
++PHP_FUNCTION(rrd_fetch);
+ PHP_FUNCTION(rrd_error);
|
[-]
[+]
|
Added |
rrdtool-1.2.19-python.patch
^
|
@@ -0,0 +1,22 @@
+diff -uNr bindings/python-orig/Makefile.am bindings/python/Makefile.am
+--- bindings/python-orig/Makefile.am 2007-03-31 11:21:43.000000000 +0100
++++ bindings/python/Makefile.am 2007-03-31 11:24:47.000000000 +0100
+@@ -2,6 +2,7 @@
+
+ pyexec_PROGRAMS = rrdtoolmodule.so
+
++rrdtoolmodule_so_LDFLAGS = -module -shared
+ rrdtoolmodule_so_LDADD = $(top_builddir)/src/librrd.la
+ rrdtoolmodule_so_SOURCES = rrdtoolmodule.c
+
+diff -uNr bindings/python-orig/Makefile.in bindings/python/Makefile.in
+--- bindings/python-orig/Makefile.in 2007-03-31 11:21:43.000000000 +0100
++++ bindings/python/Makefile.in 2007-03-31 11:22:14.000000000 +0100
+@@ -233,6 +233,7 @@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+ AM_CPPFLAGS = @CFLAGS@ -I$(top_srcdir)/src @PYTHON_INCLUDES@
++rrdtoolmodule_so_LDFLAGS = -module -shared
+ rrdtoolmodule_so_LDADD = $(top_builddir)/src/librrd.la
+ rrdtoolmodule_so_SOURCES = rrdtoolmodule.c
+ noinst_HEADERS = rrd_extra.h
|
[-]
[+]
|
Deleted |
rrdtool-1.2.23-python.diff
^
|
@@ -1,11 +0,0 @@
---- bindings/python/setup.py
-+++ bindings/python/setup.py
-@@ -48,7 +48,7 @@
- "rrdtoolmodule",
- ["rrdtoolmodule.c"],
- libraries=['rrd'],
-- runtime_library_dirs=[library_dir],
-+# runtime_library_dirs=[library_dir],
- library_dirs=[library_dir],
- include_dirs=[include_dir],
- )
|
[-]
[+]
|
Deleted |
rrdtool-1.2.23-ssize.diff
^
|
@@ -1,16 +0,0 @@
---- bindings/python/rrdtoolmodule.c
-+++ bindings/python/rrdtoolmodule.c
-@@ -57,7 +57,12 @@
- PyObject *o;
- int size, i;
-
-- size = PyTuple_Size(args);
-+ if ( PyTuple_Size(args) <= INT_MAX )
-+ size = PyTuple_Size(args);
-+ else {
-+ PyErr_Format(PyExc_ValueError,"too big return value");
-+ return -1;
-+ }
- *argv = PyMem_New(char *, size + 1);
- if (*argv == NULL)
- return -1;
|
[-]
[+]
|
Deleted |
rrdtool-1.2.26-ssize.diff
^
|
@@ -1,16 +0,0 @@
---- bindings/python/rrdtoolmodule.c
-+++ bindings/python/rrdtoolmodule.c
-@@ -57,7 +57,12 @@
- PyObject *o;
- int size, i;
-
-- size = PyTuple_Size(args);
-+ if ( PyTuple_Size(args) <= INT_MAX )
-+ size = PyTuple_Size(args);
-+ else {
-+ PyErr_Format(PyExc_ValueError,"too big return value");
-+ return -1;
-+ }
- *argv = PyMem_New(char *, size + 1);
- if (*argv == NULL)
- return -1;
|
[-]
[+]
|
Deleted |
rrdtool-1.2.27-ssize.diff
^
|
@@ -1,16 +0,0 @@
---- bindings/python/rrdtoolmodule.c
-+++ bindings/python/rrdtoolmodule.c
-@@ -57,7 +57,12 @@
- PyObject *o;
- int size, i;
-
-- size = PyTuple_Size(args);
-+ if ( PyTuple_Size(args) <= INT_MAX )
-+ size = PyTuple_Size(args);
-+ else {
-+ PyErr_Format(PyExc_ValueError,"too big return value");
-+ return -1;
-+ }
- *argv = PyMem_New(char *, size + 1);
- if (*argv == NULL)
- return -1;
|
[-]
[+]
|
Deleted |
rrdtool-1.2.28-ssize.diff
^
|
@@ -1,16 +0,0 @@
---- bindings/python/rrdtoolmodule.c
-+++ bindings/python/rrdtoolmodule.c
-@@ -57,7 +57,12 @@
- PyObject *o;
- int size, i;
-
-- size = PyTuple_Size(args);
-+ if ( PyTuple_Size(args) <= INT_MAX )
-+ size = PyTuple_Size(args);
-+ else {
-+ PyErr_Format(PyExc_ValueError,"too big return value");
-+ return -1;
-+ }
- *argv = PyMem_New(char *, size + 1);
- if (*argv == NULL)
- return -1;
|
[-]
[+]
|
Deleted |
rrdtool-1.2.30-ssize.diff
^
|
@@ -1,16 +0,0 @@
---- bindings/python/rrdtoolmodule.c
-+++ bindings/python/rrdtoolmodule.c
-@@ -57,7 +57,12 @@
- PyObject *o;
- int size, i;
-
-- size = PyTuple_Size(args);
-+ if ( PyTuple_Size(args) <= INT_MAX )
-+ size = PyTuple_Size(args);
-+ else {
-+ PyErr_Format(PyExc_ValueError,"too big return value");
-+ return -1;
-+ }
- *argv = PyMem_New(char *, size + 1);
- if (*argv == NULL)
- return -1;
|
[-]
[+]
|
Deleted |
rrdtool-1.3.0-ssize.diff
^
|
@@ -1,17 +0,0 @@
---- bindings/python/rrdtoolmodule.c.orig 2008-06-11 20:14:04.000000000 +0200
-+++ bindings/python/rrdtoolmodule.c 2008-06-11 20:15:07.000000000 +0200
-@@ -61,7 +61,13 @@
- PyObject *o;
- int size, i;
-
-- size = PyTuple_Size(args);
-+ if ( PyTuple_Size(args) <= INT_MAX )
-+ size = PyTuple_Size(args);
-+ else {
-+ PyErr_Format(PyExc_ValueError,"too big return value");
-+ return -1;
-+ }
-+
- *argv = PyMem_New(char *,
- size + 1);
-
|
[-]
[+]
|
Added |
_aggregate
^
|
@@ -0,0 +1,5 @@
+<aggregatelist>
+ <aggregate project="server:monitoring">
+ <package>rrdtool</package>
+ </aggregate>
+</aggregatelist>
|
|
Deleted |
cgilib-0.5.tar.bz2
^
|
|
Deleted |
ready
^
|
|
Renamed |
rrdtool-1.2.23.tar.gz
^
|
|
Deleted |
rrdtool-1.2.26.tar.gz
^
|
|
Deleted |
rrdtool-1.2.28.tar.gz
^
|
|
Deleted |
rrdtool-1.2.30.tar.bz2
^
|
|
Deleted |
rrdtool-1.3.0.tar.gz
^
|