ChangeLog

# ChangeLog for dev-php5/eaccelerator
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.20 2008/06/03 03:12:50 chtekk Exp $

*eaccelerator-0.9.5.3 (03 Jun 2008)

03 Jun 2008; Luca Longinotti
+eaccelerator-0.9.5.3.ebuild:
Version bump.

09 May 2008; Christian Hoffmann
eaccelerator-0.9.5.1.ebuild:
explicitly call phpize, not src_unpack (bug 220519)

07 May 2008; Christian Hoffmann
eaccelerator-0.9.5.1.ebuild:
call php-ext-source-r1_src_unpack, bug 220519

20 Aug 2007; Markus Ullmann
+files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch,
eaccelerator-0.9.5.1.ebuild:
Porting from project overlay

20 Aug 2007; Jakub Moc eaccelerator-0.9.5.1.ebuild:
This ebuild mistakenly assumed that apache user and group exist. Make
HTTPD_{USER,GROUP} configurable and fix pkg_setup accordingly.

20 Aug 2007; Jakub Moc
+files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch,
+metadata.xml, +eaccelerator-0.9.5.1.ebuild:
Add patch for Bug 184439

*eaccelerator-0.9.5.1 (12 May 2007)

12 May 2007; Luca Longinotti
-eaccelerator-0.9.5.ebuild, +eaccelerator-0.9.5.1.ebuild:
Fix bug #170023.
Fix require_php_sapi_from usage wrt apache1.

06 Mar 2007; Luca Longinotti
eaccelerator-0.9.5.ebuild:
Cleanup. Fix bug #156414.

28 Jan 2007; Marius Mauch eaccelerator-0.9.5.ebuild:
Replacing einfo with elog

10 Nov 2006; Gustavo Zacarias
eaccelerator-0.9.5.ebuild:
Keyworded ~sparc wrt #149938

15 Oct 2006; Luca Longinotti
eaccelerator-0.9.5.ebuild:
Different cache dirs for PHP4/PHP5.

15 Oct 2006; Luca Longinotti
eaccelerator-0.9.5.ebuild:
Fix file collisions.

14 Oct 2006; Luca Longinotti
eaccelerator-0.9.5.ebuild:
Fix failure when using SysV semaphores.

14 Oct 2006; Luca Longinotti
eaccelerator-0.9.5.ebuild:
Fix deps.

14 Oct 2006; Luca Longinotti
eaccelerator-0.9.5.ebuild:
Fixup ebuild.

*eaccelerator-0.9.5 (11 Oct 2006)

11 Oct 2006; Sebastian Bergmann
-eaccelerator-0.9.5_rc1.ebuild, +eaccelerator-0.9.5.ebuild:
Version bump, remove release candidate.

21 Aug 2006; Luca Longinotti
-eaccelerator-0.9.5_beta2.ebuild, eaccelerator-0.9.5_rc1.ebuild:
Fix bug #144328.

*eaccelerator-0.9.5_rc1 (26 Jul 2006)

26 Jul 2006; Konstantin Arkhipov
+eaccelerator-0.9.5_rc1.ebuild:
Bump.

18 Jul 2006; Konstantin Arkhipov
eaccelerator-0.9.5_beta2.ebuild:
Added ~amd64 keyword.

*eaccelerator-0.9.5_beta2 (12 Apr 2006)

12 Apr 2006; Luca Longinotti
-eaccelerator-0.9.5_beta1.ebuild, +eaccelerator-0.9.5_beta2.ebuild:
Version bump, add some new USE flags for features that were changed, update
the ebuild accordingly.

*eaccelerator-0.9.5_beta1 (05 Mar 2006)

05 Mar 2006; Sebastian Bergmann +metadata.xml,
+eaccelerator-0.9.5_beta1.ebuild:
Initial ebuild.

Manifest

