aboutsummaryrefslogtreecommitdiff
path: root/databases/php52-rrdtool
diff options
context:
space:
mode:
authorMichael Scheidell <scheidell@FreeBSD.org>2011-12-08 19:46:29 +0000
committerMichael Scheidell <scheidell@FreeBSD.org>2011-12-08 19:46:29 +0000
commitff2f493345165dfe6a20d151ced552b535503bcb (patch)
treec61dced7e4920f7e4208f0e1e4cfb247cab0b867 /databases/php52-rrdtool
parentd9442786a3e41addc3f910dce0923fb8d7192435 (diff)
downloadports-ff2f493345165dfe6a20d151ced552b535503bcb.tar.gz
ports-ff2f493345165dfe6a20d151ced552b535503bcb.zip
Notes
Diffstat (limited to 'databases/php52-rrdtool')
-rw-r--r--databases/php52-rrdtool/Makefile34
-rw-r--r--databases/php52-rrdtool/distinfo2
-rw-r--r--databases/php52-rrdtool/files/patch-config.m455
-rw-r--r--databases/php52-rrdtool/pkg-descr5
4 files changed, 96 insertions, 0 deletions
diff --git a/databases/php52-rrdtool/Makefile b/databases/php52-rrdtool/Makefile
new file mode 100644
index 000000000000..932120b3dd97
--- /dev/null
+++ b/databases/php52-rrdtool/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: php5-rrdtool
+# Date created: 27 Nov 2011
+# Whom: scheidell@freebsd.org
+# Credits: rick@wzoeterwoude.net
+#
+# $FreeBSD$
+
+PORTNAME= rrdtool
+PORTVERSION= 1.00
+CATEGORIES= databases
+MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/contrib/ \
+ http://ftp.ntua.gr/pub/net/monitoring/rrdtool/contrib/ \
+ http://www.mirrors.wiretapped.net/security/network-monitoring/rrdtool/contrib/
+PKGNAMEPREFIX= php52-
+DISTNAME= php_rrdtool
+
+MAINTAINER= scheidell@secnap.net
+COMMENT= A php 52 rrdtool glue
+
+LIB_DEPENDS= rrd:${PORTSDIR}/databases/rrdtool
+
+WRKSRC= ${WRKDIR}/rrdtool
+
+USE_PHP= yes
+DEFAULT_PHP_VER=52
+USE_PHPEXT= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 700000
+BROKEN= does not configure on 6.X
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/php52-rrdtool/distinfo b/databases/php52-rrdtool/distinfo
new file mode 100644
index 000000000000..7c2e98e8f52c
--- /dev/null
+++ b/databases/php52-rrdtool/distinfo
@@ -0,0 +1,2 @@
+SHA256 (php_rrdtool.tar.gz) = 922719f2dd8772512339e82856ed4f102b493ef5d34d6cb389eded57c0a1bce4
+SIZE (php_rrdtool.tar.gz) = 9353
diff --git a/databases/php52-rrdtool/files/patch-config.m4 b/databases/php52-rrdtool/files/patch-config.m4
new file mode 100644
index 000000000000..733aa4b443b5
--- /dev/null
+++ b/databases/php52-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/php52-rrdtool/pkg-descr b/databases/php52-rrdtool/pkg-descr
new file mode 100644
index 000000000000..f69073be4841
--- /dev/null
+++ b/databases/php52-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://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.txt