summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Markus With <olemarkus@gentoo.org>2011-07-22 12:20:48 +0000
committerOle Markus With <olemarkus@gentoo.org>2011-07-22 12:20:48 +0000
commiteed50b4be5ee859ef598663275a0c54f1f5e717f (patch)
tree9a1151871db1340ccae29f410a44f711d8d52f20 /dev-php/pecl-apc
parentFixed a few bugs and added support for supplying custom ini files (diff)
downloadgentoo-2-eed50b4be5ee859ef598663275a0c54f1f5e717f.tar.gz
gentoo-2-eed50b4be5ee859ef598663275a0c54f1f5e717f.tar.bz2
gentoo-2-eed50b4be5ee859ef598663275a0c54f1f5e717f.zip
Supplying custom ini files instead of building one through the ext eclass
(Portage version: 2.1.9.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-php/pecl-apc')
-rw-r--r--dev-php/pecl-apc/ChangeLog10
-rw-r--r--dev-php/pecl-apc/files/pecl-apc.ini11
-rw-r--r--dev-php/pecl-apc/pecl-apc-3.1.9-r1.ebuild45
3 files changed, 64 insertions, 2 deletions
diff --git a/dev-php/pecl-apc/ChangeLog b/dev-php/pecl-apc/ChangeLog
index 316acae057d4..025a06817dbc 100644
--- a/dev-php/pecl-apc/ChangeLog
+++ b/dev-php/pecl-apc/ChangeLog
@@ -1,6 +1,12 @@
-# ChangeLog for dev-php5/pecl-apc
+# ChangeLog for dev-php/pecl-apc
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-apc/ChangeLog,v 1.1 2011/07/22 08:39:21 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-apc/ChangeLog,v 1.2 2011/07/22 12:20:48 olemarkus Exp $
+
+*pecl-apc-3.1.9-r1 (22 Jul 2011)
+
+ 22 Jul 2011; <olemarkus@gentoo.org> +pecl-apc-3.1.9-r1.ebuild,
+ +files/pecl-apc.ini:
+ Supplying custom ini files instead of building one through the ext eclass
*pecl-apc-3.1.9 (15 May 2011)
diff --git a/dev-php/pecl-apc/files/pecl-apc.ini b/dev-php/pecl-apc/files/pecl-apc.ini
new file mode 100644
index 000000000000..97b968db8723
--- /dev/null
+++ b/dev-php/pecl-apc/files/pecl-apc.ini
@@ -0,0 +1,11 @@
+apc.enabled="1"
+apc.shm_segments="1"
+apc.shm_size="30M"
+apc.mmap_file_mask="/tmp/apcphp5.XXXXXX"
+apc.file_update_protection="2"
+apc.enable_cli="0"
+apc.max_file_size="1M"
+apc.stat="1"
+apc.write_lock="1"
+apc.include_once_override="0"
+
diff --git a/dev-php/pecl-apc/pecl-apc-3.1.9-r1.ebuild b/dev-php/pecl-apc/pecl-apc-3.1.9-r1.ebuild
new file mode 100644
index 000000000000..64802beb2de0
--- /dev/null
+++ b/dev-php/pecl-apc/pecl-apc-3.1.9-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-apc/pecl-apc-3.1.9-r1.ebuild,v 1.1 2011/07/22 12:20:48 olemarkus Exp $
+
+EAPI=2
+
+PHP_EXT_NAME="apc"
+PHP_EXT_PECL_PKG="APC"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+DOCS="CHANGELOG INSTALL NOTICE TECHNOTES.txt TODO"
+
+PHP_EXT_INIFILE="${PN}.ini"
+
+inherit php-ext-pecl-r2 confutils eutils
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DESCRIPTION="A free, open, and robust framework for caching and optimizing PHP code."
+LICENSE="PHP-3.01"
+SLOT="0"
+IUSE="mmap"
+
+DEPEND="!dev-php/eaccelerator !dev-php/xcache"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ my_conf="--enable-apc"
+ enable_extension_enable "apc-mmap" "mmap" 0
+
+ php-ext-source-r2_src_configure
+}
+
+src_install() {
+ php-ext-pecl-r2_src_install
+
+ dodir "${PHP_EXT_SHARED_DIR}"
+ insinto "${PHP_EXT_SHARED_DIR}"
+ doins apc.php
+}
+
+pkg_postinst() {
+ elog "The apc.php file shipped with this release of PECL-APC was"
+ elog "installed into ${PHP_EXT_SHARED_DIR}/."
+}