summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@gentoo.org>2005-02-19 15:52:42 +0000
committerSebastian Bergmann <sebastian@gentoo.org>2005-02-19 15:52:42 +0000
commit9fa829baccbc4f2d7dc67482720658f7defd4700 (patch)
treeb377d672beeaf23e0ed672371159e9e9d576c08b /dev-php/eaccelerator
parentStable on ppc64 (diff)
downloadhistorical-9fa829baccbc4f2d7dc67482720658f7defd4700.tar.gz
historical-9fa829baccbc4f2d7dc67482720658f7defd4700.tar.bz2
historical-9fa829baccbc4f2d7dc67482720658f7defd4700.zip
Initial ebuild for eAccelerator, closes bug 75946.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-php/eaccelerator')
-rw-r--r--dev-php/eaccelerator/ChangeLog10
-rw-r--r--dev-php/eaccelerator/Manifest14
-rw-r--r--dev-php/eaccelerator/eaccelerator-0.9.2a.ebuild85
-rw-r--r--dev-php/eaccelerator/files/digest-eaccelerator-0.9.2a1
-rw-r--r--dev-php/eaccelerator/metadata.xml5
5 files changed, 115 insertions, 0 deletions
diff --git a/dev-php/eaccelerator/ChangeLog b/dev-php/eaccelerator/ChangeLog
new file mode 100644
index 000000000000..fc7f6360892f
--- /dev/null
+++ b/dev-php/eaccelerator/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-php/eaccelerator
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/eaccelerator/ChangeLog,v 1.1 2005/02/19 15:52:42 sebastian Exp $
+
+*eaccelerator-0.9.2a (19 Feb 2005)
+
+ 19 Feb 2005; Sebastian Bergmann <sebastian@gentoo.org> +metadata.xml,
+ +eaccelerator-0.9.2a.ebuild:
+ Initial ebuild for eAccelerator, closes bug 75946.
+
diff --git a/dev-php/eaccelerator/Manifest b/dev-php/eaccelerator/Manifest
new file mode 100644
index 000000000000..d99db32ddec5
--- /dev/null
+++ b/dev-php/eaccelerator/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 ca655019afcb5e449e530bf95703caf9 eaccelerator-0.9.2a.ebuild 3075
+MD5 86a862046cef212752f678571119f4c6 ChangeLog 409
+MD5 34b376f52ca199fffb4e52b83169574a metadata.xml 156
+MD5 3d30ceed6d4367d313daa9c6ec007e8f files/digest-eaccelerator-0.9.2a 71
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.0 (GNU/Linux)
+
+iD8DBQFCF2E+aGfFFLhbXWkRAry0AJ9AKSG/1RKV16B5UfPWt7C/cYs7tQCgm0h7
+sEFldGlqRqe/d3J3qGBIhz8=
+=bkJF
+-----END PGP SIGNATURE-----
diff --git a/dev-php/eaccelerator/eaccelerator-0.9.2a.ebuild b/dev-php/eaccelerator/eaccelerator-0.9.2a.ebuild
new file mode 100644
index 000000000000..beacc01a0194
--- /dev/null
+++ b/dev-php/eaccelerator/eaccelerator-0.9.2a.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/eaccelerator/eaccelerator-0.9.2a.ebuild,v 1.1 2005/02/19 15:52:42 sebastian Exp $
+
+PHP_EXT_NAME="eaccelerator"
+PHP_EXT_ZENDEXT="yes"
+[ -z "${EACCELERATOR_CACHEDIR}" ] && EACCELERATOR_CACHEDIR=/var/cache/eaccelerator
+inherit php-ext-source
+
+DESCRIPTION="A PHP Accelerator & Encoder."
+HOMEPAGE="http://eaccelerator.sourceforge.net/"
+SRC_URI="mirror://sourceforge/eaccelerator/${P}.tar.gz"
+S=${WORKDIR}/eaccelerator
+IUSE=""
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="$DEPEND
+ !dev-php/ioncube_loaders
+ !dev-php/php-accelerator
+ !dev-php/PECL-apc
+ !dev-php/turck-mmcache"
+
+src_compile() {
+ # eAccelerator does not work with Zend Thread Safety (ZTS)
+ # so about if we are using Apache 2 with an MPM that would
+ # require ZTS.
+ if has_version '>=net-www/apache-2*'; then
+ APACHE2_MPM="`/usr/sbin/apache2 -l | egrep 'worker|perchild|leader|threadpool|prefork'|cut -d. -f1|sed -e 's/^[[:space:]]*//g;s/[[:space:]]+/ /g;'`"
+ case "${APACHE2_MPM}" in
+ *prefork*) ;;
+ *) eerror "eAccelerator does not yet work with the Apache 2 MPM in use." ; die ;;
+ esac;
+ fi
+
+ myconf="--enable-eaccelerator=shared"
+ php-ext-source_src_compile
+}
+
+src_install() {
+ php-ext-source_src_install
+
+ # create cache dir if it does not exist
+ #
+ # settings should ensure that cached files are secure,
+ # *but* this may break php-cli
+ #
+ # please file a bug in http://bugs.gentoo.org if this happens
+ # for you
+
+ keepdir ${EACCELERATOR_CACHEDIR}
+ fowners root:root ${EACCELERATOR_CACHEDIR}
+ fperms 1777 ${EACCELERATOR_CACHEDIR}
+
+ insinto /usr/share/${PN}
+ doins encoder.php eaccelerator.php eaccelerator_password.php
+ dodoc AUTHORS ChangeLog COPYING NEWS README README.eLoader
+
+ php-ext-base_addtoinifiles "eaccelerator.shm_size" '"16"'
+ php-ext-base_addtoinifiles "eaccelerator.cache_dir" "\"${EACCELERATOR_CACHEDIR}\""
+ php-ext-base_addtoinifiles "eaccelerator.enable" '"1"'
+ php-ext-base_addtoinifiles "eaccelerator.optimizer" '"1"'
+ php-ext-base_addtoinifiles "eaccelerator.check_mtime" '"1"'
+ php-ext-base_addtoinifiles "eaccelerator.debug" '"0"'
+ php-ext-base_addtoinifiles "eaccelerator.filter" '""'
+ php-ext-base_addtoinifiles "eaccelerator.shm_max" '"0"'
+ php-ext-base_addtoinifiles "eaccelerator.shm_ttl" '"0"'
+ php-ext-base_addtoinifiles "eaccelerator.shm_prune_period" '"0"'
+ php-ext-base_addtoinifiles "eaccelerator.shm_only" '"0"'
+ php-ext-base_addtoinifiles "eaccelerator.compress" '"1"'
+ php-ext-base_addtoinifiles "eaccelerator.compress_level" '"9"'
+}
+
+pkg_postinst () {
+ einfo "You need to restart apache to activate eAccelerator"
+ einfo
+ 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.'
+ 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-php/eaccelerator/files/digest-eaccelerator-0.9.2a b/dev-php/eaccelerator/files/digest-eaccelerator-0.9.2a
new file mode 100644
index 000000000000..6eec3000f758
--- /dev/null
+++ b/dev-php/eaccelerator/files/digest-eaccelerator-0.9.2a
@@ -0,0 +1 @@
+MD5 e9059ebd49f14835534a1d96a97ababd eaccelerator-0.9.2a.tar.gz 115791
diff --git a/dev-php/eaccelerator/metadata.xml b/dev-php/eaccelerator/metadata.xml
new file mode 100644
index 000000000000..40dbb4c4bbaf
--- /dev/null
+++ b/dev-php/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>