AUX eaccelerator-0.9.5.1-optimize-catch-exceptions.patch 1221 RMD160 1329381073936f6431d43a1f0d0bde12f12c4207 SHA1 709f90356a97af00dd737d7753697a95885c02d4 SHA256 8c6f4fc7b9d00f2964872146ac57fa70b416a8d02fb4d00adf61f04c4b84a79c
DIST eaccelerator-0.9.5.1.tar.bz2 122279 RMD160 871ab91e2fe94bc214ed7dfe927a57289e2e3485 SHA1 2789f56d713549a360871accd9869a6bb4a0b514 SHA256 dadef8cfe4624ea8a42aacd1b7db8eb47672a13ed7f78dd9028ce9edc33c2de2
DIST eaccelerator-0.9.5.3.tar.bz2 555631 RMD160 9da55beec18e7a36761b5556d3bb4d5292d21650 SHA1 6671a105497f41c4e93e0b84da516b72df159fc5 SHA256 aa4f0e7817e0193d698db71cc858f45461c2820266941ae2034eb1b82c379e45
EBUILD eaccelerator-0.9.5.1.ebuild 4179 RMD160 32eb7838f1d937c8044b395de61ad63abba8769b SHA1 d51a348b4b75647dffcff440d09420b0151a087f SHA256 995451a663ef93ccdc3fbf970e3607a9c5041a89770adf00c0a9a1626dc1f7e3
EBUILD eaccelerator-0.9.5.3.ebuild 4052 RMD160 f8d9fb4a5aa01e2346794b9f8a2931704a9e4922 SHA1 040d72765c8f63654800442164b9163e55565250 SHA256 c289498afccbd17ff920d250335549800dbb4feaf6c087d5a76eb92f6644739e
MISC ChangeLog 3294 RMD160 8cdef54c9536442488e8c8ce31839044e1af7c16 SHA1 2c5c2c23a90f34502be1a1f23232ac6b0f72e2f5 SHA256 a7d01509570d27da13decb7d513f8cafb3c38f08646945a62859ca9492496fec
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1

eaccelerator-0.9.5.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild,v 1.5 2008/05/09 12:45:41 hoffie Exp $

PHP_EXT_NAME="eaccelerator"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"

[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php5/"

inherit php-ext-source-r1 eutils depend.apache

KEYWORDS="~amd64 ~sparc ~x86"

DESCRIPTION="A PHP Accelerator & Encoder."
HOMEPAGE="http://www.eaccelerator.net/"
SRC_URI="http://bart.eaccelerator.net/source/${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE="contentcache debug disassembler inode session sharedmem"

DEPEND="!dev-php5/pecl-apc !dev-php5/xcache"
RDEPEND="${DEPEND}"

# Webserver user and group, here for Apache by default
HTTPD_USER="${HTTPD_USER:-apache}"
HTTPD_GROUP="${HTTPD_GROUP:-apache}"

need_php_by_category
want_apache

pkg_setup() {
has_php

require_php_sapi_from cgi apache2

if use session ; then
require_php_with_use session zlib
else
require_php_with_use zlib
fi

if ! use apache2 ; then
if [[ ${HTTPD_USER} == "apache" ]] || [[ ${HTTPD_GROUP} == "apache" ]] ; then
eerror "You did not enable apache2 USE flag, so you need to define"
eerror "the user and group that will be used for ${PN} yourself."
eerror
eerror "This should (generally) match the user and group that your webserver uses, e.g.:"
eerror "HTTPD_USER=\"lighttpd\" HTTPD_GROUP=\"lighttpd\" if using www-servers/lighttpd"
eerror
die "Either enable USE=\"apache2\" or re-emerge this with HTTPD_USER and HTTPD_GROUP set"
else
enewgroup ${HTTPD_GROUP}
enewuser ${HTTPD_USER} -1 -1 /var/www ${HTTPD_GROUP}
fi
fi
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-optimize-catch-exceptions.patch
php-ext-source-r1_phpize
}

src_compile() {
has_php

my_conf="--enable-eaccelerator=shared --with-eaccelerator-userid=`id -u ${HTTPD_USER}`"

use contentcache && my_conf="${my_conf} --with-eaccelerator-content-caching"
use debug && my_conf="${my_conf} --with-eaccelerator-debug"
use disassembler && my_conf="${my_conf} --with-eaccelerator-disassembler"
! use inode && my_conf="${my_conf} --without-eaccelerator-use-inode"
use session && my_conf="${my_conf} --with-eaccelerator-sessions"
use sharedmem && my_conf="${my_conf} --with-eaccelerator-shared-memory"

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}-php5/"
doins -r doc/php/
dodoc-php AUTHORS ChangeLog COPYING NEWS README README.eLoader

php-ext-base-r1_addtoinifiles "eaccelerator.shm_size" '"28"'
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.log_file" '"/var/log/eaccelerator_log"'
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.allowed_admin_path" '"/path/where/admin/files/shall/be/allowed"'
}

