Gentoo Archives: gentoo-commits

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