diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-01-29 22:02:24 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-01-29 22:02:24 +0000 |
commit | da9bcefa96efedd09e2928c12f1d44232566f3bf (patch) | |
tree | 901ab8c6e83ad9642de55f4e190d752717490666 /dev-php5/xcache | |
parent | Fix numerous cock-ups. Thanks to Ed Catmur <ed@catmur.co.uk> in bug #164072. (diff) | |
download | historical-da9bcefa96efedd09e2928c12f1d44232566f3bf.tar.gz historical-da9bcefa96efedd09e2928c12f1d44232566f3bf.tar.bz2 historical-da9bcefa96efedd09e2928c12f1d44232566f3bf.zip |
Import from dev overlay for proxy maintaining
Package-Manager: portage-2.1.2-r1
Diffstat (limited to 'dev-php5/xcache')
-rw-r--r-- | dev-php5/xcache/ChangeLog | 14 | ||||
-rw-r--r-- | dev-php5/xcache/Manifest | 30 | ||||
-rw-r--r-- | dev-php5/xcache/files/digest-xcache-1.2.0 | 3 | ||||
-rw-r--r-- | dev-php5/xcache/files/xcache-hardening-0.4.11.patch | 23 | ||||
-rw-r--r-- | dev-php5/xcache/metadata.xml | 7 | ||||
-rw-r--r-- | dev-php5/xcache/xcache-1.2.0.ebuild | 89 |
6 files changed, 166 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..2326bc7ef4f3 --- /dev/null +++ b/dev-php5/xcache/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 2612 RMD160 fddae74bb17e8b24b4a4bcd00db263e68a048196 SHA1 1880de10e4cf156bb4fe0c7d47102fb8277df045 SHA256 acbe8dc834d15f0b0fd0993b7b3272560225cc04cf07ed7f5301707c9658423f +MD5 9fd0a3502771217c519f3f759e940eba xcache-1.2.0.ebuild 2612 +RMD160 fddae74bb17e8b24b4a4bcd00db263e68a048196 xcache-1.2.0.ebuild 2612 +SHA256 acbe8dc834d15f0b0fd0993b7b3272560225cc04cf07ed7f5301707c9658423f xcache-1.2.0.ebuild 2612 +MISC ChangeLog 555 RMD160 caae07bde3522aa78389db4025bbff32e8f57bd5 SHA1 8889202249003ca2d214a2805d6df304f52229e9 SHA256 5370e73dde89c204651ec090a1f5c02a10b4f422f49f5518869d892d8bd823b8 +MD5 43d68ac8057e257eed0f1d55e17f1212 ChangeLog 555 +RMD160 caae07bde3522aa78389db4025bbff32e8f57bd5 ChangeLog 555 +SHA256 5370e73dde89c204651ec090a1f5c02a10b4f422f49f5518869d892d8bd823b8 ChangeLog 555 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.1 (GNU/Linux) + +iD8DBQFFvm7oz974XjDVpbkRAgtzAKDOUGEtprE6nBdDP1Y+ChrRxBbsoQCg2WOm +XuASttJo3La/WLz5OcRnG4s= +=2UNo +-----END PGP SIGNATURE----- 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 +} |