summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-01-29 22:02:24 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-01-29 22:02:24 +0000
commit456a27dced3ed7a054dc17fe8f870c6dff88059e (patch)
tree09c792aa2b2382701e657d626c998886a31cf8d7 /dev-php5/xcache
parentFix numerous cock-ups. Thanks to Ed Catmur <ed@catmur.co.uk> in bug #164072. (diff)
downloadgentoo-2-456a27dced3ed7a054dc17fe8f870c6dff88059e.tar.gz
gentoo-2-456a27dced3ed7a054dc17fe8f870c6dff88059e.tar.bz2
gentoo-2-456a27dced3ed7a054dc17fe8f870c6dff88059e.zip
Import from dev overlay for proxy maintaining
(Portage version: 2.1.2-r1)
Diffstat (limited to 'dev-php5/xcache')
-rw-r--r--dev-php5/xcache/ChangeLog14
-rw-r--r--dev-php5/xcache/Manifest20
-rw-r--r--dev-php5/xcache/files/digest-xcache-1.2.03
-rw-r--r--dev-php5/xcache/files/xcache-hardening-0.4.11.patch23
-rw-r--r--dev-php5/xcache/metadata.xml7
-rw-r--r--dev-php5/xcache/xcache-1.2.0.ebuild89
6 files changed, 156 insertions, 0 deletions
diff --git a/dev-php5/xcache/ChangeLog b/dev-php5/xcache/ChangeLog
new file mode 100644
index 000000000000..79a2d0bcf66e
--- /dev/null
+++ b/dev-php5/xcache/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for dev-php5/xcache
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/xcache/ChangeLog,v 1.1 2007/01/29 22:02:24 jokey Exp $
+
+*xcache-1.2.0 (29 Jan 2007)
+
+ 29 Jan 2007; Markus Ullmann <jokey@gentoo.org>
+ +files/xcache-hardening-0.4.11.patch, +metadata.xml, +xcache-1.2.0.ebuild:
+ Import from dev overlay for proxy maintaining
+
+ 24 Jan 2007; Christian Hoffmann <christian@hoffie.info>
+ +files/xcache-hardening-0.4.11.patch, +xcache-1.2.0.ebuild:
+ Initial ebuild for xcache
+
diff --git a/dev-php5/xcache/Manifest b/dev-php5/xcache/Manifest
new file mode 100644
index 000000000000..c5cc16520a9d
--- /dev/null
+++ b/dev-php5/xcache/Manifest
@@ -0,0 +1,20 @@
+AUX xcache-hardening-0.4.11.patch 630 RMD160 10ce023f62a2a71b9df9d4e71cba283c71174ac4 SHA1 b953a6eecd4314d798dcf9d59cb3da3447c7b31d SHA256 0f2d1f38b13b7941a65c98bc1736c03cf90a0cc8d196811f39deb6d0b5bd0dcc
+MD5 64eca4c1550fa6d16280c7ea3a4ebb2d files/xcache-hardening-0.4.11.patch 630
+RMD160 10ce023f62a2a71b9df9d4e71cba283c71174ac4 files/xcache-hardening-0.4.11.patch 630
+SHA256 0f2d1f38b13b7941a65c98bc1736c03cf90a0cc8d196811f39deb6d0b5bd0dcc files/xcache-hardening-0.4.11.patch 630
+DIST xcache-1.2.0.tar.bz2 79153 RMD160 1d77af20e117e7bebc939448500e7c7703028178 SHA1 f7f2f4082c41545909793d8e86918e2845cf82f2 SHA256 808d3a99ad584a52590504d26f272cd7235da3acb66bc67ed4e8387d1ab4ff02
+EBUILD xcache-1.2.0.ebuild 2516 RMD160 ddf1a538348ce2065cf32cd3b714b4d75c8da412 SHA1 2fa08bd7312f3102d75d4cd89501592fb737bf60 SHA256 e8c59ad8a81d08b950f87373f9af90646b65c50ae48f52a89c2ddca5af500752
+MD5 738b8dc179e6d8ad71ae02ebea9ae9c5 xcache-1.2.0.ebuild 2516
+RMD160 ddf1a538348ce2065cf32cd3b714b4d75c8da412 xcache-1.2.0.ebuild 2516
+SHA256 e8c59ad8a81d08b950f87373f9af90646b65c50ae48f52a89c2ddca5af500752 xcache-1.2.0.ebuild 2516
+MISC ChangeLog 469 RMD160 1d900c5979fc1cb54dac76b4e70bdf557730a4e5 SHA1 562c8efbf0b3649dd39484e90b5a1416084ecfdb SHA256 933e339686af4be4091c8f66ef75cf3e58a8fcf8395b9626105caf5790fc22fc
+MD5 2258c468c2c9f29b4ef48258c20a0f66 ChangeLog 469
+RMD160 1d900c5979fc1cb54dac76b4e70bdf557730a4e5 ChangeLog 469
+SHA256 933e339686af4be4091c8f66ef75cf3e58a8fcf8395b9626105caf5790fc22fc ChangeLog 469
+MISC metadata.xml 333 RMD160 8eb8bcb02e8ff8f9267ec9362f0fb365e9c82d78 SHA1 ef1b6fd4453ec76f217bcd07410ff655c77fab4e SHA256 7f2cefebabc6ecf714ffaf3d69657c9d452bc9df152473da35a9a730631f254a
+MD5 2d9869109c39503b683ca8e9b2cb08b8 metadata.xml 333
+RMD160 8eb8bcb02e8ff8f9267ec9362f0fb365e9c82d78 metadata.xml 333
+SHA256 7f2cefebabc6ecf714ffaf3d69657c9d452bc9df152473da35a9a730631f254a metadata.xml 333
+MD5 6a5890ac030be8fadd4c8942daf29bb1 files/digest-xcache-1.2.0 238
+RMD160 da5d7354390c4b03b798ab49254b01b6146a9304 files/digest-xcache-1.2.0 238
+SHA256 d4dc06e38dd654a82ad831acfce3e440d828eb2164e57c50eca9fd2f946b8645 files/digest-xcache-1.2.0 238
diff --git a/dev-php5/xcache/files/digest-xcache-1.2.0 b/dev-php5/xcache/files/digest-xcache-1.2.0
new file mode 100644
index 000000000000..247ce82fa03c
--- /dev/null
+++ b/dev-php5/xcache/files/digest-xcache-1.2.0
@@ -0,0 +1,3 @@
+MD5 ffeaa9547037e098d9b041eb9741b51e xcache-1.2.0.tar.bz2 79153
+RMD160 1d77af20e117e7bebc939448500e7c7703028178 xcache-1.2.0.tar.bz2 79153
+SHA256 808d3a99ad584a52590504d26f272cd7235da3acb66bc67ed4e8387d1ab4ff02 xcache-1.2.0.tar.bz2 79153
diff --git a/dev-php5/xcache/files/xcache-hardening-0.4.11.patch b/dev-php5/xcache/files/xcache-hardening-0.4.11.patch
new file mode 100644
index 000000000000..ad85122b83f6
--- /dev/null
+++ b/dev-php5/xcache/files/xcache-hardening-0.4.11.patch
@@ -0,0 +1,23 @@
+diff -Nur xcache/processor/processor.m4 xcache-hardened/processor/processor.m4
+--- xcache/processor/processor.m4 2006-07-10 19:19:26.000000000 +0200
++++ xcache-hardened/processor/processor.m4 2006-07-10 19:03:00.000000000 +0200
+@@ -70,6 +70,9 @@
+ ZVAL_REFCOUNT(dst) = 1;
+ DONE(value)
+ DONE(refcount)
++#ifdef HARDENING_PATCH
++ DISPATCH(zend_ushort, flags);
++#endif
+ DONE(type)
+ DONE(is_ref)
+ } while(0);
+@@ -136,6 +139,9 @@
+ DISPATCH(zval_data_type, type)
+ DISPATCH(zend_uchar, is_ref)
+ DISPATCH(zend_ushort, refcount)
++#ifdef HARDENING_PATCH
++ DISPATCH(zend_ushort, flags);
++#endif
+ ')dnl IFDASM
+ ')
+ dnl }}}
diff --git a/dev-php5/xcache/metadata.xml b/dev-php5/xcache/metadata.xml
new file mode 100644
index 000000000000..5aa7aba33081
--- /dev/null
+++ b/dev-php5/xcache/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>php</herd>
+<maintainer><email>jokey@gentoo.org</email><name>Markus Ullmann</name></maintainer>
+<maintainer><email>christian@hoffie.info</email><name>Christian Hoffmann</name></maintainer>
+</pkgmetadata>
diff --git a/dev-php5/xcache/xcache-1.2.0.ebuild b/dev-php5/xcache/xcache-1.2.0.ebuild
new file mode 100644
index 000000000000..3281dd52957d
--- /dev/null
+++ b/dev-php5/xcache/xcache-1.2.0.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/xcache/xcache-1.2.0.ebuild,v 1.1 2007/01/29 22:02:24 jokey Exp $
+
+PHP_EXT_NAME="xcache"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="yes"
+
+inherit php-ext-source-r1 confutils
+
+DESCRIPTION="Another PHP opcode cache and encoder"
+HOMEPAGE="http://trac.lighttpd.net/xcache/"
+SRC_URI="http://210.51.190.228/pub/XCache/Releases/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="${DEPEND}
+ !dev-php5/pecl-apc
+ !dev-php5/eaccelerator"
+
+S="${WORKDIR}/${PN}"
+
+need_php_by_category
+
+pkg_setup() {
+ has_php
+ require_php_sapi_from cgi apache apache2
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ has_hardenedphp && epatch "${FILESDIR}"/${PN}-hardening-0.4.11.patch
+}
+
+src_compile() {
+ has_php
+
+ my_conf="--enable-xcache=shared \
+ --enable-xcache-constant \
+ --enable-xcache-optimizer \
+ --enable-xcache-coverager \
+ --enable-xcache-assembler \
+ --enable-xcache-encoder \
+ --enable-xcache-decoder"
+
+ enable_extension_with_built_with =${PHP_PKG} apache2 apxs2 /usr/sbin/apxs2 "optimisation for apache2"
+ enable_extension_with_built_with =${PHP_PKG} apache apxs /usr/sbin/apxs "optimisation for apache1"
+
+ php-ext-source-r1_src_compile
+}
+
+src_install() {
+ php-ext-source-r1_src_install
+ dodoc-php AUTHORS CHANGELOG INSTALL COPYING
+
+ php-ext-base-r1_addtoinifiles "auto_globals_jit" '"0"'
+ php-ext-base-r1_addtoinifiles "xcache.cacher" '"1"'
+ php-ext-base-r1_addtoinifiles "xcache.size" '"10M"'
+ php-ext-base-r1_addtoinifiles "xcache.count" '"2"'
+ php-ext-base-r1_addtoinifiles "xcache.slots" '"8k"'
+ php-ext-base-r1_addtoinifiles "xcache.var_size" '"0"'
+ php-ext-base-r1_addtoinifiles "xcache.var_count" '"1"'
+ php-ext-base-r1_addtoinifiles "xcache.readonly_protection" '"0"'
+ php-ext-base-r1_addtoinifiles "xcache.mmap_path" '"/dev/zero"'
+ php-ext-base-r1_addtoinifiles "xcache.stat" '"1"'
+ php-ext-base-r1_addtoinifiles "xcache.optimizer" '"0"'
+ php-ext-base-r1_addtoinifiles "xcache.coverager" '"0"'
+ php-ext-base-r1_addtoinifiles "xcache.coveragedump_directory" '""'
+
+ dodir "${PHP_EXT_SHARED_DIR}"
+ insinto "${PHP_EXT_SHARED_DIR}"
+ doins Decompiler.class.php
+ insinto "${PHP_EXT_SHARED_DIR}/admin"
+ doins admin/*
+}
+
+pkg_postinst() {
+ einfo "Decompiler.class.php and the admin/ directory shipped with this"
+ einfo "release were installed into /usr/share/php5/xcache/."
+
+ if built_with_use =${PHP_PKG} apache || built_with_use =${PHP_PKG} apache2 ; then
+ echo
+ einfo "You need to restart your Apache webserver to activate xcache."
+ fi
+}