summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@gentoo.org>2006-03-05 07:07:06 +0000
committerSebastian Bergmann <sebastian@gentoo.org>2006-03-05 07:07:06 +0000
commit2e13a80b3792c6008a18e48ae979971e33ddd31a (patch)
tree91b4eee6e09b71eba2e6912f8b0548fb56b84a8b /dev-php5
parentAdd iuse USE flag for dev-php5/eaccelerator. (diff)
downloadhistorical-2e13a80b3792c6008a18e48ae979971e33ddd31a.tar.gz
historical-2e13a80b3792c6008a18e48ae979971e33ddd31a.tar.bz2
historical-2e13a80b3792c6008a18e48ae979971e33ddd31a.zip
Initial ebuild.
Package-Manager: portage-2.1_pre5-r4
Diffstat (limited to 'dev-php5')
-rw-r--r--dev-php5/eaccelerator/ChangeLog10
-rw-r--r--dev-php5/eaccelerator/Manifest22
-rw-r--r--dev-php5/eaccelerator/eaccelerator-0.9.5_beta1.ebuild111
-rw-r--r--dev-php5/eaccelerator/files/digest-eaccelerator-0.9.5_beta13
-rw-r--r--dev-php5/eaccelerator/metadata.xml5
5 files changed, 151 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..83d5bceeb4a3
--- /dev/null
+++ b/dev-php5/eaccelerator/Manifest
@@ -0,0 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 d3d2b2085861657fa143d570bd3e1e4a ChangeLog 386
+RMD160 7086bf1745a3c042beacad540bba9f6cd71b2921 ChangeLog 386
+SHA256 2a8f9df6d9a24af025933989507a3a6e69e7489b93e6f1435a7e9959dbe2a99e ChangeLog 386
+MD5 8aad2f17a7d753ca770ac6afe9805601 eaccelerator-0.9.5_beta1.ebuild 3635
+RMD160 dcaf306dd679b8e33d29e47e002b6132bfdd636a eaccelerator-0.9.5_beta1.ebuild 3635
+SHA256 3c8a34ce862a6f8c507f99f810d47787e8f0f9d056efb3c263ee8ed27f46d711 eaccelerator-0.9.5_beta1.ebuild 3635
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2.1 (GNU/Linux)
+
+iD8DBQFECo4oaGfFFLhbXWkRApKHAJ0QLQIKNWgjCJinIuPOsKUbQtRORQCfSwQP
+as6Gbfxtdl/ir1MKbtWSORg=
+=Ydo1
+-----END PGP SIGNATURE-----
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>