Lars Strojny commited on 2006-12-18 21:02:24
Zeige 3 geänderte Dateien mit 106 Einfügungen und 0 Löschungen.
... | ... |
@@ -0,0 +1,8 @@ |
1 |
+DIST xcache-1.2.0-rc2.tar.gz 93411 RMD160 d8804f7cc8d91da77e200319c07a17f4dd56e303 SHA1 a12a5a6fdde8473bbf65d9aeea7f37b46801865c SHA256 d551f9f37974705700fa99dd807fac7bb29efb746d5858cfc39927ea48d6978e |
|
2 |
+EBUILD xcache-1.2.0_rc2.ebuild 2759 RMD160 06fe01aeff276261829200cb905bd6243ec58b38 SHA1 731f1767c30d00d91f3936187e4073045b5bcb77 SHA256 9a1f734e626e8aa7129548d93e678a65a6f8bbabf867acec801ddb3695b10273 |
|
3 |
+MD5 f32fe4f9231aa84baa294bd2c074a8cd xcache-1.2.0_rc2.ebuild 2759 |
|
4 |
+RMD160 06fe01aeff276261829200cb905bd6243ec58b38 xcache-1.2.0_rc2.ebuild 2759 |
|
5 |
+SHA256 9a1f734e626e8aa7129548d93e678a65a6f8bbabf867acec801ddb3695b10273 xcache-1.2.0_rc2.ebuild 2759 |
|
6 |
+MD5 156c03ab46509c24ae48e0c91b292ad7 files/digest-xcache-1.2.0_rc2 247 |
|
7 |
+RMD160 28fa9752ef5f1b3716892b00c5d907e4ea95895c files/digest-xcache-1.2.0_rc2 247 |
|
8 |
+SHA256 42058f1185731ce7e32caaf42752a83fb64db9c3fac9506cc3cd4d8c64f601f4 files/digest-xcache-1.2.0_rc2 247 |
... | ... |
@@ -0,0 +1,95 @@ |
1 |
+PHP_EXT_NAME="xcache" |
|
2 |
+PHP_EXT_INI="yes" |
|
3 |
+PHP_EXT_ZENDEXT="yes" |
|
4 |
+ |
|
5 |
+[[ -z "${X_CACHEDIR}" ]] && X_CACHEDIR="/var/cache/eaccelerator" |
|
6 |
+ |
|
7 |
+inherit php-ext-source-r1 |
|
8 |
+ |
|
9 |
+MY_P="${P/_/-}" |
|
10 |
+MY_PV="${PV/_/-}" |
|
11 |
+S="${WORKDIR}/xcache" |
|
12 |
+ |
|
13 |
+KEYWORDS="~x86 ~amd64" |
|
14 |
+DESCRIPTION="XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load." |
|
15 |
+HOMEPAGE="http://trac.lighttpd.net/xcache" |
|
16 |
+SRC_URI="http://210.51.190.228/pub/XCache/Releases/${MY_P}.tar.gz http://210.51.190.228/pub/XCache/rc/${MY_PV}/${MY_P}.tar.gz" |
|
17 |
+LICENSE="GPL-2" |
|
18 |
+SLOT="0" |
|
19 |
+IUSE="coverage disassembler" |
|
20 |
+ |
|
21 |
+DEPEND="${DEPEND} |
|
22 |
+ !dev-php5/pecl-apc" |
|
23 |
+ |
|
24 |
+# Webserver user and group, here for Apache. |
|
25 |
+HTTPD_USER="apache" |
|
26 |
+HTTPD_GROUP="apache" |
|
27 |
+ |
|
28 |
+need_php_by_category |
|
29 |
+ |
|
30 |
+pkg_setup() { |
|
31 |
+ has_php |
|
32 |
+ |
|
33 |
+ require_php_sapi_from cgi apache apache2 |
|
34 |
+} |
|
35 |
+ |
|
36 |
+src_compile() { |
|
37 |
+ has_php |
|
38 |
+ echo ${S} |
|
39 |
+ echo ${P} |
|
40 |
+ echo ${MY_P} |
|
41 |
+ echo ${WORKDIR} |
|
42 |
+ |
|
43 |
+ my_conf="--enable-xcache --enable-xcache-optimizer --enable-xcache-assembler --enable-xcache-encoder --enable-xcache-decoder" |
|
44 |
+ |
|
45 |
+ if [ use coverage ]; then |
|
46 |
+ my_conf="${my_conf} --enable-xcache-coverager" |
|
47 |
+ else |
|
48 |
+ my_conf="${my_conf} --disable-xcache-coverager" |
|
49 |
+ fi |
|
50 |
+ |
|
51 |
+ if [ use disassembler ]; then |
|
52 |
+ my_conf="${my_conf} --enable-xcache-disassembler" |
|
53 |
+ else |
|
54 |
+ my_conf="${my_conf} --disable-xcache-disassembler" |
|
55 |
+ fi |
|
56 |
+ |
|
57 |
+ php-ext-source-r1_src_compile |
|
58 |
+} |
|
59 |
+ |
|
60 |
+src_install() { |
|
61 |
+ php-ext-source-r1_src_install |
|
62 |
+ |
|
63 |
+ keepdir "${X_CACHEDIR}" |
|
64 |
+ fowners ${HTTPD_USER}:${HTTPD_GROUP} "${X_CACHEDIR}" |
|
65 |
+ fperms 750 "${X_CACHEDIR}" |
|
66 |
+ |
|
67 |
+ insinto "/usr/share/${PN}/admin" |
|
68 |
+ doins admin/* |
|
69 |
+ dodoc-php AUTHORS COPYING NEWS README THANKS |
|
70 |
+ |
|
71 |
+ php-ext-base-r1_addtoinifiles "auto_globals_jit" '"Off"' |
|
72 |
+ php-ext-base-r1_addtoinifiles "xcache.cacher" '"On"' |
|
73 |
+ php-ext-base-r1_addtoinifiles "xcache.size" '"1024"' |
|
74 |
+ php-ext-base-r1_addtoinifiles "xcache.count" '"1"' |
|
75 |
+ php-ext-base-r1_addtoinifiles "xcache.slots" '"128k"' |
|
76 |
+ php-ext-base-r1_addtoinifiles "xcache.ttl" '"0"' |
|
77 |
+ php-ext-base-r1_addtoinifiles "xcache.gc_interval" '"0"' |
|
78 |
+ php-ext-base-r1_addtoinifiles "xcache.var_size" '"1024"' |
|
79 |
+ php-ext-base-r1_addtoinifiles "xcache.var_count" '"1"' |
|
80 |
+ php-ext-base-r1_addtoinifiles "xcache.var_slots" '"128k"' |
|
81 |
+ php-ext-base-r1_addtoinifiles "xcache.var_ttl" '"0"' |
|
82 |
+ php-ext-base-r1_addtoinifiles "xcache.var_maxttl" '"0"' |
|
83 |
+ php-ext-base-r1_addtoinifiles "xcache.var_gc_interval" '"300"' |
|
84 |
+ php-ext-base-r1_addtoinifiles "xcache.readonly_protection" '"Off"' |
|
85 |
+ php-ext-base-r1_addtoinifiles "xcache.mmap_path" '"/tmp/xcache_mmap"' |
|
86 |
+} |
|
87 |
+ |
|
88 |
+pkg_postinst() { |
|
89 |
+ # You only need to restart the webserver if you're using mod_php. |
|
90 |
+ if built_with_use =${PHP_PKG} apache || built_with_use =${PHP_PKG} apache2 || built_with_use =${PHP_PKG} cgi; then |
|
91 |
+ einfo |
|
92 |
+ einfo "You need to restart your Webserver/cgi-php to activate xcache." |
|
93 |
+ einfo |
|
94 |
+ fi |
|
95 |
+} |
|
0 | 96 |