Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

made corrections so that it will build properly with PECL

  • Loading branch information...
commit 0e0625b789e11666fd0ad1158f62228d7107f69e 1 parent cfbdfb1
@sugendran sugendran authored
Showing with 192 additions and 129 deletions.
  1. +22 −39 config.m4
  2. +72 −90 package.xml
  3. +98 −0 package2.xml
View
61 config.m4
@@ -5,47 +5,30 @@ PHP_ARG_ENABLE(graphdat, whether to enable Graphdat support,
[ --enable-graphdat Enable Graphdat support])
if test "$PHP_GRAPHDAT" != "no"; then
- dnl Write more examples of tests here...
-
- dnl # --with-graphdat -> check with-path
- dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
- dnl SEARCH_FOR="/include/graphdat.h" # you most likely want to change this
- dnl if test -r $PHP_GRAPHDAT/$SEARCH_FOR; then # path given as parameter
- dnl GRAPHDAT_DIR=$PHP_GRAPHDAT
- dnl else # search default path list
- dnl AC_MSG_CHECKING([for graphdat files in default path])
- dnl for i in $SEARCH_PATH ; do
- dnl if test -r $i/$SEARCH_FOR; then
- dnl GRAPHDAT_DIR=$i
- dnl AC_MSG_RESULT(found in $i)
- dnl fi
- dnl done
- dnl fi
- dnl
- dnl if test -z "$GRAPHDAT_DIR"; then
- dnl AC_MSG_RESULT([not found])
- dnl AC_MSG_ERROR([Please reinstall the graphdat distribution])
- dnl fi
-
dnl # --with-graphdat -> add include path
- PHP_ADD_INCLUDE(src)
- PHP_ADD_INCLUDE(src/msgpack)
- dnl # --with-graphdat -> check for lib and symbol presence
- dnl LIBNAME=graphdat # you may want to change this
- dnl LIBSYMBOL=graphdat # you most likely want to change this
+ #find . -name "*.c" -print
+ graphdat_sources=" \
+ graphdat.c \
+ src/cake.c \
+ src/drupal7.c \
+ src/joomla.c \
+ src/magento.c \
+ src/msgpack/objectc.c \
+ src/msgpack/unpack.c \
+ src/msgpack/version.c \
+ src/msgpack/vrefbuffer.c \
+ src/msgpack/zone.c \
+ src/sockets.c \
+ src/timers.c \
+ src/wordpress.c \
+ src/zendplugin.c"
- dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
- dnl [
- dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $GRAPHDAT_DIR/lib, GRAPHDAT_SHARED_LIBADD)
- dnl AC_DEFINE(HAVE_GRAPHDATLIB,1,[ ])
- dnl ],[
- dnl AC_MSG_ERROR([wrong graphdat lib version or lib not found])
- dnl ],[
- dnl -L$GRAPHDAT_DIR/lib -lm
- dnl ])
- dnl
- dnl PHP_SUBST(GRAPHDAT_SHARED_LIBADD)
+ PHP_NEW_EXTENSION(graphdat, $graphdat_sources, $ext_shared)
+
+ PHP_ADD_INCLUDE($ext_srcdir/src)
+ PHP_ADD_INCLUDE($ext_srcdir/src/msgpack)
+ PHP_ADD_BUILD_DIR($ext_builddir/src)
+ PHP_ADD_BUILD_DIR($ext_builddir/src/msgpack)
- PHP_NEW_EXTENSION(graphdat, [graphdat.c src/*.c src/msgpack/*.c], $ext_shared)
fi
View
162 package.xml
@@ -1,98 +1,80 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
-http://pear.php.net/dtd/tasks-1.0.xsd
-http://pear.php.net/dtd/package-2.0
-http://pear.php.net/dtd/package-2.0.xsd">
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
+<package version="1.0" packagerversion="1.9.4">
<name>graphdat</name>
- <channel>pecl.php.net</channel>
<summary>Troubleshoot application and server performance</summary>
<description>Graphdat is a real time performance monitoring tool for websites. Graphdat graphs system metrics along side request counts and response time data. The purpose of the extension is report request counts and response time information to our agent (installed on the box) which forwards that along to our servers. The data is then presented in a graph so that you can see performance spikes as they happen, and trends over time.
</description>
- <lead>
- <name>Graphdat Team</name>
- <user>graphdat</user>
- <email>support@graphdat.com</email>
- <active>yes</active>
- </lead>
- <date>2012-12-17</date>
- <time>00:26:04</time>
- <version>
- <release>0.1.0</release>
- <api>0.1.0</api>
- </version>
- <stability>
- <release>beta</release>
- <api>beta</api>
- </stability>
- <license uri="http://www.opensource.org/licenses/mit-license.php">MIT</license>
- <notes>
-Preliminary release, linux based platforms only
- </notes>
- <contents>
- <dir name="/">
+ <maintainers>
+ <maintainer>
+ <user>graphdat</user>
+ <name>Graphdat Team</name>
+ <email>support@graphdat.com</email>
+ <role>lead</role>
+ </maintainer>
+ </maintainers>
+ <release>
+ <version>0.1.0</version>
+ <date>2012-12-17</date>
+ <license>MIT</license>
+ <state>beta</state>
+ <notes>Preliminary release, linux based platforms only
+ </notes>
+ <deps>
+ <dep type="php" rel="ge" version="4.0.0"/>
+ </deps>
+ <filelist>
<dir name="src">
<dir name="msgpack">
<dir name="msgpack">
- <file name="object.h" role="src" />
- <file name="pack.h" role="src" />
- <file name="pack_define.h" role="src" />
- <file name="pack_template.h" role="src" />
- <file name="sbuffer.h" role="src" />
- <file name="sysdep.h" role="src" />
- <file name="unpack.h" role="src" />
- <file name="unpack_define.h" role="src" />
- <file name="unpack_template.h" role="src" />
- <file name="version.h" role="src" />
- <file name="version.h.in" role="src" />
- <file name="vrefbuffer.h" role="src" />
- <file name="zbuffer.h" role="src" />
- <file name="zone.h" role="src" />
- <file name="zone.hpp.erb" role="src" />
- </dir> <!-- //src/msgpack/msgpack -->
- <file name="AUTHORS" role="doc" />
- <file name="COPYING" role="doc" />
- <file name="LICENSE" role="doc" />
- <file name="msgpack.h" role="src" />
- <file name="objectc.c" role="src" />
- <file name="unpack.c" role="src" />
- <file name="version.c" role="src" />
- <file name="vrefbuffer.c" role="src" />
- <file name="zone.c" role="src" />
- </dir> <!-- //src/msgpack -->
- <file name="cake.c" role="src" />
- <file name="cake.h" role="src" />
- <file name="drupal7.c" role="src" />
- <file name="drupal7.h" role="src" />
- <file name="joomla.c" role="src" />
- <file name="joomla.h" role="src" />
- <file name="magento.c" role="src" />
- <file name="magento.h" role="src" />
- <file name="sockets.c" role="src" />
- <file name="sockets.h" role="src" />
- <file name="timers.c" role="src" />
- <file name="timers.h" role="src" />
- <file name="wordpress.c" role="src" />
- <file name="wordpress.h" role="src" />
- <file name="zendplugin.c" role="src" />
- <file name="zendplugin.h" role="src" />
- </dir> <!-- //src -->
- <file name="config.m4" role="src" />
- <file name="graphdat.c" role="src" />
- <file name="LICENSE" role="doc" />
- <file name="php_graphdat.h" role="src" />
- <file name="README.md" role="doc" />
- </dir> <!-- / -->
- </contents>
- <dependencies>
- <required>
- <php>
- <min>4.0.0</min>
- </php>
- <pearinstaller>
- <min>1.4.0b1</min>
- </pearinstaller>
- </required>
- </dependencies>
- <providesextension>graphdat</providesextension>
- <extsrcrelease />
+ <file role="src" name="object.h"/>
+ <file role="src" name="pack.h"/>
+ <file role="src" name="pack_define.h"/>
+ <file role="src" name="pack_template.h"/>
+ <file role="src" name="sbuffer.h"/>
+ <file role="src" name="sysdep.h"/>
+ <file role="src" name="unpack.h"/>
+ <file role="src" name="unpack_define.h"/>
+ <file role="src" name="unpack_template.h"/>
+ <file role="src" name="version.h"/>
+ <file role="src" name="version.h.in"/>
+ <file role="src" name="vrefbuffer.h"/>
+ <file role="src" name="zbuffer.h"/>
+ <file role="src" name="zone.h"/>
+ <file role="src" name="zone.hpp.erb"/>
+ </dir> <!-- /src/msgpack/msgpack -->
+ <file role="doc" name="AUTHORS"/>
+ <file role="doc" name="COPYING"/>
+ <file role="doc" name="LICENSE"/>
+ <file role="src" name="msgpack.h"/>
+ <file role="src" name="objectc.c"/>
+ <file role="src" name="unpack.c"/>
+ <file role="src" name="version.c"/>
+ <file role="src" name="vrefbuffer.c"/>
+ <file role="src" name="zone.c"/>
+ </dir> <!-- /src/msgpack -->
+ <file role="src" name="cake.c"/>
+ <file role="src" name="cake.h"/>
+ <file role="src" name="drupal7.c"/>
+ <file role="src" name="drupal7.h"/>
+ <file role="src" name="joomla.c"/>
+ <file role="src" name="joomla.h"/>
+ <file role="src" name="magento.c"/>
+ <file role="src" name="magento.h"/>
+ <file role="src" name="sockets.c"/>
+ <file role="src" name="sockets.h"/>
+ <file role="src" name="timers.c"/>
+ <file role="src" name="timers.h"/>
+ <file role="src" name="wordpress.c"/>
+ <file role="src" name="wordpress.h"/>
+ <file role="src" name="zendplugin.c"/>
+ <file role="src" name="zendplugin.h"/>
+ </dir> <!-- /src -->
+ <file role="src" name="config.m4"/>
+ <file role="src" name="graphdat.c"/>
+ <file role="doc" name="LICENSE"/>
+ <file role="src" name="php_graphdat.h"/>
+ <file role="doc" name="README.md"/>
+ </filelist>
+ </release>
</package>
View
98 package2.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
+http://pear.php.net/dtd/tasks-1.0.xsd
+http://pear.php.net/dtd/package-2.0
+http://pear.php.net/dtd/package-2.0.xsd">
+ <name>graphdat</name>
+ <channel>pecl.php.net</channel>
+ <summary>Troubleshoot application and server performance</summary>
+ <description>Graphdat is a real time performance monitoring tool for websites. Graphdat graphs system metrics along side request counts and response time data. The purpose of the extension is report request counts and response time information to our agent (installed on the box) which forwards that along to our servers. The data is then presented in a graph so that you can see performance spikes as they happen, and trends over time.
+ </description>
+ <lead>
+ <name>Graphdat Team</name>
+ <user>graphdat</user>
+ <email>support@graphdat.com</email>
+ <active>yes</active>
+ </lead>
+ <date>2012-12-17</date>
+ <time>00:26:04</time>
+ <version>
+ <release>0.1.0</release>
+ <api>0.1.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <license uri="http://www.opensource.org/licenses/mit-license.php">MIT</license>
+ <notes>
+Preliminary release, linux based platforms only
+ </notes>
+ <contents>
+ <dir name="/">
+ <dir name="src">
+ <dir name="msgpack">
+ <dir name="msgpack">
+ <file name="object.h" role="src" />
+ <file name="pack.h" role="src" />
+ <file name="pack_define.h" role="src" />
+ <file name="pack_template.h" role="src" />
+ <file name="sbuffer.h" role="src" />
+ <file name="sysdep.h" role="src" />
+ <file name="unpack.h" role="src" />
+ <file name="unpack_define.h" role="src" />
+ <file name="unpack_template.h" role="src" />
+ <file name="version.h" role="src" />
+ <file name="version.h.in" role="src" />
+ <file name="vrefbuffer.h" role="src" />
+ <file name="zbuffer.h" role="src" />
+ <file name="zone.h" role="src" />
+ <file name="zone.hpp.erb" role="src" />
+ </dir> <!-- //src/msgpack/msgpack -->
+ <file name="AUTHORS" role="doc" />
+ <file name="COPYING" role="doc" />
+ <file name="LICENSE" role="doc" />
+ <file name="msgpack.h" role="src" />
+ <file name="objectc.c" role="src" />
+ <file name="unpack.c" role="src" />
+ <file name="version.c" role="src" />
+ <file name="vrefbuffer.c" role="src" />
+ <file name="zone.c" role="src" />
+ </dir> <!-- //src/msgpack -->
+ <file name="cake.c" role="src" />
+ <file name="cake.h" role="src" />
+ <file name="drupal7.c" role="src" />
+ <file name="drupal7.h" role="src" />
+ <file name="joomla.c" role="src" />
+ <file name="joomla.h" role="src" />
+ <file name="magento.c" role="src" />
+ <file name="magento.h" role="src" />
+ <file name="sockets.c" role="src" />
+ <file name="sockets.h" role="src" />
+ <file name="timers.c" role="src" />
+ <file name="timers.h" role="src" />
+ <file name="wordpress.c" role="src" />
+ <file name="wordpress.h" role="src" />
+ <file name="zendplugin.c" role="src" />
+ <file name="zendplugin.h" role="src" />
+ </dir> <!-- //src -->
+ <file name="config.m4" role="src" />
+ <file name="graphdat.c" role="src" />
+ <file name="LICENSE" role="doc" />
+ <file name="php_graphdat.h" role="src" />
+ <file name="README.md" role="doc" />
+ </dir> <!-- / -->
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>4.0.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.0b1</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <providesextension>graphdat</providesextension>
+ <extsrcrelease />
+</package>
Please sign in to comment.
Something went wrong with that request. Please try again.