Version bump, remove release candidate.
authorSebastian Bergmann <sebastian@gentoo.org>
Wed, 11 Oct 2006 13:58:51 +0000 (13:58 +0000)
committerSebastian Bergmann <sebastian@gentoo.org>
Wed, 11 Oct 2006 13:58:51 +0000 (13:58 +0000)
Package-Manager: portage-2.1.2_pre2-r8

dev-php5/eaccelerator/ChangeLog
dev-php5/eaccelerator/eaccelerator-0.9.5.ebuild [new file with mode: 0644]
dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5 [new file with mode: 0644]

index b8856a3fdad66210bb10567ffe138a8bad43195f..1514e66b62d8e0af6971529885db15f19d26f85b 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-php5/eaccelerator
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.6 2006/08/21 17:52:20 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.7 2006/10/11 13:58:51 sebastian Exp $
+
+*eaccelerator-0.9.5 (11 Oct 2006)
+
+  11 Oct 2006; Sebastian Bergmann <sebastian@gentoo.org>
+  -eaccelerator-0.9.5_rc1.ebuild, +eaccelerator-0.9.5.ebuild:
+  Version bump, remove release candidate.
 
   21 Aug 2006; Luca Longinotti <chtekk@gentoo.org>
   -eaccelerator-0.9.5_beta2.ebuild, eaccelerator-0.9.5_rc1.ebuild:
diff --git a/dev-php5/eaccelerator/eaccelerator-0.9.5.ebuild b/dev-php5/eaccelerator/eaccelerator-0.9.5.ebuild
new file mode 100644 (file)
index 0000000..81e167e
--- /dev/null
@@ -0,0 +1,101 @@
+# Copyright 1999-2006 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.ebuild,v 1.1 2006/10/11 13:58:51 sebastian Exp $
+
+PHP_EXT_NAME="eaccelerator"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="yes"
+
+[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator"
+
+inherit php-ext-source-r1
+
+KEYWORDS="~amd64 ~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 disassembler inode session sharedmem"
+
+DEPEND="${DEPEND}
+               !dev-php5/pecl-apc"
+
+# Webserver user and group, here for Apache.
+HTTPD_USER="apache"
+HTTPD_GROUP="apache"
+
+need_php_by_category
+
+pkg_setup() {
+       has_php
+
+       require_php_sapi_from cgi apache apache2
+
+       if use session ; then
+               require_php_with_use session zlib
+       else
+               require_php_with_use zlib
+       fi
+}
+
+src_compile() {
+       has_php
+
+       my_conf="--enable-eaccelerator=shared"
+
+       use contentcache && my_conf="${my_conf} --with-eaccelerator-content-caching"
+       use disassembler && my_conf="${my_conf} --with-eaccelerator-disassembler"
+       use session && my_conf="${my_conf} --with-eaccelerator-sessions"
+       use sharedmem && my_conf="${my_conf} --with-eaccelerator-shared-memory"
+       use !inode && my_conf="${my_conf} --without-eaccelerator-use-inode"
+
+       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 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.check_mtime" '"1"'
+       php-ext-base-r1_addtoinifiles "eaccelerator.debug" '"0"'
+       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() {
+       has_php
+
+       # 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
+               einfo "You need to restart your Apache webserver to activate eAccelerator."
+               einfo
+       fi
+
+       einfo
+       einfo "Please see the files in /usr/share/${PN} for some examples"
+       einfo "and information on how to use the functions that"
+       einfo "eAccelerator adds to PHP."
+       einfo
+}
diff --git a/dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5 b/dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5
new file mode 100644 (file)
index 0000000..4ac966e
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 dad54af67488b83a2af6e30f661f613b eaccelerator-0.9.5.tar.bz2 121791
+RMD160 3c3e6acfa53113581c52c1c70420059ace9346ce eaccelerator-0.9.5.tar.bz2 121791
+SHA256 9118cda6f7a8013bb22621304f783ecb629fcc9c556f182e3caf0913dc7294cf eaccelerator-0.9.5.tar.bz2 121791