Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
eAccelerator is a free open source PHP accelerator, optimizer,
encoder and dynamic content cache for PHP. It increases performance
of PHP scripts by caching them in compiled state, so that the
overhead of compiling is almost completely eliminated. Also it
uses some optimizations to speed up execution of PHP scripts.
eAccelerator typically reduces server load and increases the
speed of your PHP code by 1-10 times.
eAccelerator is a fork of TurckMMCache
( http://sourceforge.net/project/turckmm-cache/ by Dmitry Stogov )
eAccelerator stores compiled PHP scripts in shared memory and
executes code directly from it. It creates locks only for
short time, while searching compiled PHP script in the cache,
so one script can be executed simultaneously by several engines.
Files that can't fit in shared memory are cached on disk only.

View File

@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.20 2012/12/05 15:28:30 taca Exp $
MODNAME= eaccelerator
PKGREVISION= 1
PECL_VERSION= 0.9.6.1
PECL_LEGACY_VERSION_SCHEME= yes
CATEGORIES+= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=eaccelerator/} \
http://bart.eaccelerator.net/source/${PECL_VERSION}/
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= https://github.com/eaccelerator/eaccelerator
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= PHP accelerator, optimizer, encoder and dynamic content cache
LICENSE= gnu-gpl-v2
PHP_VERSIONS_ACCEPTED= 53
CONFLICTS= php-eaccelator-[0-9]*
CONFIGURE_ARGS+= --enable-${MODNAME}
.include "options.mk"
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.8 2011/08/20 14:19:35 taca Exp $
SHA1 (php-eaccelerator/eaccelerator-0.9.6.1.tar.bz2) = c95e87229a6e674b4994d4fc13278e516ea314f9
RMD160 (php-eaccelerator/eaccelerator-0.9.6.1.tar.bz2) = 6a16ab377ec124a27e26a5fdc1fd6ada845695bd
Size (php-eaccelerator/eaccelerator-0.9.6.1.tar.bz2) = 106049 bytes
SHA1 (patch-aa) = e5b5a02444fc9370840781beea9f7bd0400ed090
SHA1 (patch-ab) = d70524b10a7d99ff61288485cf4030838cdac735

View File

@@ -0,0 +1,16 @@
# $NetBSD: options.mk,v 1.1 2012/12/05 15:28:30 taca Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.eaccelerator
PKG_SUPPORTED_OPTIONS= eaccelerator-disassembler
PKG_SUPPORTED_OPTIONS+= eaccelerator-doc-comment-inclusion
PKG_SUGGESTED_OPTIONS= eaccelerator-doc-comment-inclusion
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Meaccelerator-disassembler)
CONFIGURE_ARGS+= --with-eaccelerator-disassembler
.endif
.if !empty(PKG_OPTIONS:Meaccelerator-doc-comment-inclusion)
CONFIGURE_ARGS+= --with-eaccelerator-doc-comment-inclusion
.endif

View File

@@ -0,0 +1,42 @@
$NetBSD: patch-aa,v 1.1 2010/10/02 19:11:35 jdolecek Exp $
--- config.m4.orig 2010-02-28 20:06:38.000000000 +0100
+++ config.m4
@@ -92,13 +92,6 @@ AC_ARG_WITH(eaccelerator-debug,
eaccelerator_debug=no
])
-AC_ARG_WITH(eaccelerator-userid,
-[ --with-eaccelerator-userid eAccelerator runs under this userid, only needed when using sysvipc semaphores.],[
- ea_userid=$withval
-],[
- ea_userid=0
-])
-
AC_ARG_WITH(eaccelerator-doc-comment-inclusion,
[ --with-eaccelerator-doc-comment-inclusion If you want eAccelerator to retain doc-comments in internal php structures.],[
enable_doc_comment_inclusion=$withval
@@ -113,8 +106,6 @@ if test "$PHP_EACCELERATOR" != "no"; the
AC_DEFINE(WITH_EACCELERATOR_INFO, 1, [Define to be able to get information about eAccelerator])
- AC_DEFINE_UNQUOTED(EA_USERID, $ea_userid, [The userid eAccelerator will be running under.])
-
if test "$enable_doc_comment_inclusion" = "yes"; then
AC_DEFINE(INCLUDE_DOC_COMMENTS, 1, [If you want eAccelerator to retain doc-comments in internal php structures (meta-programming)])
fi
@@ -322,12 +313,8 @@ if test "$PHP_EACCELERATOR" != "no"; the
AC_DEFINE(MM_SEM_SPINLOCK, 1, [Define if you like to use spinlock based semaphores])
msg="spinlock"
elif test "$mm_sem_ipc" = "yes"; then
- if test $ea_userid = 0; then
- AC_MSG_ERROR("You need to pass the user id eaccelerator will be running under when using sysvipc semaphores")
- else
- AC_DEFINE(MM_SEM_IPC, 1, [Define if you like to use sysvipc based semaphores])
- msg="sysvipc"
- fi
+ AC_DEFINE(MM_SEM_IPC, 1, [Define if you like to use sysvipc based semaphores])
+ msg="sysvipc"
elif test "$mm_sem_fcntl" = "yes"; then
AC_DEFINE(MM_SEM_FCNTL, 1, [Define if you like to use fcntl based semaphores])
msg="fcntl"

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2010/10/02 19:11:35 jdolecek Exp $
--- mm.c.orig 2010-02-28 20:08:30.000000000 +0100
+++ mm.c
@@ -338,7 +338,7 @@ static int mm_init_lock(const char* key,
rc = semctl(lock->semid, 0, IPC_STAT, arg);
} while (rc < 0 && errno == EINTR);
- buf.sem_perm.uid = EA_USERID;
+ buf.sem_perm.uid = getuid();
do {
rc = semctl(lock->semid, 0, IPC_SET, arg);