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.18-r1.ebuild
Date: Wed, 07 May 2008 19:54:20
Message-Id: E1JtpiS-00072s-Ow@stork.gentoo.org
1 hoffie 08/05/07 19:54:16
2
3 Modified: ChangeLog
4 Added: pecl-apc-3.0.18-r1.ebuild
5 Log:
6 update ini settings (thanks to Lars Strojny <lars@×××××××.net> for pointing that out in #gentoo-php)
7 (Portage version: 2.1.5_rc7)
8
9 Revision Changes Path
10 1.46 dev-php5/pecl-apc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.46&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.46&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/ChangeLog?r1=1.45&r2=1.46
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v
19 retrieving revision 1.45
20 retrieving revision 1.46
21 diff -u -r1.45 -r1.46
22 --- ChangeLog 7 May 2008 16:29:32 -0000 1.45
23 +++ ChangeLog 7 May 2008 19:54:16 -0000 1.46
24 @@ -1,6 +1,14 @@
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.45 2008/05/07 16:29:32 hoffie Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v 1.46 2008/05/07 19:54:16 hoffie Exp $
29 +
30 +*pecl-apc-3.0.18-r1 (07 May 2008)
31 +
32 + 07 May 2008; Christian Hoffmann <hoffie@g.o>
33 + +pecl-apc-3.0.18-r1.ebuild:
34 + update ini settings (drop optimizer as it is simply ignored, add options
35 + which upstream recently added, thanks to Lars Strojny <lars@×××××××.net>
36 + for pointing that out in #gentoo-php)
37
38 07 May 2008; Christian Hoffmann <hoffie@g.o>
39 pecl-apc-3.0.16.ebuild, pecl-apc-3.0.16-r1.ebuild:
40
41
42
43 1.1 dev-php5/pecl-apc/pecl-apc-3.0.18-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.18-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.18-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pecl-apc-3.0.18-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.0.18-r1.ebuild,v 1.1 2008/05/07 19:54:16 hoffie Exp $
53
54 PHP_EXT_NAME="apc"
55 PHP_EXT_PECL_PKG="APC"
56 PHP_EXT_INI="yes"
57 PHP_EXT_ZENDEXT="no"
58 DOCS="CHANGELOG INSTALL NOTICE TECHNOTES.txt TODO"
59
60 inherit php-ext-pecl-r1 confutils eutils
61
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
63
64 DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP code."
65 LICENSE="PHP-3.01"
66 SLOT="0"
67 IUSE="mmap"
68
69 DEPEND="!dev-php5/eaccelerator !dev-php5/xcache"
70 RDEPEND="${DEPEND}"
71
72 need_php_by_category
73
74 pkg_setup() {
75 require_php_sapi_from cgi apache2
76 }
77
78 src_compile() {
79 has_php
80
81 my_conf="--enable-apc"
82 enable_extension_enable "apc-mmap" "mmap" 0
83 enable_extension_with_built_with =${PHP_PKG} apache2 apxs /usr/sbin/apxs2 "optimisation for apache2"
84
85 php-ext-pecl-r1_src_compile
86 }
87
88 src_install() {
89 php-ext-pecl-r1_src_install
90
91 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
92 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
93 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
94 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1024"'
95 php-ext-base-r1_addtoinifiles "apc.ttl" '"7200"'
96 php-ext-base-r1_addtoinifiles "apc.user_ttl" '"7200"'
97 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
98 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
99 php-ext-base-r1_addtoinifiles ";apc.filters" '""'
100 php-ext-base-r1_addtoinifiles ";apc.mmap_file_mask" '"/tmp/apcphp5.XXXXXX"'
101 php-ext-base-r1_addtoinifiles "apc.slam_defense" '"0"'
102 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
103 php-ext-base-r1_addtoinifiles "apc.enable_cli" '"0"'
104 php-ext-base-r1_addtoinifiles "apc.max_file_size" '"1M"'
105 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
106 php-ext-base-r1_addtoinifiles "apc.write_lock" '"1"'
107 php-ext-base-r1_addtoinifiles "apc.report_autofilter" '"0"'
108 php-ext-base-r1_addtoinifiles "apc.include_once_override" '"0"'
109 php-ext-base-r1_addtoinifiles "apc.rfc1867" '"0"'
110 php-ext-base-r1_addtoinifiles "apc.rfc1867_prefix" '"upload_"'
111 php-ext-base-r1_addtoinifiles "apc.rfc1867_name" '"APC_UPLOAD_PROGRESS"'
112 php-ext-base-r1_addtoinifiles "apc.rfc1867_freq" '"0"'
113 php-ext-base-r1_addtoinifiles "apc.localcache" '"0"'
114 php-ext-base-r1_addtoinifiles "apc.localcache.size" '"512"'
115 php-ext-base-r1_addtoinifiles "apc.coredump_unmap" '"0"'
116
117 dodir "${PHP_EXT_SHARED_DIR}"
118 insinto "${PHP_EXT_SHARED_DIR}"
119 doins apc.php
120 }
121
122 pkg_postinst() {
123 elog "The apc.php file shipped with this release of PECL-APC was"
124 elog "installed into ${ROOT}usr/share/php5/apc/."
125 }
126
127
128
129 --
130 gentoo-commits@l.g.o mailing list