diff options
author | Alex Dupre <ale@FreeBSD.org> | 2012-08-08 15:24:14 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2012-08-08 15:24:14 +0000 |
commit | 2a73c09e29c28745fafee9d320e3ffac64e26ac9 (patch) | |
tree | 3ee4005328605ed40f738aff12cbffd3ae536967 /www/xcache | |
parent | 86847b8f1bfe2596fa31f880f39688643a216f9f (diff) | |
download | ports-2a73c09e29c28745fafee9d320e3ffac64e26ac9.tar.gz ports-2a73c09e29c28745fafee9d320e3ffac64e26ac9.zip |
Notes
Diffstat (limited to 'www/xcache')
-rw-r--r-- | www/xcache/Makefile | 23 | ||||
-rw-r--r-- | www/xcache/distinfo | 4 | ||||
-rw-r--r-- | www/xcache/files/patch-xcache.c | 48 | ||||
-rw-r--r-- | www/xcache/files/patch-xcache.ini | 31 | ||||
-rw-r--r-- | www/xcache/pkg-plist | 3 |
5 files changed, 32 insertions, 77 deletions
diff --git a/www/xcache/Makefile b/www/xcache/Makefile index 282944d52704..c266529f6727 100644 --- a/www/xcache/Makefile +++ b/www/xcache/Makefile @@ -6,29 +6,32 @@ # PORTNAME= xcache -DISTVERSION= 2.0.0 -PORTREVISION= 1 +DISTVERSION= 2.0.1 CATEGORIES= www MASTER_SITES= http://xcache.lighttpd.net/pub/Releases/${DISTVERSION}/ MAINTAINER= ale@FreeBSD.org COMMENT= A fast and stable php opcode cacher +LICENSE= BSD +LICENSE_FILE= ${WRKSRC}/COPYING + USE_BZIP2= yes USE_PHP= yes USE_PHPIZE= yes CONFIGURE_ARGS= --enable-xcache=shared -OPTIONS= CONSTANT "Enable handling of compile time constants" off \ - COVERAGER "Enable code coverage dumper" off +OPTIONS_DEFINE= CONSTANT COVERAGER +CONSTANT_DESC= Enable handling of compile time constants +COVERAGER_DESC= Enable code coverage dumper SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message ADMINFILES= common-en.lang.php common-zh-simplified-utf-8.lang.php \ - common-zh-traditional-utf-8.lang.php common.php config.php.example \ - edit.php edit.tpl.php footer.tpl.php header.tpl.php \ + common-zh-traditional-utf-8.lang.php common.php config.default.php \ + config.example.php edit.php edit.tpl.php footer.tpl.php header.tpl.php \ help-en.lang.php help-zh-simplified-utf-8.lang.php \ help-zh-traditional-utf-8.lang.php help.php index.php \ mkpassword.php tablesort.js xcache.css xcache.php xcache.tpl.php @@ -37,13 +40,13 @@ COVERAGERFILES= common-en.lang.php common-zh-simplified-gb2312.lang.php \ common-zh-simplified-utf-8.lang.php common.php config.php.example \ coverager.css coverager.php coverager.tpl.php index.php -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_CONSTANT) +.if ${PORT_OPTIONS:MCONSTANT} CONFIGURE_ARGS+=--enable-xcache-constant .endif -.if defined(WITH_COVERAGER) +.if ${PORT_OPTIONS:MCOVERAGER} CONFIGURE_ARGS+=--enable-xcache-coverager PLIST_SUB+= COVERAGER="" .else @@ -75,4 +78,4 @@ post-install: .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/www/xcache/distinfo b/www/xcache/distinfo index b14310836f0e..c3479d941aaa 100644 --- a/www/xcache/distinfo +++ b/www/xcache/distinfo @@ -1,2 +1,2 @@ -SHA256 (xcache-2.0.0.tar.bz2) = ca26b0772d8b88223f281f5099a3b7d9f4b6597a87ae857301271c1fd5a3f64a -SIZE (xcache-2.0.0.tar.bz2) = 108614 +SHA256 (xcache-2.0.1.tar.bz2) = b6e350f3b327b11e033da44f8b5f464b173e2256b5acc792a1179d29cb499289 +SIZE (xcache-2.0.1.tar.bz2) = 112352 diff --git a/www/xcache/files/patch-xcache.c b/www/xcache/files/patch-xcache.c deleted file mode 100644 index 0f68cb478571..000000000000 --- a/www/xcache/files/patch-xcache.c +++ /dev/null @@ -1,48 +0,0 @@ -Index: xcache.c -=================================================================== ---- xcache.c (revision 899) -+++ xcache.c (revision 900) -@@ -839,7 +839,7 @@ - while (xc_stack_count(s)) { - entry_php = (xc_entry_php_t *) xc_stack_pop(s); - TRACE("unhold %d:%s", entry_php->file_inode, entry_php->entry.name.str.val); -- entry_php->refcount ++; -+ --entry_php->refcount; - assert(entry_php->refcount >= 0); - } - } LEAVE_LOCK(cache); -@@ -1939,11 +1939,16 @@ - - if (stored_php) { - compiler->new_entry.php = stored_php; -- xc_php_addref_unlocked(stored_php); - xc_entry_php_init(&compiler->new_entry, compiler->opened_path TSRMLS_CC); - stored_entry = xc_entry_php_store_unlocked(cache, compiler->entry_hash.entryslotid, &compiler->new_entry TSRMLS_CC); -- TRACE(" cached %d:%s, holding", compiler->new_entry.file_inode, stored_entry->entry.name.str.val); -- xc_entry_hold_php_unlocked(cache, stored_entry TSRMLS_CC); -+ if (stored_entry) { -+ xc_php_addref_unlocked(stored_php); -+ TRACE(" cached %d:%s, holding", compiler->new_entry.file_inode, stored_entry->entry.name.str.val); -+ xc_entry_hold_php_unlocked(cache, stored_entry TSRMLS_CC); -+ } -+ else { -+ gaveup = 1; -+ } - break; - } - -@@ -2021,10 +2026,11 @@ - } - /* entry_store */ - compiler->new_entry.php = stored_php; -- xc_php_addref_unlocked(stored_php); - stored_entry = xc_entry_php_store_unlocked(cache, compiler->entry_hash.entryslotid, &compiler->new_entry TSRMLS_CC); -- if (!stored_entry) { -- xc_php_release_unlocked(cache, stored_php); -+ if (stored_entry) { -+ xc_php_addref_unlocked(stored_php); -+ TRACE(" cached %d:%s, holding", compiler->new_entry.file_inode, stored_entry->entry.name.str.val); -+ xc_entry_hold_php_unlocked(cache, stored_entry TSRMLS_CC); - } - } LEAVE_LOCK_EX(cache); - /* }}} */ diff --git a/www/xcache/files/patch-xcache.ini b/www/xcache/files/patch-xcache.ini index 4e38fc4a6380..e727ad3fb912 100644 --- a/www/xcache/files/patch-xcache.ini +++ b/www/xcache/files/patch-xcache.ini @@ -1,25 +1,24 @@ ---- xcache.ini.orig 2012-04-12 12:05:56.000000000 +0200 -+++ xcache.ini 2012-04-12 12:07:57.000000000 +0200 -@@ -1,17 +1,13 @@ - [xcache-common] --;; install as zend extension (recommended), normally "$extension_dir/xcache.so" +--- xcache.ini.orig 2012-08-08 16:59:55.000000000 +0200 ++++ xcache.ini 2012-08-08 17:03:46.000000000 +0200 +@@ -3,17 +3,13 @@ + ;; WARNING: zend_extension* = *xcache* MUST be the first(above) of all zend_extension*=* + ;; using extension=xcache.so is not recommended + +-;; non-windows example +-;; update xxx accordingly -zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so --; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so --;; For windows users, replace xcache.so with php_xcache.dll +-;; windows example: -zend_extension_ts = c:/php/extensions/php_xcache.dll --;; or install as extension, make sure your extension_dir setting is correct -+;; install as zend extension (recommended) +-;; for newer PHP, _ts is removed, use the following line instead +-zend_extension = c:/php/extensions/php_xcache.dll +zend_extension = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so -+zend_extension_ts = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so -+;; or install as extension - ; extension = xcache.so --;; or win32: --; extension = php_xcache.dll ++;; for older and thread-safe PHP, _ts is needed ++; zend_extension_ts = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so [xcache.admin] xcache.admin.enable_auth = On -xcache.admin.user = "mOo" +xcache.admin.user = "admin" - ; xcache.admin.pass = md5($your_password) + ; set xcache.admin.pass = md5($your_password) + ; login use $your_password xcache.admin.pass = "" - diff --git a/www/xcache/pkg-plist b/www/xcache/pkg-plist index 235f15a0877e..90ba29e92362 100644 --- a/www/xcache/pkg-plist +++ b/www/xcache/pkg-plist @@ -4,7 +4,8 @@ lib/php/%%PHP_EXT_DIR%%/xcache.so %%EXAMPLESDIR%%/admin/common-zh-simplified-utf-8.lang.php %%EXAMPLESDIR%%/admin/common-zh-traditional-utf-8.lang.php %%EXAMPLESDIR%%/admin/common.php -%%EXAMPLESDIR%%/admin/config.php.example +%%EXAMPLESDIR%%/admin/config.default.php +%%EXAMPLESDIR%%/admin/config.example.php %%EXAMPLESDIR%%/admin/edit.php %%EXAMPLESDIR%%/admin/edit.tpl.php %%EXAMPLESDIR%%/admin/footer.tpl.php |