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