diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2012-02-16 10:08:28 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2012-02-16 10:08:28 +0000 |
commit | 804030a6be0a10f094115c6aab4ee4e81fc0735a (patch) | |
tree | bd9cffad795e21b25694fe21e773fc6e32ff6396 /dev-php/eaccelerator | |
parent | Version bump to 2.4.7 (bug 396135). (diff) | |
download | gentoo-2-804030a6be0a10f094115c6aab4ee4e81fc0735a.tar.gz gentoo-2-804030a6be0a10f094115c6aab4ee4e81fc0735a.tar.bz2 gentoo-2-804030a6be0a10f094115c6aab4ee4e81fc0735a.zip |
Revbump fixing bug 391039
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-php/eaccelerator')
-rw-r--r-- | dev-php/eaccelerator/ChangeLog | 10 | ||||
-rw-r--r-- | dev-php/eaccelerator/eaccelerator-0.9.6.1-r5.ebuild | 99 |
2 files changed, 107 insertions, 2 deletions
diff --git a/dev-php/eaccelerator/ChangeLog b/dev-php/eaccelerator/ChangeLog index 57215fbfaf91..44f317afa626 100644 --- a/dev-php/eaccelerator/ChangeLog +++ b/dev-php/eaccelerator/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-php/eaccelerator -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/eaccelerator/ChangeLog,v 1.24 2011/11/02 14:51:25 phajdan.jr Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/eaccelerator/ChangeLog,v 1.25 2012/02/16 10:08:28 olemarkus Exp $ + +*eaccelerator-0.9.6.1-r5 (16 Feb 2012) + + 16 Feb 2012; Ole Markus With <olemarkus@gentoo.org> + +eaccelerator-0.9.6.1-r5.ebuild: + Revbump fixing bug 391039 02 Nov 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> eaccelerator-0.9.6.1-r4.ebuild: diff --git a/dev-php/eaccelerator/eaccelerator-0.9.6.1-r5.ebuild b/dev-php/eaccelerator/eaccelerator-0.9.6.1-r5.ebuild new file mode 100644 index 000000000000..ab85cbe172c7 --- /dev/null +++ b/dev-php/eaccelerator/eaccelerator-0.9.6.1-r5.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/eaccelerator/eaccelerator-0.9.6.1-r5.ebuild,v 1.1 2012/02/16 10:08:28 olemarkus Exp $ + +PHP_EXT_NAME="eaccelerator" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +EAPI="4" + +[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php5/" + +inherit php-ext-source-r2 eutils depend.apache + +KEYWORDS="~amd64 ~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="debug disassembler inode doccommentinclusion session" + +DEPEND="!dev-php/pecl-apc !dev-php/xcache" +RDEPEND="${DEPEND} + >=dev-lang/php-5.1[zlib,session?] + virtual/httpd-php +" + +# Webserver user and group, here for Apache by default +HTTPD_USER="${HTTPD_USER:-apache}" +HTTPD_GROUP="${HTTPD_GROUP:-apache}" + +want_apache + +pkg_setup() { + depend.apache_pkg_setup + + 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_prepare() { + epatch "${FILESDIR}/eaccelerator-openbasedir.patch" + php-ext-source-r2_src_prepare +} + +src_configure() { + my_conf="--enable-eaccelerator=shared --with-eaccelerator-userid=`id -u ${HTTPD_USER}`" + 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 doccommentinclusion && my_conf="${my_conf} --with-eaccelerator-doc-comment-inclusion" + php-ext-source-r2_src_configure +} + +src_install() { + php-ext-source-r2_src_install + + keepdir "${EACCELERATOR_CACHEDIR}" + fowners ${HTTPD_USER}:${HTTPD_GROUP} "${EACCELERATOR_CACHEDIR}" + fperms 750 "${EACCELERATOR_CACHEDIR}" + + insinto "/usr/share/${PF}" + doins PHP_Highlight.php control.php bugreport.php doc/php/info.php + use disassembler && doins doc/php/dasm.php + dodoc AUTHORS ChangeLog NEWS README + + php-ext-source-r2_addtoinifiles "eaccelerator.shm_size" '"28"' + php-ext-source-r2_addtoinifiles "eaccelerator.cache_dir" "\"${EACCELERATOR_CACHEDIR}\"" + php-ext-source-r2_addtoinifiles "eaccelerator.enable" '"1"' + php-ext-source-r2_addtoinifiles "eaccelerator.optimizer" '"1"' + php-ext-source-r2_addtoinifiles "eaccelerator.debug" '"0"' + php-ext-source-r2_addtoinifiles ";eaccelerator.log_file" '"/var/log/eaccelerator_log"' + php-ext-source-r2_addtoinifiles "eaccelerator.check_mtime" '"1"' + php-ext-source-r2_addtoinifiles "eaccelerator.filter" '""' + php-ext-source-r2_addtoinifiles "eaccelerator.shm_ttl" '"0"' + php-ext-source-r2_addtoinifiles "eaccelerator.shm_prune_period" '"0"' + php-ext-source-r2_addtoinifiles "eaccelerator.shm_only" '"0"' + php-ext-source-r2_addtoinifiles ";eaccelerator.allowed_admin_path" '"/path/where/admin/files/shall/be/allowed"' +} + +pkg_postinst() { + elog "Please see the files in ${ROOT}usr/share/${PF}/ for some" + elog "examples and informations on how to use the functions that" + elog "eAccelerator adds to PHP." +} |