diff options
author | Sebastian Bergmann <sebastian@gentoo.org> | 2005-07-02 05:42:10 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@gentoo.org> | 2005-07-02 05:42:10 +0000 |
commit | 8efcd03cd427717cf5710a34b2d6370ee3fabd5b (patch) | |
tree | 42f7880df4a2ca42912f6ffcf8a356650667cc06 /dev-php | |
parent | Version bump, closes bug 97675. (diff) | |
download | historical-8efcd03cd427717cf5710a34b2d6370ee3fabd5b.tar.gz historical-8efcd03cd427717cf5710a34b2d6370ee3fabd5b.tar.bz2 historical-8efcd03cd427717cf5710a34b2d6370ee3fabd5b.zip |
Make cache directory not world-writable with regard to bug 96296.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/eaccelerator/ChangeLog | 8 | ||||
-rw-r--r-- | dev-php/eaccelerator/Manifest | 10 | ||||
-rw-r--r-- | dev-php/eaccelerator/eaccelerator-0.9.3-r1.ebuild | 104 | ||||
-rw-r--r-- | dev-php/eaccelerator/files/digest-eaccelerator-0.9.3-r1 | 1 |
4 files changed, 118 insertions, 5 deletions
diff --git a/dev-php/eaccelerator/ChangeLog b/dev-php/eaccelerator/ChangeLog index 02cb4a1f7381..a7def265f4d4 100644 --- a/dev-php/eaccelerator/ChangeLog +++ b/dev-php/eaccelerator/ChangeLog @@ -1,6 +1,12 @@ # 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.13 2005/06/17 08:13:30 sebastian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php/eaccelerator/ChangeLog,v 1.14 2005/07/02 05:42:10 sebastian Exp $ + +*eaccelerator-0.9.3-r1 (02 Jul 2005) + + 02 Jul 2005; Sebastian Bergmann <sebastian@gentoo.org> + +eaccelerator-0.9.3-r1.ebuild: + Make cache directory not world-writable with regard to bug 96296. 17 Jun 2005; Sebastian Bergmann <sebastian@gentoo.org> eaccelerator-0.9.3.ebuild: diff --git a/dev-php/eaccelerator/Manifest b/dev-php/eaccelerator/Manifest index a4fc535ec453..719bc8e0ebe4 100644 --- a/dev-php/eaccelerator/Manifest +++ b/dev-php/eaccelerator/Manifest @@ -1,14 +1,16 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +MD5 a121d1dbc01b231f349030f3a6f1f482 eaccelerator-0.9.3-r1.ebuild 3767 MD5 aca9c39725da3ef714ef2ed59862fc37 eaccelerator-0.9.3.ebuild 3535 -MD5 a6b8dc4540e9fd1a791e24fd67f294ba ChangeLog 2009 +MD5 788945b1a414d54522d06f177caa107f ChangeLog 2206 MD5 34b376f52ca199fffb4e52b83169574a metadata.xml 156 +MD5 543f0982cc0ffa866a7b03985dc77edb files/digest-eaccelerator-0.9.3-r1 70 MD5 543f0982cc0ffa866a7b03985dc77edb files/digest-eaccelerator-0.9.3 70 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFCsoY/aGfFFLhbXWkRAkYKAJwJWwjD/b7eoqXQ9w20S+JcoOWGlACgoEk8 -FvGNV5iXiGPqNsw4HVwBYD4= -=ajeF +iD8DBQFCxilHaGfFFLhbXWkRAjTNAKCgPGs7VlBgqUfw51fGLVmRYM/iHwCgnkPL +oBXzcFYOspA5BQBWzyQG0hI= +=zVc1 -----END PGP SIGNATURE----- diff --git a/dev-php/eaccelerator/eaccelerator-0.9.3-r1.ebuild b/dev-php/eaccelerator/eaccelerator-0.9.3-r1.ebuild new file mode 100644 index 000000000000..547d8c84a47a --- /dev/null +++ b/dev-php/eaccelerator/eaccelerator-0.9.3-r1.ebuild @@ -0,0 +1,104 @@ +# 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.3-r1.ebuild,v 1.1 2005/07/02 05:42:10 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://www.eaccelerator.net/" +SRC_URI="mirror://sourceforge/eaccelerator/${P}.tar.gz" +IUSE="apache2 inode session" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" + +DEPEND="$DEPEND + !dev-php/ioncube_loaders + !dev-php/php-accelerator + !dev-php/PECL-apc" + +HTTPD_USER=root +HTTPD_GROUP=root + +has_version "net-www/apache" && USE_APACHE=1 && inherit webapp-apache +[ -n "${USE_APACHE}" ] && webapp-detect || NO_WEBSERVER=1 + +pkg_setup() { + if [ "${NO_WEBSERVER}" = "1" ]; then + ewarn "No webserver detected - ${EACCELERATOR_CACHEDIR} will be" + ewarn "owned by ${HTTPD_USER} instead" + else + einfo "Configuring cache dir ${EACCELERATOR_CACHEDIR} for ${WEBAPP_SERVER}" + fi +} + +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 use apache2; 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" + + if use !session; then + myconf="${myconf} --without-eaccelerator-sessions" + fi + + if use !inode; then + myconf="${myconf} --without-eaccelerator-use-inode" + fi + + php-ext-source_src_compile +} + +src_install() { + php-ext-source_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 AUTHORS ChangeLog COPYING NEWS README README.eLoader + + php-ext-base_addtoinifiles "eaccelerator.shm_size" '"64"' + 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.debug" '"0"' + php-ext-base_addtoinifiles "eaccelerator.check_mtime" '"1"' + 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"' + php-ext-base_addtoinifiles "eaccelerator.keys" '"shm_and_disk"' + php-ext-base_addtoinifiles "eaccelerator.sessions" '"shm_and_disk"' + php-ext-base_addtoinifiles "eaccelerator.content" '"shm_and_disk"' + php-ext-base_addtoinifiles "eaccelerator.admin.name" '"yourusername"' + php-ext-base_addtoinifiles "eaccelerator.admin.password" '"yourpassword"' +} + +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.3-r1 b/dev-php/eaccelerator/files/digest-eaccelerator-0.9.3-r1 new file mode 100644 index 000000000000..d64d0dc69aef --- /dev/null +++ b/dev-php/eaccelerator/files/digest-eaccelerator-0.9.3-r1 @@ -0,0 +1 @@ +MD5 b17ddf953f18ee6df5c2c24ffccb37d9 eaccelerator-0.9.3.tar.gz 133120 |