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.
This commit is contained in:
parent
1616d90abe
commit
677672d009
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372163
5 changed files with 57 additions and 0 deletions
|
@ -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
|
||||
|
|
29
databases/pecl-yac/Makefile
Normal file
29
databases/pecl-yac/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Created by: John Chen <johnpupu@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@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>
|
2
databases/pecl-yac/distinfo
Normal file
2
databases/pecl-yac/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (PECL/yac-0.9.2.tgz) = f57d7dc18520f2114194fa44eb8e77b4cc8142bf0bd1314b9445dd99bc53dd99
|
||||
SIZE (PECL/yac-0.9.2.tgz) = 34822
|
16
databases/pecl-yac/files/pkg-message.in
Normal file
16
databases/pecl-yac/files/pkg-message.in
Normal file
|
@ -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.
|
||||
************************************************************************
|
9
databases/pecl-yac/pkg-descr
Normal file
9
databases/pecl-yac/pkg-descr
Normal file
|
@ -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
|
Loading…
Reference in a new issue