aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-03-21 05:24:44 +0800
committerpav <pav@FreeBSD.org>2006-03-21 05:24:44 +0800
commitadfadfa72114d082189bcc1acc127ba18be6508a (patch)
tree733d5d64ff256a96735b4a56ec43b0ed7ba01b36 /databases
parentd1570cd9c86822f3cbeb5dd66c29dc96d28c6f2c (diff)
downloadfreebsd-ports-gnome-adfadfa72114d082189bcc1acc127ba18be6508a.tar.gz
freebsd-ports-gnome-adfadfa72114d082189bcc1acc127ba18be6508a.tar.zst
freebsd-ports-gnome-adfadfa72114d082189bcc1acc127ba18be6508a.zip
Contained herein are bindings to allow you to interface php scripts with RRD
tool directly via RRD tool's 'librrd' library, thus avoiding the need to use system() calls to the rrdtool binary. WWW: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/contrib/php_rrdtool.txt PR: ports/94704 Submitted by: Rick van der Zwet <rick@wzoeterwoude.net>
Diffstat (limited to 'databases')
-rw-r--r--databases/php5-rrdtool/files/patch-config.m455
-rw-r--r--databases/php5-rrdtool/pkg-descr5
2 files changed, 60 insertions, 0 deletions
diff --git a/databases/php5-rrdtool/files/patch-config.m4 b/databases/php5-rrdtool/files/patch-config.m4
new file mode 100644
index 000000000000..733aa4b443b5
--- /dev/null
+++ b/databases/php5-rrdtool/files/patch-config.m4
@@ -0,0 +1,55 @@
+--- config.m4.orig Wed Nov 30 19:44:51 2005
++++ config.m4 Sun Mar 19 20:48:34 2006
+@@ -13,7 +13,7 @@
+ [ --with-rrdtool[=DIR] Include rrdtool support (requires rrdtool >= 1.0.49).])
+
+ if test "$PHP_RRDTOOL" != "no"; then
+-
++ PHP_NEW_EXTENSION(rrdtool, rrdtool.c, $ext_shared)
+ 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
+@@ -51,7 +51,14 @@
+ fi
+ fi
+
+-dnl Finish the setup
++
++ dnl PHP Libaries include
++ AC_DEFINE(HAVE_RRDTOOL,1,[ ])
++ PHP_SUBST(RRDTOOL_SHARED_LIBADD)
++ PHP_ADD_LIBRARY_WITH_PATH(rrd, $RRDTOOL_LIBDIR, RRDTOOL_SHARED_LIBADD)
++ PHP_ADD_INCLUDE($RRDTOOL_INCDIR)
++
++ dnl Finish the setup
+
+ RRD_H_PATH="$RRDTOOL_INCDIR/rrd.h"
+ PHP_RRDTOOL_DIR=$RRDTOOL_DIR
+@@ -59,14 +66,9 @@
+
+ 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
+- ])
++ AC_MSG_ERROR([wrong rrd lib version or lib not found])
+ ],[
+- -L$RRDTOOL_LIBDIR -ldl
++ -L$RRDTOOL_LIBDIR
+ ])
+
+ AC_MSG_CHECKING([rrdtool version])
+@@ -87,10 +89,4 @@
+ 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 --git a/databases/php5-rrdtool/pkg-descr b/databases/php5-rrdtool/pkg-descr
new file mode 100644
index 000000000000..0e3d378eb184
--- /dev/null
+++ b/databases/php5-rrdtool/pkg-descr
@@ -0,0 +1,5 @@
+Contained herein are bindings to allow you to interface php scripts with RRD
+tool directly via RRD tool's 'librrd' library, thus avoiding the need to use
+system() calls to the rrdtool binary.
+
+WWW: http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/contrib/php_rrdtool.txt