svn commit: r372163 - in head/databases: . pecl-yac pecl-yac/files
John Marino
marino at FreeBSD.org
Tue Nov 4 19:09:49 UTC 2014
Author: marino
Date: Tue Nov 4 19:09:48 2014
New Revision: 372163
URL: https://svnweb.freebsd.org/changeset/ports/372163
QAT: https://qat.redports.org/buildarchive/r372163/
Log:
Add new port databases/pecl-yac
PR: 194553
Submitted by: John Pupu
Yac is a shared memory user data cache for PHP. It can be used instead of
APC or local memcached.
Yac is lockless, which it is very fast, but there could be a chance the
wrong data will be retrieved (it depends on how many key slots are
allocated and how many keys are stored), so a product using Yac should not
be very sensitive to data loss.
Added:
head/databases/pecl-yac/
head/databases/pecl-yac/Makefile (contents, props changed)
head/databases/pecl-yac/distinfo (contents, props changed)
head/databases/pecl-yac/files/
head/databases/pecl-yac/files/pkg-message.in (contents, props changed)
head/databases/pecl-yac/pkg-descr (contents, props changed)
Modified:
head/databases/Makefile
Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile Tue Nov 4 18:41:15 2014 (r372162)
+++ head/databases/Makefile Tue Nov 4 19:09:48 2014 (r372163)
@@ -522,6 +522,7 @@
SUBDIR += pecl-pdo_user
SUBDIR += pecl-rrd
SUBDIR += pecl-tokyo_tyrant
+ SUBDIR += pecl-yac
SUBDIR += percona-toolkit
SUBDIR += percona55-client
SUBDIR += percona55-server
Added: head/databases/pecl-yac/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/pecl-yac/Makefile Tue Nov 4 19:09:48 2014 (r372163)
@@ -0,0 +1,29 @@
+# Created by: John Chen <johnpupu at gmail.com>
+# $FreeBSD$
+
+PORTNAME= yac
+PORTVERSION= 0.9.2
+CATEGORIES= databases
+MASTER_SITES= http://pecl.php.net/get/
+PKGNAMEPREFIX= pecl-
+DIST_SUBDIR= PECL
+
+MAINTAINER= johnpupu at gmail.com
+COMMENT= Shared and lockless memory user data cache for PHP
+
+LICENSE= PHP301
+
+SUB_FILES= pkg-message
+USE_PHP= yes
+USE_PHPEXT= yes
+USE_PHPIZE= yes
+USE_PHP_BUILD= yes
+USES= tar:tgz
+
+CFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ARGS= --with-php-config=${PREFIX}/bin/php-config
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/yac.so
+
+.include <bsd.port.mk>
Added: head/databases/pecl-yac/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/pecl-yac/distinfo Tue Nov 4 19:09:48 2014 (r372163)
@@ -0,0 +1,2 @@
+SHA256 (PECL/yac-0.9.2.tgz) = f57d7dc18520f2114194fa44eb8e77b4cc8142bf0bd1314b9445dd99bc53dd99
+SIZE (PECL/yac-0.9.2.tgz) = 34822
Added: head/databases/pecl-yac/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/pecl-yac/files/pkg-message.in Tue Nov 4 19:09:48 2014 (r372163)
@@ -0,0 +1,16 @@
+************************************************************************
+You may edit %%LOCALBASE%%/etc/php.ini to change these variables:
+
+yac.enable = 1
+yac.keys_memory_size = 4M ;[1]
+yac.values_memory_size = 64M
+yac.compress_threshold = -1
+yac.enable_cli = 0 ;[2]
+
+;[1] 4M can get 30K key slots, 32M can get 100K key slots
+;[2] whether to enable yac with cli, default is 0
+
+Then restart your web server and consult the output of phpinfo().
+If there is an informational section for yac, the installation was
+successful.
+************************************************************************
Added: head/databases/pecl-yac/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/pecl-yac/pkg-descr Tue Nov 4 19:09:48 2014 (r372163)
@@ -0,0 +1,9 @@
+Yac is a shared memory user data cache for PHP. It can be used instead of
+APC or local memcached.
+
+Yac is lockless, which it is very fast, but there could be a chance the
+wrong data will be retrieved (it depends on how many key slots are
+allocated and how many keys are stored), so a product using Yac should not
+be very sensitive to data loss.
+
+WWW: http://pecl.php.net/package/yac
More information about the svn-ports-head
mailing list