diff options
author | Stuart Herbert <stuart@gentoo.org> | 2003-07-19 07:53:09 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2003-07-19 07:53:09 +0000 |
commit | 5e4f32c3f0217f05bd73d879169c58ea6aeeafb1 (patch) | |
tree | ef771f05f512be5c63ec8bce416d9a70e03f1976 /dev-php/turck-mmcache | |
parent | Added fix and keywords for hppa. (diff) | |
download | gentoo-2-5e4f32c3f0217f05bd73d879169c58ea6aeeafb1.tar.gz gentoo-2-5e4f32c3f0217f05bd73d879169c58ea6aeeafb1.tar.bz2 gentoo-2-5e4f32c3f0217f05bd73d879169c58ea6aeeafb1.zip |
Cache directory setup improvements
Diffstat (limited to 'dev-php/turck-mmcache')
-rw-r--r-- | dev-php/turck-mmcache/ChangeLog | 9 | ||||
-rw-r--r-- | dev-php/turck-mmcache/Manifest | 4 | ||||
-rw-r--r-- | dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild | 21 |
3 files changed, 24 insertions, 10 deletions
diff --git a/dev-php/turck-mmcache/ChangeLog b/dev-php/turck-mmcache/ChangeLog index d2fb8e7fdd8e..1844d6686d0c 100644 --- a/dev-php/turck-mmcache/ChangeLog +++ b/dev-php/turck-mmcache/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/ipv6tools # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/turck-mmcache/ChangeLog,v 1.1 2003/07/19 07:33:17 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php/turck-mmcache/ChangeLog,v 1.2 2003/07/19 07:52:51 stuart Exp $ + +*turck-mmcache-2.3.19 (19 07 2003) + + 19 07 2003: Stuart Herbert <stuart@gentoo.org> turck-mmcache-2.3.19.ebuild + Moved cache dir from /tmp/mmcache to /var/cache/mmcache, and changed + permissions to make sure (on multi-user machines) that cache files can't + be replaced to inject other code *turck-mmcache-2.3.19 (11 07 2003) diff --git a/dev-php/turck-mmcache/Manifest b/dev-php/turck-mmcache/Manifest index a69ab04c7200..b60572a4132f 100644 --- a/dev-php/turck-mmcache/Manifest +++ b/dev-php/turck-mmcache/Manifest @@ -1,3 +1,3 @@ -MD5 b7abe1bf89e0a7c690582d9a691c060d turck-mmcache-2.3.19.ebuild 2266 -MD5 492df5da6b9927a2b97a7e9f55f02f85 ChangeLog 409 +MD5 b6ff19f067e360b75c0ad69761789ac3 turck-mmcache-2.3.19.ebuild 2477 +MD5 776002d4853e11914bfef4922ca0e149 ChangeLog 704 MD5 73606cb81a8ce6f7b1b300724ecf7307 files/digest-turck-mmcache-2.3.19 71 diff --git a/dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild b/dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild index da61a85c972e..880f9bafe86e 100644 --- a/dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild +++ b/dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild,v 1.1 2003/07/19 07:33:17 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php/turck-mmcache/turck-mmcache-2.3.19.ebuild,v 1.2 2003/07/19 07:52:51 stuart Exp $ DESCRIPTION="Turck MMCache is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. Also it uses some optimizations to speed up execution of PHP scripts. Turck MMCache typically reduces server load and increases the speed of your PHP code by 1-10 times." SRC_URI="mirror://sourceforge/turck-mmcache/${P}.tar.gz" @@ -25,13 +25,20 @@ src_install() { php-ext_src_install - #create Cache dir if it does not exist - if [ ! -d /tmp/mmcache ] + # 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 + + if [ ! -d /var/cache/mmcache ] then - mkdir /tmp/mmcache + mkdir /var/cache/mmcache fi - # doesn't hurt :) - chmod 0777 /tmp/mmcache + chown root.root /var/cache/mmcache + chmod 1777 /var/cache/mmcache insinto /usr/share/${PN} doins encoder.php mmcache.php mmcache.gif @@ -43,7 +50,7 @@ pkg_postinst () { php-ext_pkg_postinst php-ext_addtoinifiles "mmcache.shm_size" '"16"' - php-ext_addtoinifiles "mmcache.cache_dir" '"/tmp/mmcache"' + php-ext_addtoinifiles "mmcache.cache_dir" '"/var/cache/mmcache"' php-ext_addtoinifiles "mmcache.enable" '"1"' php-ext_addtoinifiles "mmcache.optimizer" '"1"' php-ext_addtoinifiles "mmcache.check_mtime" '"1"' |