diff options
author | scheidell <scheidell@FreeBSD.org> | 2011-12-09 03:46:29 +0800 |
---|---|---|
committer | scheidell <scheidell@FreeBSD.org> | 2011-12-09 03:46:29 +0800 |
commit | 5540fdf79c951ecae33df1173d5fa7362c3be7cc (patch) | |
tree | eb1f574e2944abe58f26f685c2e444a80127ff69 /databases | |
parent | a703e7f42bb455a4eb5c70511a946b5c830e11b5 (diff) | |
download | freebsd-ports-gnome-5540fdf79c951ecae33df1173d5fa7362c3be7cc.tar.gz freebsd-ports-gnome-5540fdf79c951ecae33df1173d5fa7362c3be7cc.tar.zst freebsd-ports-gnome-5540fdf79c951ecae33df1173d5fa7362c3be7cc.zip |
- New port, copy of databases/php5-rrdtool, needed for companies
- stuck on php52
PR: ports/159894 [1]
Submitted by: scheidell@secnap.net [1]
Approved by: gabor (mentor)
Feature safe: yes
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/php52-rrdtool/Makefile | 34 | ||||
-rw-r--r-- | databases/php52-rrdtool/distinfo | 2 | ||||
-rw-r--r-- | databases/php52-rrdtool/files/patch-config.m4 | 55 | ||||
-rw-r--r-- | databases/php52-rrdtool/pkg-descr | 5 |
5 files changed, 97 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 434220064100..93de992a9ed0 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -593,6 +593,7 @@ SUBDIR += php52-pdo_pgsql SUBDIR += php52-pdo_sqlite SUBDIR += php52-pgsql + SUBDIR += php52-rrdtool SUBDIR += php52-sqlite SUBDIR += php52-sybase_ct SUBDIR += phpminiadmin 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 |