1 |
olemarkus 11/01/04 13:42:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: eaccelerator-0.9.6.1-r2.ebuild |
5 |
Log: |
6 |
Fixes bug 350450 |
7 |
|
8 |
(Portage version: 2.1.9.28/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.31 dev-php5/eaccelerator/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/eaccelerator/ChangeLog?rev=1.31&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/eaccelerator/ChangeLog?rev=1.31&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/eaccelerator/ChangeLog?r1=1.30&r2=1.31 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v |
20 |
retrieving revision 1.30 |
21 |
retrieving revision 1.31 |
22 |
diff -u -r1.30 -r1.31 |
23 |
--- ChangeLog 4 Jan 2011 08:47:48 -0000 1.30 |
24 |
+++ ChangeLog 4 Jan 2011 13:42:54 -0000 1.31 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-php5/eaccelerator |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.30 2011/01/04 08:47:48 fauli Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.31 2011/01/04 13:42:54 olemarkus Exp $ |
30 |
+ |
31 |
+*eaccelerator-0.9.6.1-r2 (04 Jan 2011) |
32 |
+ |
33 |
+ 04 Jan 2011; Ole Markus With <olemarkus@g.o> |
34 |
+ +eaccelerator-0.9.6.1-r2.ebuild: |
35 |
+ Fixes bug 350450 |
36 |
|
37 |
04 Jan 2011; Christian Faulhammer <fauli@g.o> |
38 |
eaccelerator-0.9.6.1-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-php5/eaccelerator/eaccelerator-0.9.6.1-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: eaccelerator-0.9.6.1-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.6.1-r2.ebuild,v 1.1 2011/01/04 13:42:54 olemarkus Exp $ |
52 |
|
53 |
PHP_EXT_NAME="eaccelerator" |
54 |
PHP_EXT_INI="yes" |
55 |
PHP_EXT_ZENDEXT="no" |
56 |
|
57 |
EAPI="2" |
58 |
|
59 |
[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php5/" |
60 |
|
61 |
inherit php-ext-source-r2 eutils depend.apache |
62 |
|
63 |
KEYWORDS="~amd64 ~x86" |
64 |
|
65 |
DESCRIPTION="A PHP Accelerator & Encoder." |
66 |
HOMEPAGE="http://www.eaccelerator.net/" |
67 |
SRC_URI="http://bart.eaccelerator.net/source/${PV}/${P}.tar.bz2" |
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
IUSE="debug disassembler inode doccommentinclusion session" |
71 |
|
72 |
DEPEND="!dev-php5/pecl-apc !dev-php5/xcache" |
73 |
RDEPEND="${DEPEND} |
74 |
>=dev-lang/php-5.1[zlib,session?] |
75 |
virtual/httpd-php |
76 |
" |
77 |
|
78 |
# Webserver user and group, here for Apache by default |
79 |
HTTPD_USER="${HTTPD_USER:-apache}" |
80 |
HTTPD_GROUP="${HTTPD_GROUP:-apache}" |
81 |
|
82 |
want_apache |
83 |
|
84 |
pkg_setup() { |
85 |
depend.apache_pkg_setup |
86 |
|
87 |
if ! use apache2 ; then |
88 |
if [[ ${HTTPD_USER} == "apache" ]] || [[ ${HTTPD_GROUP} == "apache" ]] ; then |
89 |
eerror "You did not enable apache2 USE flag, so you need to define" |
90 |
eerror "the user and group that will be used for ${PN} yourself." |
91 |
eerror |
92 |
eerror "This should (generally) match the user and group that your webserver uses, e.g.:" |
93 |
eerror "HTTPD_USER=\"lighttpd\" HTTPD_GROUP=\"lighttpd\" if using www-servers/lighttpd" |
94 |
eerror |
95 |
die "Either enable USE=\"apache2\" or re-emerge this with HTTPD_USER and HTTPD_GROUP set" |
96 |
else |
97 |
enewgroup ${HTTPD_GROUP} |
98 |
enewuser ${HTTPD_USER} -1 -1 /var/www ${HTTPD_GROUP} |
99 |
fi |
100 |
fi |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
my_conf="--enable-eaccelerator=shared --with-eaccelerator-userid=`id -u ${HTTPD_USER}`" |
105 |
use debug && my_conf="${my_conf} --with-eaccelerator-debug" |
106 |
use disassembler && my_conf="${my_conf} --with-eaccelerator-disassembler" |
107 |
! use inode && my_conf="${my_conf} --without-eaccelerator-use-inode" |
108 |
use doccommentinclusion && my_conf="${my_conf} --with-eaccelerator-doc-comment-inclusion" |
109 |
php-ext-source-r2_src_compile |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
php-ext-source-r2_src_install |
114 |
|
115 |
keepdir "${EACCELERATOR_CACHEDIR}" |
116 |
fowners ${HTTPD_USER}:${HTTPD_GROUP} "${EACCELERATOR_CACHEDIR}" |
117 |
fperms 750 "${EACCELERATOR_CACHEDIR}" |
118 |
|
119 |
insinto "/usr/share/${PF}" |
120 |
doins -r doc/php/ |
121 |
dodoc AUTHORS ChangeLog NEWS README |
122 |
|
123 |
php-ext-source-r2_addtoinifiles "eaccelerator.shm_size" '"28"' |
124 |
php-ext-source-r2_addtoinifiles "eaccelerator.cache_dir" "\"${EACCELERATOR_CACHEDIR}\"" |
125 |
php-ext-source-r2_addtoinifiles "eaccelerator.enable" '"1"' |
126 |
php-ext-source-r2_addtoinifiles "eaccelerator.optimizer" '"1"' |
127 |
php-ext-source-r2_addtoinifiles "eaccelerator.debug" '"0"' |
128 |
php-ext-source-r2_addtoinifiles ";eaccelerator.log_file" '"/var/log/eaccelerator_log"' |
129 |
php-ext-source-r2_addtoinifiles "eaccelerator.check_mtime" '"1"' |
130 |
php-ext-source-r2_addtoinifiles "eaccelerator.filter" '""' |
131 |
php-ext-source-r2_addtoinifiles "eaccelerator.shm_ttl" '"0"' |
132 |
php-ext-source-r2_addtoinifiles "eaccelerator.shm_prune_period" '"0"' |
133 |
php-ext-source-r2_addtoinifiles "eaccelerator.shm_only" '"0"' |
134 |
php-ext-source-r2_addtoinifiles ";eaccelerator.allowed_admin_path" '"/path/where/admin/files/shall/be/allowed"' |
135 |
} |
136 |
|
137 |
pkg_postinst() { |
138 |
elog "Please see the files in ${ROOT}usr/share/${PF}/ for some" |
139 |
elog "examples and informations on how to use the functions that" |
140 |
elog "eAccelerator adds to PHP." |
141 |
} |