pkg_postinst() {
elog "Please see the files in ${ROOT}usr/share/${PN}-php5/ for some"
elog "examples and informations on how to use the functions that"
elog "eAccelerator adds to PHP."
}

eaccelerator-0.9.5.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.5.3.ebuild,v 1.1 2008/06/03 03:12:50 chtekk Exp $

PHP_EXT_NAME="eaccelerator"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"

[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php5/"

inherit php-ext-source-r1 eutils depend.apache

KEYWORDS="~amd64 ~sparc ~x86"

DESCRIPTION="A PHP Accelerator & Encoder."
HOMEPAGE="http://www.eaccelerator.net/"
SRC_URI="http://bart.eaccelerator.net/source/${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE="contentcache debug disassembler inode session sharedmem"

DEPEND="!dev-php5/pecl-apc !dev-php5/xcache"
RDEPEND="${DEPEND}"

# Webserver user and group, here for Apache by default
HTTPD_USER="${HTTPD_USER:-apache}"
HTTPD_GROUP="${HTTPD_GROUP:-apache}"

need_php_by_category
want_apache

pkg_setup() {
has_php

require_php_sapi_from cgi apache2

if use session ; then
require_php_with_use session zlib
else
require_php_with_use zlib
fi

if ! use apache2 ; then
if [[ ${HTTPD_USER} == "apache" ]] || [[ ${HTTPD_GROUP} == "apache" ]] ; then
eerror "You did not enable apache2 USE flag, so you need to define"
eerror "the user and group that will be used for ${PN} yourself."
eerror
eerror "This should (generally) match the user and group that your webserver uses, e.g.:"
eerror "HTTPD_USER=\"lighttpd\" HTTPD_GROUP=\"lighttpd\" if using www-servers/lighttpd"
eerror
die "Either enable USE=\"apache2\" or re-emerge this with HTTPD_USER and HTTPD_GROUP set"
else
enewgroup ${HTTPD_GROUP}
enewuser ${HTTPD_USER} -1 -1 /var/www ${HTTPD_GROUP}
fi
fi
}

src_compile() {
has_php

my_conf="--enable-eaccelerator=shared --with-eaccelerator-userid=`id -u ${HTTPD_USER}`"

use contentcache && my_conf="${my_conf} --with-eaccelerator-content-caching"
use debug && my_conf="${my_conf} --with-eaccelerator-debug"
use disassembler && my_conf="${my_conf} --with-eaccelerator-disassembler"
! use inode && my_conf="${my_conf} --without-eaccelerator-use-inode"
use session && my_conf="${my_conf} --with-eaccelerator-sessions"
use sharedmem && my_conf="${my_conf} --with-eaccelerator-shared-memory"

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}-php5/"
doins -r doc/php/
dodoc-php AUTHORS ChangeLog COPYING NEWS README README.eLoader

php-ext-base-r1_addtoinifiles "eaccelerator.shm_size" '"28"'
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.log_file" '"/var/log/eaccelerator_log"'
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.allowed_admin_path" '"/path/where/admin/files/shall/be/allowed"'
}

pkg_postinst() {
elog "Please see the files in ${ROOT}usr/share/${PN}-php5/ for some"
elog "examples and informations on how to use the functions that"
elog "eAccelerator adds to PHP."
}

files

metadata.xml




php