Date: Thu, 28 Jun 2012 12:55:52 +0800 (CST) From: Gasol Wu <gasol.wu@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/169506: [NEW PORT] devel/pecl-inotify: The inotify extension allows to use inotify functions in a PHP script. Message-ID: <20120628045552.A3433747040@goingmarry.kkbox.com> Resent-Message-ID: <201206280500.q5S50Uel091159@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169506 >Category: ports >Synopsis: [NEW PORT] devel/pecl-inotify: The inotify extension allows to use inotify functions in a PHP script. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 28 05:00:30 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Gasol Wu >Release: FreeBSD 9.0-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD goingmarry 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 >Description: The inotify extension allows to use inotify functions in a PHP script. WWW: http://pecl.php.net/package/inotify Generated with FreeBSD Port Tools 0.99_6 (mode: new) >How-To-Repeat: >Fix: --- .shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pecl-inotify # pecl-inotify/pkg-descr # pecl-inotify/Makefile # pecl-inotify/distinfo # pecl-inotify/files # pecl-inotify/files/patch-config.m4 # echo c - pecl-inotify mkdir -p pecl-inotify > /dev/null 2>&1 echo x - pecl-inotify/pkg-descr sed 's/^X//' >pecl-inotify/pkg-descr << '3c00785ba4251b2714cfe092719cd802' XThe inotify extension allows to use inotify functions in a PHP script. X XWWW: http://pecl.php.net/package/inotify 3c00785ba4251b2714cfe092719cd802 echo x - pecl-inotify/Makefile sed 's/^X//' >pecl-inotify/Makefile << 'f39f6f9c69e29d48db96ce679d566ab0' X# New ports collection makefile for: pecl-inotify X# Date created: 2012-06-26 X# Whom: Gasol Wu <gasol.wu@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= inotify XPORTVERSION= 0.1.6 XCATEGORIES= devel XMASTER_SITES= http://pecl.php.net/get/ XPKGNAMEPREFIX= pecl- XEXTRACT_SUFX= .tgz XDIST_SUBDIR= PECL X XMAINTAINER= gasol.wu@gmail.com XCOMMENT= The inotify extension allows to use inotify functions in a PHP script. X XLICENSE= PHP301 X XLIB_DEPENDS= inotify:${PORTSDIR}/devel/libinotify XUSE_PHP= yes XUSE_PHP_BUILD= yes XUSE_PHPIZE= yes XUSE_PHPEXT= yes XIGNORE_WITH_PHP=4 X X.include <bsd.port.mk> f39f6f9c69e29d48db96ce679d566ab0 echo x - pecl-inotify/distinfo sed 's/^X//' >pecl-inotify/distinfo << '626c82b48618967770117e655757688f' XSHA256 (PECL/inotify-0.1.6.tgz) = 979f80a25d4eb0de282617ffc0df46f07346a8383f310b9b943e48992e5b494e XSIZE (PECL/inotify-0.1.6.tgz) = 8568 626c82b48618967770117e655757688f echo c - pecl-inotify/files mkdir -p pecl-inotify/files > /dev/null 2>&1 echo x - pecl-inotify/files/patch-config.m4 sed 's/^X//' >pecl-inotify/files/patch-config.m4 << '7baf8ab8a812282f20f2517cbfdfa8a7' X--- ./config.m4.orig 2012-05-04 17:51:20.000000000 +0800 X+++ ./config.m4 2012-06-27 12:05:19.620198000 +0800 X@@ -1,22 +1,52 @@ X dnl $Id: config.m4 262896 2008-07-17 19:11:16Z lbarnaud $ X dnl config.m4 for extension inotify X X-PHP_ARG_ENABLE(inotify, whether to enable inotify support, X-[ --enable-inotify Enable inotify support]) X+PHP_ARG_WITH(inotify, whether to enable inotify support, X+[ --with-inotify Enable inotify support]) X X if test "$PHP_INOTIFY" != "no"; then X+ SEARCH_PATH="/usr /usr/local" X+ SEARCH_FOR="/sys/inotify.h" X X- AC_TRY_RUN([ X- #include <sys/inotify.h> X- void testfunc(int (*passedfunc)()) { X- } X- int main() { X- testfunc(inotify_init); X- return 0; X- } X- ],[],[ X- AC_MSG_ERROR(Your system does not support inotify) X+ if test "$PHP_INOTIFY" = "yes"; then X+ AC_MSG_CHECKING([for libinotify headers in default path]) X+ for i in $SEARCH_PATH ; do X+ if test -r $i/include/$SEARCH_FOR; then X+ LIBINOTIFY_DIR=$i X+ AC_MSG_RESULT(found in $i) X+ fi X+ done X+ else X+ AC_MSG_CHECKING([for libinotify headers in $PHP_INOTIFY]) X+ if test -r $PHP_INOTIFY/$SEARCH_FOR; then X+ LIBINOTIFY_DIR=$PHP_INOTIFY X+ AC_MSG_RESULT([found]) X+ fi X+ fi X+ X+ if test -z "$LIBINOTIFY_DIR"; then X+ AC_MSG_RESULT([not found]) X+ AC_MSG_ERROR([Cannot find libevent headers]) X+ fi X+ X+ PHP_ADD_INCLUDE($LIBINOTIFY_DIR/include) X+ X+ LIBNAME=inotify X+ LIBSYMBOL=inotify_init X+ X+ if test "x$PHP_LIBDIR" = "x"; then X+ PHP_LIBDIR=lib X+ fi X+ X+ PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, X+ [ X+ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $LIBINOTIFY_DIR/$PHP_LIBDIR, LIBINOTIFY_SHARED_LIBADD) X+ ],[ X+ AC_MSG_ERROR([Your system does not support inotify]) X+ ],[ X+ -L$LIBINOTIFY_DIR/$PHP_LIBDIR X ]) X X+ PHP_SUBST(LIBINOTIFY_SHARED_LIBADD) X PHP_NEW_EXTENSION(inotify, inotify.c, $ext_shared) X fi 7baf8ab8a812282f20f2517cbfdfa8a7 exit --- .shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120628045552.A3433747040>