Gentoo Archives: gentoo-commits

From: "Christian Hoffmann (hoffie)" <hoffie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-php5/pecl-apc: ChangeLog pecl-apc-3.0.17.ebuild
Date: Tue, 25 Mar 2008 22:52:01
Message-Id: E1JeHzq-0006aM-Fk@stork.gentoo.org
1 hoffie 08/03/25 22:51:58
2
3 Modified: ChangeLog
4 Added: pecl-apc-3.0.17.ebuild
5 Log:
6 version bump to 3.0.17, mainly to address security bug 214576 (CVE-2008-1488); thanks to jakub
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.38 dev-php5/pecl-apc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 2 Mar 2008 14:46:38 -0000 1.37
23 +++ ChangeLog 25 Mar 2008 22:51:57 -0000 1.38
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-php5/pecl-apc
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v 1.37 2008/03/02 14:46:38 philantrop Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v 1.38 2008/03/25 22:51:57 hoffie Exp $
29 +
30 + 25 Mar 2008; Jakub Moc <jakub@g.o>
31 + +pecl-apc-3.0.17.ebuild:
32 + Version bump, fixes CVE-2008-1488 - see Bug 214576. Also fixing some
33 + memory leaks and apc_add() cache expunge bug.
34
35 02 Mar 2008; Wulf C. Krueger <philantrop@g.o>
36 pecl-apc-3.0.16.ebuild:
37
38
39
40 1.1 dev-php5/pecl-apc/pecl-apc-3.0.17.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.17.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.17.ebuild?rev=1.1&content-type=text/plain
44
45 Index: pecl-apc-3.0.17.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.17.ebuild,v 1.1 2008/03/25 22:51:57 hoffie Exp $
50
51 PHP_EXT_NAME="apc"
52 PHP_EXT_PECL_PKG="APC"
53 PHP_EXT_INI="yes"
54 PHP_EXT_ZENDEXT="no"
55 DOCS="CHANGELOG INSTALL NOTICE TECHNOTES.txt TODO"
56
57 inherit php-ext-pecl-r1 confutils eutils
58
59 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
60
61 DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP code."
62 LICENSE="PHP-3.01"
63 SLOT="0"
64 IUSE="mmap"
65
66 DEPEND="!dev-php5/eaccelerator !dev-php5/xcache"
67 RDEPEND="${DEPEND}"
68
69 need_php_by_category
70
71 pkg_setup() {
72 require_php_sapi_from cgi apache2
73 }
74
75 src_compile() {
76 has_php
77
78 my_conf="--enable-apc"
79 enable_extension_enable "apc-mmap" "mmap" 0
80 enable_extension_with_built_with =${PHP_PKG} apache2 apxs /usr/sbin/apxs2 "optimisation for apache2"
81
82 php-ext-pecl-r1_src_compile
83 }
84
85 src_install() {
86 php-ext-pecl-r1_src_install
87
88 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
89 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
90 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
91 php-ext-base-r1_addtoinifiles "apc.optimization" '"0"'
92 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1024"'
93 php-ext-base-r1_addtoinifiles "apc.ttl" '"7200"'
94 php-ext-base-r1_addtoinifiles "apc.user_ttl" '"7200"'
95 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
96 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
97 php-ext-base-r1_addtoinifiles ";apc.mmap_file_mask" '"/tmp/apcphp5.XXXXXX"'
98 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
99 php-ext-base-r1_addtoinifiles "apc.enable_cli" '"0"'
100 php-ext-base-r1_addtoinifiles "apc.max_file_size" '"1M"'
101 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
102 php-ext-base-r1_addtoinifiles "apc.write_lock" '"1"'
103
104 dodir "${PHP_EXT_SHARED_DIR}"
105 insinto "${PHP_EXT_SHARED_DIR}"
106 doins apc.php
107 }
108
109 pkg_postinst() {
110 elog "The apc.php file shipped with this release of PECL-APC was"
111 elog "installed into ${ROOT}usr/share/php5/apc/."
112 }
113
114
115
116 --
117 gentoo-commits@l.g.o mailing list