Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-php4/eaccelerator
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/eaccelerator/ChangeLog,v 1.22 2007/08/20 21:00:40 jokey Exp $
*eaccelerator-0.9.5.1 (20 Aug 2007)
20 Aug 2007; Markus Ullmann
+eaccelerator-0.9.5.1.ebuild:
Porting from project overlay
20 Aug 2007; Jakub Moc
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
+eaccelerator-0.9.5.1.ebuild:
Version bump
12 May 2007; Luca Longinotti
eaccelerator-0.9.5.ebuild:
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
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
-files/eaccelerator-0.9.3-hash-fix.patch, eaccelerator-0.9.5.ebuild:
Fixup ebuild, remove old patch.
*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.
29 Sep 2006; Sebastian Bergmann
-eaccelerator-0.9.3.ebuild, -eaccelerator-0.9.4.ebuild:
Clean up old versions.
16 Sep 2006; Markus Rothe
eaccelerator-0.9.5_rc1.ebuild:
Added ~ppc64
21 Aug 2006; Luca Longinotti
eaccelerator-0.9.5_rc1.ebuild:
Fix bug #144328.
13 Aug 2006; Luca Longinotti
eaccelerator-0.9.5_rc1.ebuild:
Fix wrong blocker, thanks to Weeve for noticing!
*eaccelerator-0.9.5_rc1 (27 Jul 2006)
27 Jul 2006; Konstantin Arkhipov
+eaccelerator-0.9.5_rc1.ebuild:
Version bump.
27 May 2006; Luca Longinotti
eaccelerator-0.9.4.ebuild:
Added to ~amd64.
*eaccelerator-0.9.4 (05 Mar 2006)
05 Mar 2006; Sebastian Bergmann
+eaccelerator-0.9.4.ebuild:
Version bump.
22 Jan 2006; Jason Wever
Added ~sparc keyword.
24 Nov 2005; Luca Longinotti
eaccelerator-0.9.3.ebuild:
Sync with PHP overlay.
19 Nov 2005; Markus Rothe
Added ~ppc64 keyword; bug #102649
15 Nov 2005; Sebastian Bergmann
eaccelerator-0.9.3.ebuild:
Fix bug 112495.
18 Aug 2005;
Initial version; replaces older dev-php/* packages
DIST eaccelerator-0.9.5.1.tar.bz2 122279 RMD160 871ab91e2fe94bc214ed7dfe927a57289e2e3485 SHA1 2789f56d713549a360871accd9869a6bb4a0b514 SHA256 dadef8cfe4624ea8a42aacd1b7db8eb47672a13ed7f78dd9028ce9edc33c2de2
EBUILD eaccelerator-0.9.5.1.ebuild 4043 RMD160 37b2a65463c09cbbce273b8200c6e889eae72375 SHA1 05d60b0a5c695534f8c5dfdad0a3c3a45dff7c43 SHA256 d591c79076ce1f6599cc1c5d4ca503f2de8579a9937353cf1ea43429170a9981
MISC ChangeLog 3251 RMD160 b779c9854b6320df5dbfea82fd52c796a931c2a2 SHA1 68e124c86635aef3a89901a92e9c73f2cd4e0fb8 SHA256 d93436791f2fc93062ebe2c51150521ed1e01f6560e70a150869662b31138158
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/eaccelerator/eaccelerator-0.9.5.1.ebuild,v 1.1 2007/08/20 21:00:40 jokey Exp $
PHP_EXT_NAME="eaccelerator"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"
[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php4/"
inherit php-ext-source-r1 depend.apache
KEYWORDS="~amd64 ~ppc64 ~sparc ~x86"
DESCRIPTION="A PHP Accelerator & Encoder."
HOMEPAGE="http://www.eaccelerator.net/"
SRC_URI="mirror://sourceforge/eaccelerator/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE="contentcache debug disassembler inode session sharedmem"
DEPEND="!dev-php4/pecl-apc !dev-php4/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}-php4/"
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}-php4/ for some"
elog "examples and informations on how to use the functions that"
elog "eAccelerator adds to PHP."
}