diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2010-11-03 22:11:40 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2010-11-03 22:11:40 +0000 |
commit | 55736b4081633a23199ec9539d59abdb6192a2c2 (patch) | |
tree | 5f020c8214a0eb66778979a24782812a75776045 /dev-php5/eaccelerator | |
parent | Version bump. (diff) | |
download | historical-55736b4081633a23199ec9539d59abdb6192a2c2.tar.gz historical-55736b4081633a23199ec9539d59abdb6192a2c2.tar.bz2 historical-55736b4081633a23199ec9539d59abdb6192a2c2.zip |
Added a version that supports minor version slotting
Package-Manager: portage-2.1.9.24/cvs/Linux x86_64
Diffstat (limited to 'dev-php5/eaccelerator')
-rw-r--r-- | dev-php5/eaccelerator/ChangeLog | 7 | ||||
-rw-r--r-- | dev-php5/eaccelerator/Manifest | 3 | ||||
-rw-r--r-- | dev-php5/eaccelerator/eaccelerator-0.9.6.1-r1.ebuild | 93 |
3 files changed, 101 insertions, 2 deletions
diff --git a/dev-php5/eaccelerator/ChangeLog b/dev-php5/eaccelerator/ChangeLog index b41c3d7abe23..fcee5e469413 100644 --- a/dev-php5/eaccelerator/ChangeLog +++ b/dev-php5/eaccelerator/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-php5/eaccelerator # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.26 2010/10/23 08:25:41 olemarkus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.27 2010/11/03 22:11:40 olemarkus Exp $ + +*eaccelerator-0.9.6.1-r1 (03 Nov 2010) + + 03 Nov 2010; <olemarkus@gentoo.org> +eaccelerator-0.9.6.1-r1.ebuild: + Added a version that supports minor version slotting 23 Oct 2010; <olemarkus@gentoo.org> eaccelerator-0.9.6.1.ebuild: Swapped depending on specific httpd SAPI's with virtual/httpd-php. Thanks to Andrey Yurchuk for notifying diff --git a/dev-php5/eaccelerator/Manifest b/dev-php5/eaccelerator/Manifest index bf66d7f187b4..8d2bac206c82 100644 --- a/dev-php5/eaccelerator/Manifest +++ b/dev-php5/eaccelerator/Manifest @@ -3,7 +3,8 @@ DIST eaccelerator-0.9.5.3.tar.bz2 555631 RMD160 9da55beec18e7a36761b5556d3bb4d52 DIST eaccelerator-0.9.6.1.tar.bz2 106049 RMD160 6a16ab377ec124a27e26a5fdc1fd6ada845695bd SHA1 c95e87229a6e674b4994d4fc13278e516ea314f9 SHA256 33703ad1678cdb65ef0cd28fbd2e262ef5d9f201f9016de26b7254987deba53c DIST eaccelerator-0.9.6.tar.bz2 105833 RMD160 86320cbafa31f4b6db308c55035bbf057325a708 SHA1 65594917d0efa754d35760d2cde8701ffaa2914a SHA256 ab1f309078d04ede3297b96f6c2689104e349e11e61376866f59c983ddde9a56 EBUILD eaccelerator-0.9.5.3-r1.ebuild 4437 RMD160 55f5652dfed93307537cb26cb2606f0b544dcdb9 SHA1 0cca85059dc9e07415e1ee8565308b404aa862a7 SHA256 0bf97fffc5114286f996a1736804feff1a90fbabeba88a0abcdcf4199c7cc1b1 +EBUILD eaccelerator-0.9.6.1-r1.ebuild 3424 RMD160 b0436552423ea3c52c160fcbae0f3e99cba90561 SHA1 c75e94bca55cfa4762a721413b3713e11f468102 SHA256 62c9929bbcf0b8e58485c2b751f57dd59e887a5d18472d46df906476b9db7d73 EBUILD eaccelerator-0.9.6.1.ebuild 3460 RMD160 33ee5bb5abbfdedb8779eaf303098ca25501eef2 SHA1 018870484aa9ed30fcba87f85be1e4746238876f SHA256 3eb0d04c6ecf591132d3fbe1d34e92364bbe0749d5e2a72e86d0f7e1f66b788c EBUILD eaccelerator-0.9.6.ebuild 3510 RMD160 fbef5aa2389e4a71d695d333b2a4f2e7473dffc7 SHA1 49bff37e91914574007cbefe8701b9d075d138ff SHA256 d9a30bb46bbddb716cfa059a285e5fc448558f95c9de04e2e21a985834c40e6f -MISC ChangeLog 4703 RMD160 20cb3dfea414d2687e19146a92d9d974162c5f7a SHA1 0f08faa004285e1ff5b1d5821bd8f519a95b785a SHA256 89d59b6f2bc6ed7d7bf57b626d0b7f0f7c712d03b5b7d8ef20c2a316e1780f5d +MISC ChangeLog 4870 RMD160 e0f1d99eb7ae85789961ac82b0d8e87b83384cbc SHA1 39d1037dbb85dd6f4413575cb3e1499423b7a0d8 SHA256 55b48eb5063099ed08bd8d612dc88dc7014fdc46f41d1e747abb66856a3d2909 MISC metadata.xml 482 RMD160 3f0e4bf32cf90bbaebc348aa734c2fbabf065b0c SHA1 6cdfaa3d1e838e8c058d360fa1c6de52bfa9e9da SHA256 3e049a6d7ac92b1aef6095e29064ffce5aa56eaac36bf60c64e42e3da46fb07c diff --git a/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r1.ebuild b/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r1.ebuild new file mode 100644 index 000000000000..b8c3355742e4 --- /dev/null +++ b/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r1.ebuild,v 1.1 2010/11/03 22:11:40 olemarkus Exp $ + +PHP_EXT_NAME="eaccelerator" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +EAPI="2" + +[[ -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-php5/pecl-apc !dev-php5/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_compile() { + 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_compile +} + +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/${PVR}" + doins -r doc/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/${PVR}/ for some" + elog "examples and informations on how to use the functions that" + elog "eAccelerator adds to PHP." +} |