diff options
author | Sebastian Bergmann <sebastian@gentoo.org> | 2006-03-05 07:07:06 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@gentoo.org> | 2006-03-05 07:07:06 +0000 |
commit | b4b9e779b2622f438ad9a842f818b52a9a3121f4 (patch) | |
tree | c4543230111fc53c8c2513c4cdf39c7ae64a2ef1 /dev-php5 | |
parent | Add iuse USE flag for dev-php5/eaccelerator. (diff) | |
download | gentoo-2-b4b9e779b2622f438ad9a842f818b52a9a3121f4.tar.gz gentoo-2-b4b9e779b2622f438ad9a842f818b52a9a3121f4.tar.bz2 gentoo-2-b4b9e779b2622f438ad9a842f818b52a9a3121f4.zip |
Initial ebuild.
(Portage version: 2.1_pre5-r4)
Diffstat (limited to 'dev-php5')
-rw-r--r-- | dev-php5/eaccelerator/ChangeLog | 10 | ||||
-rw-r--r-- | dev-php5/eaccelerator/Manifest | 12 | ||||
-rw-r--r-- | dev-php5/eaccelerator/eaccelerator-0.9.5_beta1.ebuild | 111 | ||||
-rw-r--r-- | dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5_beta1 | 3 | ||||
-rw-r--r-- | dev-php5/eaccelerator/metadata.xml | 5 |
5 files changed, 141 insertions, 0 deletions
diff --git a/dev-php5/eaccelerator/ChangeLog b/dev-php5/eaccelerator/ChangeLog new file mode 100644 index 000000000000..f8763710b673 --- /dev/null +++ b/dev-php5/eaccelerator/ChangeLog @@ -0,0 +1,10 @@ +# 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.1 2006/03/05 07:07:06 sebastian Exp $ + +*eaccelerator-0.9.5_beta1 (05 Mar 2006) + + 05 Mar 2006; Sebastian Bergmann <sebastian@gentoo.org> +metadata.xml, + +eaccelerator-0.9.5_beta1.ebuild: + Initial ebuild. + diff --git a/dev-php5/eaccelerator/Manifest b/dev-php5/eaccelerator/Manifest new file mode 100644 index 000000000000..4977da82429b --- /dev/null +++ b/dev-php5/eaccelerator/Manifest @@ -0,0 +1,12 @@ +MD5 25e5186964a19de5632b2276567efea4 ChangeLog 290 +RMD160 a59546030253c97010af552c03a664f75ecbf525 ChangeLog 290 +SHA256 3c53c20b5318ce8170ff853beb12eff344fd41d9ded5770719702ebd9deb236b ChangeLog 290 +MD5 e248c10a8ffeefc8e1fe670271f0fbcb eaccelerator-0.9.5_beta1.ebuild 3629 +RMD160 1c35012937b180770420570dbe136cb42a78106f eaccelerator-0.9.5_beta1.ebuild 3629 +SHA256 876bb4a74aadfdb0fc0371d5a87fc08e1a00b956f8f22c99f10dc4a93ee99b91 eaccelerator-0.9.5_beta1.ebuild 3629 +MD5 5eb57f589916cd0ff543fc7347113b16 files/digest-eaccelerator-0.9.5_beta1 277 +RMD160 36cf5b4e5aa09ed38d28a822ef3c4e5168f3024b files/digest-eaccelerator-0.9.5_beta1 277 +SHA256 dbfa157bbc8516f5a6bd6f59208bc99b6ecf8e4a9935284d942e64305417d149 files/digest-eaccelerator-0.9.5_beta1 277 +MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157 +RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157 +SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 metadata.xml 157 diff --git a/dev-php5/eaccelerator/eaccelerator-0.9.5_beta1.ebuild b/dev-php5/eaccelerator/eaccelerator-0.9.5_beta1.ebuild new file mode 100644 index 000000000000..d82c66cf792a --- /dev/null +++ b/dev-php5/eaccelerator/eaccelerator-0.9.5_beta1.ebuild @@ -0,0 +1,111 @@ +# 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_beta1.ebuild,v 1.1 2006/03/05 07:07:06 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 + +MY_P=${P/_/-} +S="${WORKDIR}/${MY_P}" + +KEYWORDS="~x86" +DESCRIPTION="A PHP Accelerator & Encoder." +HOMEPAGE="http://www.eaccelerator.net/" +SRC_URI="mirror://sourceforge/eaccelerator/${MY_P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +IUSE="inode session" + +DEPEND="${DEPEND} + !dev-php5/pecl-apc" + +# this is a good example of why we need all web servers installed under a +# common 'www' user and group! +HTTPD_USER="apache" +HTTPD_GROUP="apache" + +need_php_by_category + +pkg_setup() { + has_php + + require_php_sapi_from cgi apache apache2 + require_php_with_use zlib +} + +src_unpack() { + unpack ${A} + + cd "${S}" +} + +src_compile() { + has_php + + my_conf="--enable-eaccelerator=shared" + + if use !session; then + my_conf="${my_conf} --without-eaccelerator-sessions" + fi + + if use !inode; then + my_conf="${my_conf} --without-eaccelerator-use-inode" + fi + + 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 encoder.php eaccelerator.php eaccelerator_password.php + dodoc-php AUTHORS ChangeLog COPYING NEWS README README.eLoader + + php-ext-base-r1_addtoinifiles "eaccelerator.shm_size" '"64"' + 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.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.admin.name" '"username"' + php-ext-base-r1_addtoinifiles ";eaccelerator.admin.password" '"hashed_password"' +} + +pkg_postinst() { + # 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 "You need to restart your webserver to activate eAccelerator." + einfo + fi + + # this web interface needs moving into a separate, webapp-config compatible + # package!! + einfo "A web interface is available to manage the eAccelerator cache." + einfo "Copy /usr/share/eaccelerator/*.php to somewhere" + einfo "where your web server can see it. See the documentation on how" + einfo "to secure this web interface with authentication." + einfo + einfo "A PHP script encoder is available to encode your PHP scripts." + einfo "The encoder is available as /usr/share/eaccelerator/encoder.php" + einfo "The encoded file format is not yet considered stable." +} diff --git a/dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5_beta1 b/dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5_beta1 new file mode 100644 index 000000000000..202c6a554430 --- /dev/null +++ b/dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5_beta1 @@ -0,0 +1,3 @@ +MD5 29f68a5975c1a09dbd72c9e8ddd534a7 eaccelerator-0.9.5-beta1.tar.bz2 109878 +RMD160 6a92cfb5bf30cd6c7cca0d5139875e308c52ded3 eaccelerator-0.9.5-beta1.tar.bz2 109878 +SHA256 f55781080ca48ba6d907c8101cf188987844a86d776c95b4f12dff2842d3f9d2 eaccelerator-0.9.5-beta1.tar.bz2 109878 diff --git a/dev-php5/eaccelerator/metadata.xml b/dev-php5/eaccelerator/metadata.xml new file mode 100644 index 000000000000..fd3dbe39fa64 --- /dev/null +++ b/dev-php5/eaccelerator/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>php</herd> +</pkgmetadata> |