summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2003-07-29 18:45:37 +0000
committerStuart Herbert <stuart@gentoo.org>2003-07-29 18:45:37 +0000
commitf6e285626fbaf2bc43b12eede7444691011a43c1 (patch)
treea469c39f721f1601c606f98db63cd884ae7bb946 /dev-php
parentmask icc useflag on amd64 (diff)
downloadhistorical-f6e285626fbaf2bc43b12eede7444691011a43c1.tar.gz
historical-f6e285626fbaf2bc43b12eede7444691011a43c1.tar.bz2
historical-f6e285626fbaf2bc43b12eede7444691011a43c1.zip
Updated to turck-mmcache 2.3.20
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/turck-mmcache/Manifest4
-rw-r--r--dev-php/turck-mmcache/files/digest-turck-mmcache-2.3.201
-rw-r--r--dev-php/turck-mmcache/turck-mmcache-2.3.20.ebuild67
3 files changed, 70 insertions, 2 deletions
diff --git a/dev-php/turck-mmcache/Manifest b/dev-php/turck-mmcache/Manifest
index a500531bc1df..061d4422cda7 100644
--- a/dev-php/turck-mmcache/Manifest
+++ b/dev-php/turck-mmcache/Manifest
@@ -1,5 +1,5 @@
MD5 77112d52bb3fd03ddad8c11491a9f073 turck-mmcache-2.3.19.ebuild 2150
-MD5 8e8ccd80709d67ff8ee56e06e9f6d1a7 ChangeLog 1418
-MD5 fd38ebe7f12c5cdbca35a64eeaca11f1 turck-mmcache-2.3.20.ebuild 2252
+MD5 6966d915bd0d315e96cb951f004a0cfb ChangeLog 1417
+MD5 edac33b0acc556f80b42b851cc3ff7e8 turck-mmcache-2.3.20.ebuild 2252
MD5 73606cb81a8ce6f7b1b300724ecf7307 files/digest-turck-mmcache-2.3.19 71
MD5 a8528f36796c4b81c6e1a52a1d949876 files/digest-turck-mmcache-2.3.20 72
diff --git a/dev-php/turck-mmcache/files/digest-turck-mmcache-2.3.20 b/dev-php/turck-mmcache/files/digest-turck-mmcache-2.3.20
new file mode 100644
index 000000000000..f986a7ced0e5
--- /dev/null
+++ b/dev-php/turck-mmcache/files/digest-turck-mmcache-2.3.20
@@ -0,0 +1 @@
+MD5 435d19bbabb90e0d26d9250c03a0af65 turck-mmcache-2.3.20.tar.gz 100170
diff --git a/dev-php/turck-mmcache/turck-mmcache-2.3.20.ebuild b/dev-php/turck-mmcache/turck-mmcache-2.3.20.ebuild
new file mode 100644
index 000000000000..7e235625f0c4
--- /dev/null
+++ b/dev-php/turck-mmcache/turck-mmcache-2.3.20.ebuild
@@ -0,0 +1,67 @@
+# 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.20.ebuild,v 1.1 2003/07/29 18:45:17 stuart Exp $
+
+PHP_EXT_NAME="mmcache"
+PHP_EXT_ZENDEXT="yes"
+[ -z "${MMCACHE_CACHEDIR}" ] && MMCACHE_CACHEDIR=/var/cache/mmcache
+inherit php-ext-source
+
+DESCRIPTION="open source PHP accelerator, optimizer, encoder and dynamic content cache"
+HOMEPAGE="http://turck-mmcache.sourceforge.net/"
+SRC_URI="mirror://sourceforge/turck-mmcache/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+src_compile() {
+ myconf="--enable-mmcache=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 ${MMCACHE_CACHEDIR}
+ fowners root.root ${MMCACHE_CACHEDIR}
+ fperms 1777 ${MMCACHE_CACHEDIR}
+
+ insinto /usr/share/${PN}
+ doins encoder.php mmcache.php mmcache.gif
+
+ dodoc CREDITS LICENSE README TODO EXPERIMENTAL
+}
+
+pkg_postinst () {
+
+ php-ext-base_addtoinifiles "mmcache.shm_size" '"16"'
+ php-ext-base_addtoinifiles "mmcache.cache_dir" "\"${MMCACHE_CACHEDIR}\""
+ php-ext-base_addtoinifiles "mmcache.enable" '"1"'
+ php-ext-base_addtoinifiles "mmcache.optimizer" '"1"'
+ php-ext-base_addtoinifiles "mmcache.check_mtime" '"1"'
+ php-ext-base_addtoinifiles "mmcache.debug" '"0"'
+ php-ext-base_addtoinifiles "mmcache.filter" '""'
+ php-ext-base_addtoinifiles "mmcache.shm_max" '"0"'
+ php-ext-base_addtoinifiles "mmcache.shm_ttl" '"0"'
+ php-ext-base_addtoinifiles "mmcache.shm_prune_period" '"0"'
+ php-ext-base_addtoinifiles "mmcache.compress" '"0"'
+
+ einfo "You need to restart apache to activate MMCache"
+ einfo
+ einfo 'A web interface is available to manage the turck cache.'
+ einfo 'Copy /usr/share/turck-mmcache/mmcache.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/turck-mmcache/encoder.php'
+ einfo 'The encoded file format is not yet considered stable'
+}