Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-php5/pecl-apc: ChangeLog pecl-apc-3.1.3_p1-r1.ebuild
Date: Thu, 29 Jul 2010 08:28:24
Message-Id: 20100729082815.B59DD2CE15@corvid.gentoo.org
1 mabi 10/07/29 08:28:15
2
3 Modified: ChangeLog
4 Added: pecl-apc-3.1.3_p1-r1.ebuild
5 Log:
6 bug #330093
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.55 dev-php5/pecl-apc/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.55&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/pecl-apc/ChangeLog?rev=1.55&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/pecl-apc/ChangeLog?r1=1.54&r2=1.55
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v
19 retrieving revision 1.54
20 retrieving revision 1.55
21 diff -u -r1.54 -r1.55
22 --- ChangeLog 2 Dec 2009 19:02:54 -0000 1.54
23 +++ ChangeLog 29 Jul 2010 08:28:15 -0000 1.55
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-php5/pecl-apc
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v 1.54 2009/12/02 19:02:54 hanno Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/ChangeLog,v 1.55 2010/07/29 08:28:15 mabi Exp $
30 +
31 +*pecl-apc-3.1.3_p1-r1 (29 Jul 2010)
32 +
33 + 29 Jul 2010; Matti Bickel <mabi@g.o> +pecl-apc-3.1.3_p1-r1.ebuild:
34 + remove no longer recognized apache config option, support building with
35 + fpm (bug #330093)
36
37 *pecl-apc-3.1.3_p1 (02 Dec 2009)
38
39
40
41
42 1.1 dev-php5/pecl-apc/pecl-apc-3.1.3_p1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.1.3_p1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.1.3_p1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pecl-apc-3.1.3_p1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apc/pecl-apc-3.1.3_p1-r1.ebuild,v 1.1 2010/07/29 08:28:15 mabi Exp $
52
53 EAPI=2
54
55 PHP_EXT_NAME="apc"
56 PHP_EXT_PECL_PKG="APC"
57 PHP_EXT_INI="yes"
58 PHP_EXT_ZENDEXT="no"
59 DOCS="CHANGELOG INSTALL NOTICE TECHNOTES.txt TODO"
60
61 inherit php-ext-pecl-r1 confutils eutils
62
63 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
64
65 DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP code."
66 LICENSE="PHP-3.01"
67 SLOT="0"
68 IUSE="mmap"
69
70 DEPEND="!dev-php5/eaccelerator !dev-php5/xcache
71 || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )"
72 RDEPEND="${DEPEND}"
73
74 need_php_by_category
75
76 src_compile() {
77 my_conf="--enable-apc"
78 enable_extension_enable "apc-mmap" "mmap" 0
79
80 php-ext-pecl-r1_src_compile
81 }
82
83 src_install() {
84 php-ext-pecl-r1_src_install
85
86 php-ext-base-r1_addtoinifiles "apc.enabled" '"1"'
87 php-ext-base-r1_addtoinifiles "apc.shm_segments" '"1"'
88 php-ext-base-r1_addtoinifiles "apc.shm_size" '"30"'
89 php-ext-base-r1_addtoinifiles "apc.num_files_hint" '"1024"'
90 php-ext-base-r1_addtoinifiles "apc.ttl" '"7200"'
91 php-ext-base-r1_addtoinifiles "apc.user_ttl" '"7200"'
92 php-ext-base-r1_addtoinifiles "apc.gc_ttl" '"3600"'
93 php-ext-base-r1_addtoinifiles "apc.cache_by_default" '"1"'
94 php-ext-base-r1_addtoinifiles ";apc.filters" '""'
95 php-ext-base-r1_addtoinifiles ";apc.mmap_file_mask" '"/tmp/apcphp5.XXXXXX"'
96 php-ext-base-r1_addtoinifiles "apc.slam_defense" '"0"'
97 php-ext-base-r1_addtoinifiles "apc.file_update_protection" '"2"'
98 php-ext-base-r1_addtoinifiles "apc.enable_cli" '"0"'
99 php-ext-base-r1_addtoinifiles "apc.max_file_size" '"1M"'
100 php-ext-base-r1_addtoinifiles "apc.stat" '"1"'
101 php-ext-base-r1_addtoinifiles "apc.write_lock" '"1"'
102 php-ext-base-r1_addtoinifiles "apc.report_autofilter" '"0"'
103 php-ext-base-r1_addtoinifiles "apc.include_once_override" '"0"'
104 php-ext-base-r1_addtoinifiles "apc.rfc1867" '"0"'
105 php-ext-base-r1_addtoinifiles "apc.rfc1867_prefix" '"upload_"'
106 php-ext-base-r1_addtoinifiles "apc.rfc1867_name" '"APC_UPLOAD_PROGRESS"'
107 php-ext-base-r1_addtoinifiles "apc.rfc1867_freq" '"0"'
108 php-ext-base-r1_addtoinifiles "apc.localcache" '"0"'
109 php-ext-base-r1_addtoinifiles "apc.localcache.size" '"512"'
110 php-ext-base-r1_addtoinifiles "apc.coredump_unmap" '"0"'
111
112 dodir "${PHP_EXT_SHARED_DIR}"
113 insinto "${PHP_EXT_SHARED_DIR}"
114 doins apc.php
115 }
116
117 pkg_postinst() {
118 elog "The apc.php file shipped with this release of PECL-APC was"
119 elog "installed into ${ROOT}usr/share/php5/apc/."
120 }