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.16-r1.ebuild
Date: Fri, 28 Mar 2008 19:19:46
Message-Id: E1JfK74-0003Lu-TY@stork.gentoo.org
1 hoffie 08/03/28 19:19:42
2
3 Modified: ChangeLog
4 Added: pecl-apc-3.0.16-r1.ebuild
5 Log:
6 addpecl-apc-3.0.16-r1, including a fix for CVE-2008-1488, since 3.0.17 causes segfaults (thanks to jakub)
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.39 dev-php5/pecl-apc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.39&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.39&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?r1=1.38&r2=1.39
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v
19 retrieving revision 1.38
20 retrieving revision 1.39
21 diff -u -r1.38 -r1.39
22 --- ChangeLog 25 Mar 2008 22:51:57 -0000 1.38
23 +++ ChangeLog 28 Mar 2008 19:19:42 -0000 1.39
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.38 2008/03/25 22:51:57 hoffie Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v 1.39 2008/03/28 19:19:42 hoffie Exp $
29 +
30 + 28 Mar 2008; Jakub Moc <jakub@g.o>
31 + +files/pecl-apc-3.0.16-CVE-2008-1488.patch,
32 + +pecl-apc-3.0.16-r1.ebuild:
33 + Add patched 3.0.16 for CVE-2008-1488 since 3.0.17 causes segfaults.
34
35 25 Mar 2008; Jakub Moc <jakub@g.o>
36 +pecl-apc-3.0.17.ebuild:
37
38
39
40 1.1 dev-php5/pecl-apc/pecl-apc-3.0.16-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.16-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.16-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: pecl-apc-3.0.16-r1.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.16-r1.ebuild,v 1.1 2008/03/28 19:19:42 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 has_php
73 require_php_sapi_from cgi apache2
74 }
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79
80 # patch for CVE-2008-1488, Bug 214576
81 epatch "${FILESDIR}"/${P}-CVE-2008-1488.patch
82 # http://pecl.php.net/bugs/bug.php?id=12777, Bug 204224
83 epatch "${FILESDIR}"/${P}-apc_set_signals.patch
84 }
85
86 src_compile() {
87 has_php
88
89 my_conf="--enable-apc"
90 enable_extension_enable "apc-mmap" "mmap" 0
91 enable_extension_with_built_with =${PHP_PKG} apache2 apxs /usr/sbin/apxs2 "optimisation for apache2"
92
93 php-ext-pecl-r1_src_compile
94 }
95
96 src_install() {
97 php-ext-pecl-r1_src_install
98
99 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
100 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
101 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
102 php-ext-base-r1_addtoinifiles "apc.optimization" '"0"'
103 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1024"'
104 php-ext-base-r1_addtoinifiles "apc.ttl" '"7200"'
105 php-ext-base-r1_addtoinifiles "apc.user_ttl" '"7200"'
106 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
107 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
108 php-ext-base-r1_addtoinifiles ";apc.mmap_file_mask" '"/tmp/apcphp5.XXXXXX"'
109 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
110 php-ext-base-r1_addtoinifiles "apc.enable_cli" '"0"'
111 php-ext-base-r1_addtoinifiles "apc.max_file_size" '"1M"'
112 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
113 php-ext-base-r1_addtoinifiles "apc.write_lock" '"1"'
114
115 dodir "${PHP_EXT_SHARED_DIR}"
116 insinto "${PHP_EXT_SHARED_DIR}"
117 doins apc.php
118 }
119
120 pkg_postinst() {
121 elog "The apc.php file shipped with this release of PECL-APC was"
122 elog "installed into ${ROOT}usr/share/php5/apc/."
123 }
124
125
126
127 --
128 gentoo-commits@l.g.o mailing list