diff options
author | Stuart Herbert <stuart@gentoo.org> | 2005-09-04 14:46:29 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2005-09-04 14:46:29 +0000 |
commit | 7dbb49394e61864b4c5923c45d3b0c8dd76529ae (patch) | |
tree | e594008c9e62fc23effd2b8be3136fefb6fab0bb /dev-php4/eaccelerator | |
parent | Added inode for dev-php4/eaccelerator (diff) | |
download | gentoo-2-7dbb49394e61864b4c5923c45d3b0c8dd76529ae.tar.gz gentoo-2-7dbb49394e61864b4c5923c45d3b0c8dd76529ae.tar.bz2 gentoo-2-7dbb49394e61864b4c5923c45d3b0c8dd76529ae.zip |
Initial import for PHP4
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'dev-php4/eaccelerator')
-rw-r--r-- | dev-php4/eaccelerator/ChangeLog | 7 | ||||
-rw-r--r-- | dev-php4/eaccelerator/Manifest | 5 | ||||
-rw-r--r-- | dev-php4/eaccelerator/eaccelerator-0.9.3.ebuild | 108 | ||||
-rw-r--r-- | dev-php4/eaccelerator/files/digest-eaccelerator-0.9.3 | 1 | ||||
-rw-r--r-- | dev-php4/eaccelerator/files/eaccelerator-0.9.3-hash-fix.patch | 24 | ||||
-rw-r--r-- | dev-php4/eaccelerator/metadata.xml | 5 |
6 files changed, 150 insertions, 0 deletions
diff --git a/dev-php4/eaccelerator/ChangeLog b/dev-php4/eaccelerator/ChangeLog new file mode 100644 index 000000000000..16fc3c5c03d7 --- /dev/null +++ b/dev-php4/eaccelerator/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for dev-php4/eaccelerator +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php4/eaccelerator/ChangeLog,v 1.1 2005/09/04 14:46:29 stuart Exp $ + + 18 Aug 2005; <stuart@gentoo.org> ChangeLog: + Initial version; replaces older dev-php/* packages + diff --git a/dev-php4/eaccelerator/Manifest b/dev-php4/eaccelerator/Manifest new file mode 100644 index 000000000000..18a06f96abcc --- /dev/null +++ b/dev-php4/eaccelerator/Manifest @@ -0,0 +1,5 @@ +MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157 +MD5 d174cde2de2c469e13fbd0d4221de512 ChangeLog 222 +MD5 717dec948f9cb714762403b478764052 eaccelerator-0.9.3.ebuild 3541 +MD5 65491db56ada2c1237a6c790210c3592 files/eaccelerator-0.9.3-hash-fix.patch 776 +MD5 543f0982cc0ffa866a7b03985dc77edb files/digest-eaccelerator-0.9.3 70 diff --git a/dev-php4/eaccelerator/eaccelerator-0.9.3.ebuild b/dev-php4/eaccelerator/eaccelerator-0.9.3.ebuild new file mode 100644 index 000000000000..df8cbf467754 --- /dev/null +++ b/dev-php4/eaccelerator/eaccelerator-0.9.3.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php4/eaccelerator/eaccelerator-0.9.3.ebuild,v 1.1 2005/09/04 14:46:29 stuart Exp $ + +PHP_EXT_ZENDEXT="yes" +PHP_EXT_NAME="eaccelerator" +PHP_EXT_INI="yes" + +[ -z "${EACCELERATOR_CACHEDIR}" ] && EACCELERATOR_CACHEDIR=/var/cache/eaccelerator + +inherit php-ext-source-r1 + +DESCRIPTION="A PHP Accelerator & Encoder." +HOMEPAGE="http://www.eaccelerator.net/" +SRC_URI="mirror://sourceforge/eaccelerator/${P}.tar.gz" +IUSE="inode session" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" + +DEPEND="${DEPEND} + !dev-php4/pecl-apc" + +# this is a good example of why we need all web servers installed under a +# common 'www' user and group! +HTTPD_USER=apache +HTTPD_GROUP=apache + +need_php_by_category + +pkg_setup() { + require_php_sapi_from cgi apache apache2 +} + +src_unpack() { + unpack ${A} + + cd ${S} + + # Patch to support Hardened-PHP from the Hardened-PHP Team + epatch ${FILESDIR}/eaccelerator-0.9.3-hash-fix.patch +} + +src_compile() { + has_php + + my_conf="--enable-eaccelerator=shared" + + if use !session; then + my_conf="${my_conf} --without-eaccelerator-sessions" + fi + + if use !inode; then + my_conf="${my_conf} --without-eaccelerator-use-inode" + fi + + php-ext-source-r1_src_compile +} + +src_install() { + php-ext-source-r1_src_install + + keepdir ${EACCELERATOR_CACHEDIR} + fowners ${HTTPD_USER}:${HTTPD_GROUP} "${EACCELERATOR_CACHEDIR}" + fperms 750 "${EACCELERATOR_CACHEDIR}" + + insinto /usr/share/${PN} + doins encoder.php eaccelerator.php eaccelerator_password.php + dodoc AUTHORS ChangeLog COPYING NEWS README README.eLoader + + php-ext-base-r1_addtoinifiles "eaccelerator.shm_size" '"64"' + php-ext-base-r1_addtoinifiles "eaccelerator.cache_dir" "\"${EACCELERATOR_CACHEDIR}\"" + php-ext-base-r1_addtoinifiles "eaccelerator.enable" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.optimizer" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.debug" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.check_mtime" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.filter" '""' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_max" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_ttl" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_prune_period" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_only" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.compress" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.compress_level" '"9"' + php-ext-base-r1_addtoinifiles "eaccelerator.keys" '"shm_and_disk"' + php-ext-base-r1_addtoinifiles "eaccelerator.sessions" '"shm_and_disk"' + php-ext-base-r1_addtoinifiles "eaccelerator.content" '"shm_and_disk"' + php-ext-base-r1_addtoinifiles ";eaccelerator.admin.name" '"username"' + php-ext-base-r1_addtoinifiles ";eaccelerator.admin.password" '"hashed_password"' +} + +pkg_postinst() { + # you only need to restart the webserver if you're using mod_php + if built_with_use ${PHP_PKG} apache || built_with_use ${PHP_PKG} apache2 ; then + einfo "You need to restart your webserver to activate eAccelerator." + einfo + fi + + # this web interface needs moving into a separate, webapp-config compatible + # package!! + einfo "A web interface is available to manage the eAccelerator cache." + einfo "Copy /usr/share/eaccelerator/*.php to somewhere" + einfo "where your web server can see it. See the documentation on how" + einfo "to secure this web interface with authentication." + einfo + einfo "A PHP script encoder is available to encode your PHP scripts." + einfo "The encoder is available as /usr/share/eaccelerator/encoder.php" + einfo "The encoded file format is not yet considered stable." +} diff --git a/dev-php4/eaccelerator/files/digest-eaccelerator-0.9.3 b/dev-php4/eaccelerator/files/digest-eaccelerator-0.9.3 new file mode 100644 index 000000000000..d64d0dc69aef --- /dev/null +++ b/dev-php4/eaccelerator/files/digest-eaccelerator-0.9.3 @@ -0,0 +1 @@ +MD5 b17ddf953f18ee6df5c2c24ffccb37d9 eaccelerator-0.9.3.tar.gz 133120 diff --git a/dev-php4/eaccelerator/files/eaccelerator-0.9.3-hash-fix.patch b/dev-php4/eaccelerator/files/eaccelerator-0.9.3-hash-fix.patch new file mode 100644 index 000000000000..13a1e13e6b12 --- /dev/null +++ b/dev-php4/eaccelerator/files/eaccelerator-0.9.3-hash-fix.patch @@ -0,0 +1,24 @@ +diff -Nur eaccelerator-0.9.3.orig/eaccelerator.c eaccelerator-0.9.3/eaccelerator.c +--- eaccelerator-0.9.3.orig/eaccelerator.c 2005-05-11 10:19:10.000000000 +0200 ++++ eaccelerator-0.9.3/eaccelerator.c 2005-08-01 15:00:29.243230160 +0200 +@@ -120,6 +120,10 @@ + static dtor_func_t properties_info_dtor = NULL; + #endif + ++#if HARDENING_PATCH_HASH_PROTECT ++extern unsigned int zend_hash_canary; ++#endif ++ + /* saved original functions */ + static zend_op_array *(*mm_saved_zend_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC); + +@@ -1930,6 +1934,9 @@ + target->persistent = 0; + target->pListHead = NULL; + target->pListTail = NULL; ++#if HARDENING_PATCH_HASH_PROTECT ++ target->canary = zend_hash_canary; ++#endif + + p = source->pListHead; + prev_p = NULL; diff --git a/dev-php4/eaccelerator/metadata.xml b/dev-php4/eaccelerator/metadata.xml new file mode 100644 index 000000000000..fd3dbe39fa64 --- /dev/null +++ b/dev-php4/eaccelerator/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>php</herd> +</pkgmetadata> |