Bernd Wurst commited on 2007-03-08 15:19:15
Zeige 4 geänderte Dateien mit 0 Einfügungen und 107 Löschungen.
| ... | ... |
@@ -1,8 +0,0 @@ |
| 1 |
-DIST xcache-1.1-rc2.tar.gz 86640 RMD160 a0c8236540b33aafefd2e30de0557fb45444f561 SHA1 5686d99c8186e576f9dc5e113e80d480cbceda8e SHA256 890c9b8a99ff0e2792bdde46107af3ef84d65172f9f81098aa9b512b5579f33f |
|
| 2 |
-EBUILD xcache-1.1_rc2.ebuild 2719 RMD160 f810d27a3a8ac88c60b9eafd384623e6df546011 SHA1 c3a3dc7e969146b60f6bf59a47ed05c7079f480e SHA256 294f3fa828735a49f50ea2cc094da692a7d7076ba6558dc5321949b9fb045dcd |
|
| 3 |
-MD5 cd5708e84832800507b321427b55d1e5 xcache-1.1_rc2.ebuild 2719 |
|
| 4 |
-RMD160 f810d27a3a8ac88c60b9eafd384623e6df546011 xcache-1.1_rc2.ebuild 2719 |
|
| 5 |
-SHA256 294f3fa828735a49f50ea2cc094da692a7d7076ba6558dc5321949b9fb045dcd xcache-1.1_rc2.ebuild 2719 |
|
| 6 |
-MD5 0ce0fa16e08830f4616002f071c9cb8b files/digest-xcache-1.1_rc2 241 |
|
| 7 |
-RMD160 20cf2186ee95303da73efad31b47773eab0a3f9f files/digest-xcache-1.1_rc2 241 |
|
| 8 |
-SHA256 88a3ec953b7998c2ae2e3a6be934d30fb68eeed3bd585158f0290a60666a43d0 files/digest-xcache-1.1_rc2 241 |
| ... | ... |
@@ -1,94 +0,0 @@ |
| 1 |
-# Copyright 1999-2006 Gentoo Foundation |
|
| 2 |
-# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
- |
|
| 4 |
-PHP_EXT_NAME="xcache" |
|
| 5 |
-PHP_EXT_INI="yes" |
|
| 6 |
-PHP_EXT_ZENDEXT="yes" |
|
| 7 |
- |
|
| 8 |
- |
|
| 9 |
-inherit php-ext-source-r1 confutils |
|
| 10 |
- |
|
| 11 |
-KEYWORDS="~amd64" |
|
| 12 |
-DESCRIPTION="Another PHP opcode cache and encoder" |
|
| 13 |
-HOMEPAGE="http://trac.lighttpd.net/xcache/" |
|
| 14 |
- |
|
| 15 |
-MY_PV=${PV/_rc/-rc}
|
|
| 16 |
-SRC_URI="http://210.51.190.228/pub/XCache/rc/${MY_PV}/${PN}-${MY_PV}.tar.gz"
|
|
| 17 |
-LICENSE="BSD" |
|
| 18 |
-SLOT="0" |
|
| 19 |
-IUSE="test" |
|
| 20 |
-DEPEND="${DEPEND}
|
|
| 21 |
- !dev-php5/pecl-apc |
|
| 22 |
- !dev-php5/eaccelerator" |
|
| 23 |
-S="${WORKDIR}/${PN}"
|
|
| 24 |
- |
|
| 25 |
-need_php_by_category |
|
| 26 |
- |
|
| 27 |
-pkg_setup() {
|
|
| 28 |
- has_php |
|
| 29 |
- require_php_sapi_from cgi apache apache2 |
|
| 30 |
-} |
|
| 31 |
- |
|
| 32 |
-src_unpack() {
|
|
| 33 |
- unpack ${A}
|
|
| 34 |
- cd ${S}
|
|
| 35 |
- has_hardenedphp && epatch "${FILESDIR}"/${P}-hardening-0.4.11.patch
|
|
| 36 |
-} |
|
| 37 |
- |
|
| 38 |
-src_compile() {
|
|
| 39 |
- has_php |
|
| 40 |
- |
|
| 41 |
- my_conf="--enable-xcache=shared \ |
|
| 42 |
- --enable-xcache-constant \ |
|
| 43 |
- --enable-xcache-optimizer \ |
|
| 44 |
- --enable-xcache-coverager \ |
|
| 45 |
- --enable-xcache-assembler \ |
|
| 46 |
- --enable-xcache-encoder \ |
|
| 47 |
- --enable-xcache-decoder \ |
|
| 48 |
- $(use_enable test xcache-test)" |
|
| 49 |
- |
|
| 50 |
- einfo ${my_conf}
|
|
| 51 |
- |
|
| 52 |
- enable_extension_with_built_with =${PHP_PKG} apache2 apxs2 /usr/sbin/apxs2 "optimisation for apache2"
|
|
| 53 |
- enable_extension_with_built_with =${PHP_PKG} apache apxs /usr/sbin/apxs "optimisation for apache1"
|
|
| 54 |
- |
|
| 55 |
- php-ext-source-r1_src_compile |
|
| 56 |
-} |
|
| 57 |
- |
|
| 58 |
-src_install() {
|
|
| 59 |
- php-ext-source-r1_src_install |
|
| 60 |
- dodoc-php AUTHORS CHANGELOG INSTALL COPYING |
|
| 61 |
- php-ext-base-r1_addtoinifiles "auto_globals_jit" '"0"' |
|
| 62 |
- php-ext-base-r1_addtoinifiles "xcache.cacher" '"1"' |
|
| 63 |
- php-ext-base-r1_addtoinifiles "xcache.size" '"10M"' |
|
| 64 |
- php-ext-base-r1_addtoinifiles "xcache.count" '"1"' |
|
| 65 |
- php-ext-base-r1_addtoinifiles "xcache.slots" '"8k"' |
|
| 66 |
- php-ext-base-r1_addtoinifiles "xcache.var_size" '"0"' |
|
| 67 |
- php-ext-base-r1_addtoinifiles "xcache.var_count" '"1"' |
|
| 68 |
- php-ext-base-r1_addtoinifiles "xcache.readonly_protection" '"0"' |
|
| 69 |
- php-ext-base-r1_addtoinifiles "xcache.mmap_path" '"/dev/zero"' |
|
| 70 |
- php-ext-base-r1_addtoinifiles "xcache.optimizer" '"1"' |
|
| 71 |
- php-ext-base-r1_addtoinifiles "xcache.coveragedump_directory" '"/tmp/xcache-coverage-data"' |
|
| 72 |
- php-ext-base-r1_addtoinifiles "xcache.coveragedumper" '"1"' |
|
| 73 |
- |
|
| 74 |
- |
|
| 75 |
- dodir "${PHP_EXT_SHARED_DIR}"
|
|
| 76 |
- insinto "${PHP_EXT_SHARED_DIR}"
|
|
| 77 |
- doins Decompiler.class.php |
|
| 78 |
- insinto "${PHP_EXT_SHARED_DIR}/admin"
|
|
| 79 |
- doins admin/* |
|
| 80 |
-} |
|
| 81 |
- |
|
| 82 |
-pkg_postinst() {
|
|
| 83 |
- einfo "Decompiler.class.php and the admin/ directory shipped with this" |
|
| 84 |
- einfo "release were installed into /usr/share/php5/xcache/." |
|
| 85 |
- echo |
|
| 86 |
- |
|
| 87 |
- if built_with_use =${PHP_PKG} apache || built_with_use =${PHP_PKG} apache2 ; then
|
|
| 88 |
- einfo "You need to restart your Apache webserver to activate xcache." |
|
| 89 |
- echo |
|
| 90 |
- fi |
|
| 91 |
- |
|
| 92 |
- einfo "See http://trac.lighttpd.net/xcache/wiki/XcacheApi for a list" |
|
| 93 |
- einfo "of PHP functions available trough xcache" |
|
| 94 |
-} |
|
| 95 | 0 |