From d5e21554a72482e7ed9abf97a853b783a8bb689f Mon Sep 17 00:00:00 2001 From: Micha Glave Date: Thu, 6 Dec 2012 14:52:50 +0100 Subject: [PATCH] php-5.2.17 for legacy systems - dont use for production --- dev-lang/php/ChangeLog | 2297 +++++++++++++++++ dev-lang/php/Manifest | 38 + dev-lang/php/files/20php5-envd | 2 + dev-lang/php/files/70_mod_php5.conf-apache2 | 14 + .../php/files/70_mod_php5.conf-apache2-r1 | 17 + dev-lang/php/files/eblits/common-v1.eblit | 9 + dev-lang/php/files/eblits/common-v2.eblit | 9 + .../php/files/eblits/pkg_postinst-v1.eblit | 83 + .../php/files/eblits/pkg_postinst-v2.eblit | 62 + dev-lang/php/files/eblits/pkg_setup-v1.eblit | 23 + dev-lang/php/files/eblits/pkg_setup-v2.eblit | 16 + dev-lang/php/files/eblits/pkg_setup-v3.eblit | 9 + .../php/files/eblits/src_compile-v1.eblit | 60 + .../eblits/src_configure-snapshots.eblit | 268 ++ .../php/files/eblits/src_configure-v1.eblit | 280 ++ .../php/files/eblits/src_configure-v2.eblit | 276 ++ .../php/files/eblits/src_configure-v3.eblit | 260 ++ .../php/files/eblits/src_configure-v521.eblit | 273 ++ .../php/files/eblits/src_install-v1.eblit | 160 ++ .../php/files/eblits/src_install-v2.eblit | 168 ++ .../php/files/eblits/src_install-v3.eblit | 139 + .../files/eblits/src_prepare-snapshots.eblit | 60 + .../php/files/eblits/src_prepare-v2.eblit | 71 + .../php/files/eblits/src_prepare-v3.eblit | 73 + .../php/files/eblits/src_prepare-v4.eblit | 62 + dev-lang/php/files/eblits/src_test-v1.eblit | 54 + dev-lang/php/files/php-fpm-gentooified.patch | 55 + dev-lang/php/files/php-fpm-r0.conf | 310 +++ dev-lang/php/files/php-fpm-r1.conf | 311 +++ dev-lang/php/files/php-fpm-r3.init | 40 + dev-lang/php/files/php-fpm-r4.init | 41 + dev-lang/php/files/php-fpm.conf | 310 +++ dev-lang/php/files/php-fpm.init | 22 + dev-lang/php/files/php5-ldvs | 1 + dev-lang/php/metadata.xml | 32 + dev-lang/php/php-5.2.17.ebuild | 331 +++ 36 files changed, 6236 insertions(+) create mode 100644 dev-lang/php/ChangeLog create mode 100644 dev-lang/php/Manifest create mode 100644 dev-lang/php/files/20php5-envd create mode 100644 dev-lang/php/files/70_mod_php5.conf-apache2 create mode 100644 dev-lang/php/files/70_mod_php5.conf-apache2-r1 create mode 100644 dev-lang/php/files/eblits/common-v1.eblit create mode 100644 dev-lang/php/files/eblits/common-v2.eblit create mode 100644 dev-lang/php/files/eblits/pkg_postinst-v1.eblit create mode 100644 dev-lang/php/files/eblits/pkg_postinst-v2.eblit create mode 100644 dev-lang/php/files/eblits/pkg_setup-v1.eblit create mode 100644 dev-lang/php/files/eblits/pkg_setup-v2.eblit create mode 100644 dev-lang/php/files/eblits/pkg_setup-v3.eblit create mode 100644 dev-lang/php/files/eblits/src_compile-v1.eblit create mode 100644 dev-lang/php/files/eblits/src_configure-snapshots.eblit create mode 100644 dev-lang/php/files/eblits/src_configure-v1.eblit create mode 100644 dev-lang/php/files/eblits/src_configure-v2.eblit create mode 100644 dev-lang/php/files/eblits/src_configure-v3.eblit create mode 100644 dev-lang/php/files/eblits/src_configure-v521.eblit create mode 100644 dev-lang/php/files/eblits/src_install-v1.eblit create mode 100644 dev-lang/php/files/eblits/src_install-v2.eblit create mode 100644 dev-lang/php/files/eblits/src_install-v3.eblit create mode 100644 dev-lang/php/files/eblits/src_prepare-snapshots.eblit create mode 100644 dev-lang/php/files/eblits/src_prepare-v2.eblit create mode 100644 dev-lang/php/files/eblits/src_prepare-v3.eblit create mode 100644 dev-lang/php/files/eblits/src_prepare-v4.eblit create mode 100644 dev-lang/php/files/eblits/src_test-v1.eblit create mode 100644 dev-lang/php/files/php-fpm-gentooified.patch create mode 100644 dev-lang/php/files/php-fpm-r0.conf create mode 100644 dev-lang/php/files/php-fpm-r1.conf create mode 100755 dev-lang/php/files/php-fpm-r3.init create mode 100755 dev-lang/php/files/php-fpm-r4.init create mode 100644 dev-lang/php/files/php-fpm.conf create mode 100755 dev-lang/php/files/php-fpm.init create mode 100644 dev-lang/php/files/php5-ldvs create mode 100644 dev-lang/php/metadata.xml create mode 100644 dev-lang/php/php-5.2.17.ebuild diff --git a/dev-lang/php/ChangeLog b/dev-lang/php/ChangeLog new file mode 100644 index 0000000..be6c8a4 --- /dev/null +++ b/dev-lang/php/ChangeLog @@ -0,0 +1,2297 @@ +# ChangeLog for dev-lang/php +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.514 2011/09/16 07:06:16 olemarkus Exp $ + + 16 Sep 2011; Ole Markus With -php-5.3.6.ebuild, + -php-5.3.6-r1.ebuild, -php-5.3.7_rc5.ebuild, -php-5.4.0_alpha3.ebuild: + Removed older versions + +*php-5.4.0_beta1 (16 Sep 2011) + + 16 Sep 2011; Ole Markus With +php-5.4.0_beta1.ebuild: + Bump 5.4 to beta1 + + 16 Sep 2011; Ole Markus With + files/eblits/src_configure-v3.eblit, files/eblits/src_install-v3.eblit, + php-5.4.0_alpha3.ebuild: + Remove deps on phpconfutils and php-common-r1 + + 03 Sep 2011; Raúl Porcel php-5.3.8.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #372745 + + 28 Aug 2011; Markus Meier php-5.3.8.ebuild: + arm stable, bug #372745 + + 26 Aug 2011; Markos Chandras php-5.3.8.ebuild: + Stable on amd64 wrt bug #372745 + + 26 Aug 2011; Ole Markus With metadata.xml: + Removed older versions + + 26 Aug 2011; Thomas Kahle php-5.3.8.ebuild: + x86 stable per bug 372745 + + 25 Aug 2011; Kacper Kowalik php-5.3.8.ebuild: + ppc/ppc64 stable wrt #372745 + + 25 Aug 2011; Jeroen Roovers php-5.3.8.ebuild: + Stable for HPPA (bug #372745). + +*php-5.3.8 (24 Aug 2011) + + 24 Aug 2011; Ole Markus With +php-5.3.8.ebuild: + Version bump + + 22 Aug 2011; Ole Markus With + files/eblits/pkg_postinst-v1.eblit, php-5.2.17.ebuild: + Disable installing suhosin extension on use suhosin for 5.2.17. Should always + be installed manually. Same behaviour as all other versions of php + + 21 Aug 2011; Ole Markus With -php-5.3.7_rc2.ebuild, + -php-5.3.7_rc3.ebuild, -php-5.3.7.ebuild, -php-5.4.0_alpha1.ebuild, + -php-5.5.0_pre201105211430.ebuild: + Removed older alphas and rcs + + 21 Aug 2011; Ole Markus With + -files/eblits/src_configure-v52.eblit, -php-5.2.14.ebuild, + -php-5.3.3-r1.ebuild, +php-5.3.7.ebuild, -files/eblits/src_prepare-v1.eblit: + Removed all php:5 ebuilds (bug 363809) + +*php-5.3.7 (18 Aug 2011) + + 18 Aug 2011; Ole Markus With +php-5.3.7.ebuild: + Version bump + +*php-5.3.7_rc5 (12 Aug 2011) + + 12 Aug 2011; Ole Markus With +php-5.3.7_rc5.ebuild: + Bumped RC for 5.3.7 + +*php-5.4.0_alpha3 (08 Aug 2011) + + 08 Aug 2011; Ole Markus With +php-5.4.0_alpha3.ebuild: + Bumping 5.4 to alpha3 + + 26 Jul 2011; files/eblits/pkg_postinst-v2.eblit: + Removed some unnecessary warnings + +*php-5.3.7_rc3 (23 Jul 2011) + + 23 Jul 2011; Ole Markus With +files/php-fpm-r0.conf, + +files/php-fpm-r1.conf, +files/php-fpm-r4.init, + files/eblits/src_install-v2.eblit, +php-5.3.7_rc3.ebuild: + New rc. Includes new init script with better pid handling + + 20 Jul 2011; files/eblits/src_install-v3.eblit: + Removed some 'security' fixes for php.ini. + + 02 Jul 2011; Ole Markus With + +files/eblits/pkg_setup-v3.eblit, files/eblits/src_configure-v3.eblit, + php-5.4.0_alpha1.ebuild: + Removed call to silly phpconfutils_init. Added addpredict to src_configure + (also silly) + +*php-5.3.7_rc2 (01 Jul 2011) + + 01 Jul 2011; Ole Markus With -php-5.3.7_rc1.ebuild, + +php-5.3.7_rc2.ebuild: + Bumped 5.3.7 rc version + + 29 Jun 2011; Ole Markus With -php-5.3.5.ebuild, + -php-5.3.5-r1.ebuild, -php-5.4.0_pre201105211430.ebuild: + Removed older versions + +*php-5.4.0_alpha1 (29 Jun 2011) + + 29 Jun 2011; Ole Markus With + +files/eblits/src_configure-v3.eblit, +files/eblits/src_prepare-v4.eblit, + +php-5.4.0_alpha1.ebuild: + Added php 5.4 alpha 1 + +*php-5.3.7_rc1 (17 Jun 2011) + + 17 Jun 2011; Ole Markus With + files/eblits/src_install-v2.eblit, +php-5.3.7_rc1.ebuild: + Added php-5.3.7_rc1 + Fixed bug 359905 + +*php-5.5.0_pre201105211430 (22 May 2011) +*php-5.4.0_pre201105211430 (22 May 2011) + + 22 May 2011; Ole Markus With + -php-5.4.0_pre201105151030.ebuild, +php-5.4.0_pre201105211430.ebuild, + +php-5.5.0_pre201105211430.ebuild: + Bumped snapshot versions and added a snapshot from the 5.4 branch (5.5 being + trunk now) + +*php-5.4.0_pre201105151030 (15 May 2011) + + 15 May 2011; -php-5.4.0_pre201104301030.ebuild, + +php-5.4.0_pre201105151030.ebuild, + +files/eblits/src_configure-snapshots.eblit: + Bumped the php snapshot version + + 08 May 2011; php-5.4.0_pre201104301030.ebuild, + +files/eblits/src_configure-snapshots.eblit: + Remove sqlite2 support and the sqlite3 USE flag. sqlite USE flag now enabled + sqlite3 + +*php-5.4.0_pre201104301030 (01 May 2011) + + 01 May 2011; +php-5.4.0_pre201104301030.ebuild, + +files/eblits/src_prepare-snapshots.eblit: + Added SVN snapshot ebuild + +*php-5.3.6-r1 (19 Apr 2011) + + 19 Apr 2011; php-5.2.14.ebuild, php-5.2.17.ebuild, + +php-5.3.6-r1.ebuild: + Added an EAPI4 version + + 09 Apr 2011; Raúl Porcel php-5.3.6.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #358791 + + 05 Apr 2011; Markus Meier php-5.3.6.ebuild: + arm stable, bug #358791 + + 02 Apr 2011; Christoph Mende php-5.3.6.ebuild: + Stable on amd64 wrt bug #358791 + + 02 Apr 2011; Pawel Hajdan jr php-5.3.6.ebuild: + x86 stable wrt security bug #358791 + + 02 Apr 2011; Jeroen Roovers php-5.3.6.ebuild: + Stable for HPPA (bug #358791). + + 01 Apr 2011; Kacper Kowalik php-5.3.6.ebuild: + ppc/ppc64 stable wrt #358791 + + 20 Mar 2011; -php-5.3.6_rc3.ebuild: + Removed RC as PHP 5.3.6 is now released + + 18 Mar 2011; +php-5.2.14.ebuild: + Readded 5.2.14 to unbreak a few neglected packages + +*php-5.3.6 (17 Mar 2011) + + 17 Mar 2011; Ole Markus With +php-5.3.6.ebuild: + Version bump + + 17 Mar 2011; Ole Markus With + files/eblits/pkg_setup-v1.eblit, php-5.2.17.ebuild, php-5.3.3-r1.ebuild, + php-5.3.5.ebuild, php-5.3.5-r1.ebuild, files/eblits/pkg_setup-v2.eblit, + php-5.3.6_rc3.ebuild: + Removed use of php_check_imap. #359221 + + 17 Mar 2011; Ole Markus With -php-5.2.14.ebuild, + -php-5.2.16.ebuild, -php-5.3.4.ebuild: + Removed older versions + + 16 Mar 2011; php-5.3.6_rc3.ebuild: + Reordered the SAPIs so that embed is always the first sapi to be built if + selected. Fixes #358687 + + 13 Mar 2011; +files/eblits/src_prepare-v3.eblit, + php-5.3.6_rc3.ebuild: + Added epatch_user. #357637 + +*php-5.3.6_rc3 (10 Mar 2011) + + 10 Mar 2011; -php-5.3.6_rc1.ebuild, + -php-5.3.6_rc2.ebuild, +php-5.3.6_rc3.ebuild: + Another RC added + +*php-5.3.6_rc2 (03 Mar 2011) + + 03 Mar 2011; Ole Markus With +php-5.3.6_rc2.ebuild: + New 5.3.6 RC2 + + 25 Feb 2011; Kevin McCarthy php-5.2.14.ebuild, + php-5.2.16.ebuild, php-5.2.17.ebuild, php-5.3.3-r1.ebuild: + Updated depends from media-libs/jpeg to virtual/jpeg + + 25 Feb 2011; Ole Markus With php-5.3.5.ebuild, + php-5.3.6_rc1.ebuild: + Remove dependency on libevent + + 17 Feb 2011; Ole Markus With +php-5.3.6_rc1.ebuild, + metadata.xml: + Added an ebuild for 5.3.6 RC1 + The suhosin USE flag no longer installs the extension, only the suhosin + patch + +*php-5.3.6_rc1 (17 Feb 2011) + + 30 Jan 2011; Raúl Porcel php-5.2.16.ebuild, + php-5.2.17.ebuild, php-5.3.3-r1.ebuild, php-5.3.4.ebuild, php-5.3.5.ebuild, + php-5.3.5-r1.ebuild: + alpha/ia64/s390/sh/sparc stable + +*php-5.3.5-r1 (29 Jan 2011) + + 29 Jan 2011; Matti Bickel php-5.2.17.ebuild, + +php-5.3.5-r1.ebuild: + fixed bugs #327049 (phar locale failure), #348567 (crypt_r typo), #352560 + (suhosin caused circular dep), #329071 (disable phpize autoconf checks) + + 11 Jan 2011; Jeroen Roovers php-5.2.17.ebuild, + php-5.3.5.ebuild: + Stable for HPPA (bug #350908). + + 10 Jan 2011; Kacper Kowalik php-5.2.17.ebuild, + php-5.3.5.ebuild: + ppc64 stable wrt #350908 + + 09 Jan 2011; Brent Baude php-5.3.5.ebuild: + Marking php-5.3.5 ppc for bug 350908 + + 08 Jan 2011; Markus Meier php-5.3.5.ebuild: + arm stable, bug #350908 + + 08 Jan 2011; Markus Meier php-5.2.17.ebuild: + arm stable, bug #350908 + + 08 Jan 2011; Brent Baude php-5.3.5.ebuild: + Marking php-5.3.5 ~ppc for bug 349659 + + 08 Jan 2011; Brent Baude php-5.2.17.ebuild: + Marking php-5.2.17 ppc for bug 350908 + + 07 Jan 2011; Christian Faulhammer php-5.3.5.ebuild: + stable x86, security bug 350908 + + 07 Jan 2011; Christian Faulhammer php-5.2.17.ebuild: + stable x86, security bug 350908 + + 07 Jan 2011; Markos Chandras php-5.2.17.ebuild, + php-5.3.5.ebuild: + Stable on amd64 wrt bug #350908 + +*php-5.3.5 (06 Jan 2011) +*php-5.2.17 (06 Jan 2011) + + 06 Jan 2011; Matti Bickel + files/eblits/pkg_postinst-v2.eblit, -php-5.2.16-r1.ebuild, + +php-5.2.17.ebuild, -php-5.3.4-r1.ebuild, +php-5.3.5.ebuild: + security version bump, remove old + + 05 Jan 2011; Matti Bickel php-5.2.16-r1.ebuild, + php-5.3.4-r1.ebuild: + restore ~alpha and ~ppc64 keywords + +*php-5.3.4-r1 (05 Jan 2011) +*php-5.2.16-r1 (05 Jan 2011) + + 05 Jan 2011; Matti Bickel + files/eblits/pkg_postinst-v2.eblit, +php-5.2.16-r1.ebuild, + files/eblits/src_configure-v2.eblit, +php-5.3.4-r1.ebuild, + files/eblits/src_prepare-v2.eblit: + now includes new suhosin patch, mhash is usable again, interbase/firebird + configure fixed, now includes a warning about stale config dirs + + 02 Jan 2011; Tobias Klausmann php-5.2.16.ebuild: + Stable on alpha, bug #340807 + + 02 Jan 2011; Tobias Klausmann php-5.3.4.ebuild: + Stable on alpha, bug #340807 + + 28 Dec 2010; Brent Baude php-5.2.16.ebuild, + php-5.3.4.ebuild: + Marking -5.2.16 and -5.3.4 ppc64 for bug 340807 + + 27 Dec 2010; -php-5.2.14-r2.ebuild, + -php-5.3.3-r3.ebuild: + Removed vulnerable versions from 5.2 and 5.3 slots + + 27 Dec 2010; php-5.2.16.ebuild, php-5.3.4.ebuild: + Readded some keywords that was dropped without reason + + 25 Dec 2010; Jeroen Roovers php-5.2.16.ebuild, + php-5.3.4.ebuild: + Stable for HPPA (bug #340807). + + 25 Dec 2010; php-5.3.4.ebuild: + Prevented the fpm sapi from force-enabling the cli sapi (bug 349122) + + 21 Dec 2010; Matti Bickel +files/php-fpm.conf, + files/eblits/src_configure-v2.eblit, files/php-fpm-r3.init: + fixed missing php-fpm.conf (bug #349179), removed unused configure option, + simplified php-fpm path (you need to use eselect php set php-fpm php5.3 + before starting!) + + 20 Dec 2010; Brent Baude php-5.2.14-r2.ebuild, + php-5.3.3-r3.ebuild: + Marking -5.3.3-r3 and -5.2.14-r2 ~ppc64 for bug 343597 + + 20 Dec 2010; Markos Chandras php-5.2.16.ebuild, + php-5.3.4.ebuild: + Stable on amd64 wrt bug #340807 + + 19 Dec 2010; Matti Bickel + +files/php-fpm-gentooified-5.3.4.patch, +files/php-fpm-r3.init, + -files/php-fpm-r1.init, files/eblits/src_install-v2.eblit: + somehow managed to miss the fpm part of the src_install update: new init/conf + files fix bugs #343649, #348507 + + 19 Dec 2010; Pawel Hajdan jr php-5.2.16.ebuild, + php-5.3.4.ebuild: + x86 stable wrt security bug #340807 + +*php-5.3.4 (19 Dec 2010) +*php-5.2.16 (19 Dec 2010) + + 19 Dec 2010; Matti Bickel + files/eblits/src_install-v2.eblit, files/eblits/src_prepare-v2.eblit, + +php-5.2.16.ebuild, +php-5.3.4.ebuild: + new upstream version with security fixes (bug #340807), also provide complete + fpm config/init file instead of patching upstream (thanks to Ole Markus) + + 22 Nov 2010; Ole Markus With + files/eblits/pkg_postinst-v1.eblit, files/eblits/pkg_postinst-v2.eblit: + Added link to upgrade guide + + 09 Nov 2010; Jeroen Roovers php-5.2.14-r2.ebuild, + php-5.3.3-r3.ebuild: + Marked ~hppa (bug #343597). + + 05 Nov 2010; Markus Meier php-5.2.14-r2.ebuild: + add ~arm, bug #343597 + + 05 Nov 2010; Markus Meier php-5.3.3-r3.ebuild: + add ~arm, bug #343597 + + 05 Nov 2010; Jeroen Roovers php-5.3.3-r1.ebuild: + Stable for HPPA (bug #336869). + + 04 Nov 2010; Matti Bickel php-5.3.3-r3.ebuild: + do not block versions of pecl-fileinfo supporting minor version slotting + + 02 Nov 2010; files/eblits/pkg_postinst-v2.eblit, + files/eblits/src_install-v2.eblit: + Added abit more information to postinst + + 01 Nov 2010; Matti Bickel + files/eblits/pkg_postinst-v2.eblit: + fix typo causing skip of eselect (bug #343723) + +*php-5.3.3-r3 (31 Oct 2010) +*php-5.2.14-r2 (31 Oct 2010) + + 31 Oct 2010; -php-5.2.14-r1.ebuild, + +php-5.2.14-r2.ebuild, -php-5.3.3-r2.ebuild, +php-5.3.3-r3.ebuild: + Revbumping with a new patchset (bug 342397) + + 31 Oct 2010; Matti Bickel + files/eblits/src_configure-v2.eblit: + properly fix bug #281316 (thanks to Alex Kiesel for noticing) + + 31 Oct 2010; files/eblits/pkg_postinst-v2.eblit: + Fixed a QA issue related to nonexisting SAPIs + + 30 Oct 2010; files/eblits/pkg_postinst-v2.eblit, + php-5.2.14-r1.ebuild, files/eblits/src_install-v2.eblit, + php-5.3.3-r2.ebuild: + Changed ebuild to use php.ini-development by default + Also made ebuilds add symlink to php-cgi if the cgi SAPI is installed + + 27 Oct 2010; files/eblits/src_install-v1.eblit, + files/eblits/src_install-v2.eblit: + Corrected typo in the src_install eblit (#342769) + + 24 Oct 2010; Matti Bickel + files/eblits/src_install-v2.eblit: + install apache module config file into standard directory + + 24 Oct 2010; Matti Bickel + files/eblits/src_configure-v1.eblit, files/eblits/src_configure-v2.eblit: + enable pdo-sqlite via USE="sqlite3" not USE="sqlite" + + 21 Oct 2010; files/eblits/pkg_postinst-v1.eblit: + Added an additional warning about extension_dir to pkg_postinst + + 20 Oct 2010; Markos Chandras php-5.3.3-r1.ebuild: + Stable on amd64 wrt bug #336869 + + 19 Oct 2010; -php-5.2.13.ebuild: + Removing old version + + 19 Oct 2010; files/eblits/src_install-v2.eblit, + +files/php-fpm-r1.init: + Added new fpm.init script that works with minor version slotting + + 17 Oct 2010; Matti Bickel + files/eblits/src_install-v1.eblit, files/eblits/src_install-v2.eblit: + change allow_url_fopen back to Off (bug #332763) + + 14 Oct 2010; Christian Faulhammer php-5.3.3-r1.ebuild: + x86 stable, bug 336869 + +*php-5.3.3-r2 (06 Oct 2010) +*php-5.2.14-r1 (06 Oct 2010) + + 06 Oct 2010; +php-5.2.14-r1.ebuild, + +php-5.3.3-r2.ebuild: + Added PHP ebuilds with minor version slotting support + + 19 Sep 2010; Matti Bickel + files/eblits/src_configure-v1.eblit, files/eblits/src_configure-v52.eblit: + fix building against IBM DB2, you now can use your DB2_HOME env variable + again (bug #337512, thanks reavertm for the patch) + + 07 Sep 2010; Matti Bickel php-5.2.14.ebuild: + enable spl and reflection by default, following upstream (bug #310383) + + 22 Aug 2010; Mark Loeser php-5.3.3-r1.ebuild: + Add back ~arm. It was dropped during the bump + + 16 Aug 2010; Jeroen Roovers php-5.2.14.ebuild: + Stable for HPPA (bug #332039). + + 14 Aug 2010; Matti Bickel + files/eblits/src_compile-v1.eblit: + snmp causes sandbox errors in src_compile, too (bug #324739) + + 14 Aug 2010; Raúl Porcel php-5.2.14.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #332039 + + 12 Aug 2010; Matti Bickel php-5.2.14.ebuild: + patch tarball now includes the correctly named kolab patch (bug #332423) + + 11 Aug 2010; Joseph Jezak php-5.2.14.ebuild, + php-5.3.3-r1.ebuild: + Marked ppc/ppc64 stable for bug #332039. Marked ~ppc/~ppc64 for bug + #321743. + + 11 Aug 2010; Matti Bickel + files/eblits/src_configure-v52.eblit, php-5.3.3-r1.ebuild: + 5.3 does not need flex; also fix a compile error with + -Wimplicit-function-declaration (bug #332273) + + 11 Aug 2010; Matti Bickel -php-5.3.2.ebuild: + remove php-5.3.2 due to security issues (bug #332039) + + 11 Aug 2010; Matti Bickel php-5.2.14.ebuild, + php-5.3.3-r1.ebuild: + enable xml, xmlreader and xmlwriter per default, as upstream does, too + (bug #332311) + + 11 Aug 2010; Pawel Hajdan jr php-5.2.14.ebuild: + x86 stable wrt security bug #332039 + + 10 Aug 2010; Markos Chandras php-5.2.14.ebuild: + Stable on amd64 wrt bug #332039 + + 09 Aug 2010; Matti Bickel + files/eblits/src_configure-v1.eblit, files/eblits/src_configure-v52.eblit: + configure sapi build dirs in 5.2, too (bug #331751); use proper path for + libevent, fix sharedext, fpm config file install (bug #331735) + + 09 Aug 2010; Matti Bickel + files/eblits/src_test-v1.eblit: + run from cli sapi build dir (bug #330023) + + 09 Aug 2010; Matti Bickel + files/eblits/src_install-v1.eblit: + cd to sapi dirs to make fpm config patches apply again (bug #331735) + +*php-5.3.3-r1 (08 Aug 2010) + + 08 Aug 2010; Matti Bickel + files/eblits/src_compile-v1.eblit, -php-5.3.3.ebuild, + files/eblits/src_configure-v1.eblit, files/eblits/src_install-v1.eblit, + +php-5.3.3-r1.ebuild: + fix QA warnings by building each SAPI in its own dir, add patch to fix bug + #327589 (thanks to Martin von Gagern) + + 03 Aug 2010; Matti Bickel php-5.2.14.ebuild: + added missing mhash in IUSE + +*php-5.2.14 (02 Aug 2010) + + 02 Aug 2010; Matti Bickel + +files/eblits/src_configure-v52.eblit, +php-5.2.14.ebuild: + version bump; this is a security update - see + http://www.php.net/archive/2010.php#id2010-07-22-1 for details + + 29 Jul 2010; Matti Bickel + files/eblits/src_install-v1.eblit: + use /tmp for session.save_path (bug #282768) + + 29 Jul 2010; Matti Bickel + files/eblits/src_install-v1.eblit: + add addpredict to work-around bug #324739 + + 28 Jul 2010; Markus Meier php-5.3.3.ebuild: + add ~arm, bug #321743 + + 26 Jul 2010; Matti Bickel + files/eblits/src_compile-v1.eblit, files/eblits/src_configure-v1.eblit, + files/eblits/src_install-v1.eblit, +files/php-fpm.init, + +files/php-fpm-gentooified.patch, metadata.xml: + update fpm description, actually support fpm in the eblits + +*php-5.3.3 (26 Jul 2010) + + 26 Jul 2010; Matti Bickel php-5.3.2.ebuild, + +php-5.3.3.ebuild, metadata.xml: + version bump, simplify postgres deps (bug #326967), fixes strict aliasing + issues (#329753), version bump is a security update + + 25 Jul 2010; Tobias Klausmann php-5.3.2.ebuild: + Keyworded on alpha, bug #321743 + + 19 Jul 2010; Jeroen Roovers php-5.3.2.ebuild: + Marked ~hppa (bug #321743). + + 08 Jul 2010; Matti Bickel + files/eblits/pkg_setup-v1.eblit, php-5.3.2.ebuild: + can not have use-deps on old style virtuals + + 05 Jul 2010; Matti Bickel + files/eblits/src_configure-v1.eblit: + fix compilation on x64 systems (bug #327025) + + 05 Jul 2010; Matti Bickel php-5.2.13.ebuild: + introduced new style virtual httpd-php (bug #319623) + + 05 Jul 2010; Matti Bickel -php-5.2.9-r2.ebuild, + -php-5.2.10.ebuild, -php-5.2.10-r1.ebuild, -php-5.2.10-r2.ebuild, + -php-5.2.11.ebuild, -php-5.2.11-r1.ebuild, -php-5.2.12.ebuild: + remove old + + 05 Jul 2010; Matti Bickel php-5.3.2.ebuild: + introduced new style virtual httpd-php (bug #319623) + + 04 Jul 2010; Matti Bickel php-5.3.2.ebuild: + include patch to compile with gmp-5* (bug #322303) + + 14 Jun 2010; files/eblits/src_install-v1.eblit, + php-5.3.2.ebuild: + sync with overlay: repair apache2 USE dep, cli SAPI on by default (bug + #310383), show all SAPIs in php-config (bug #278439) + + 12 Jun 2010; php-5.3.2.ebuild, metadata.xml: + USE="mbstring" already covered by USE="unicode"; set USE-defaults to match + upstream defaults (bug #285816) + + 11 Jun 2010; files/eblits/src_compile-v1.eblit, + php-5.3.2.ebuild, files/eblits/src_configure-v1.eblit: + make USE="iodbc" independant from USE="odbc", fix embed SAPI compile + failure + + 01 Jun 2010; -files/eblits/common-v2.eblit, + -files/eblits/src_compile-v2.eblit, -files/eblits/src_install-v2.eblit, + files/eblits/src_prepare-v1.eblit, php-5.3.2.ebuild, metadata.xml: + align more closely with original php-5.3 work from hoffie@gentoo.org, fix + missing mbstring use description, remove unneeded -v2 eblits, remove + dangling mcve references + + 30 May 2010; -files/20php4-envd, php-5.3.2.ebuild, + -files/php4-ldvs: + fix iodbc USE dep (bug #285419), remove unneeded php4 files + + 28 May 2010; php-5.3.2.ebuild: + add flex dependency (bug #221357) + + 28 May 2010; files/eblits/src_prepare-v1.eblit: + use portable find command (bug #321781) + +*php-5.3.2 (27 May 2010) + + 27 May 2010; files/70_mod_php5_concurr.conf-apache2, + files/70_mod_php5.conf-apache2, +files/eblits/common-v1.eblit, + +files/eblits/common-v2.eblit, +files/eblits/pkg_postinst-v1.eblit, + +files/eblits/pkg_setup-v1.eblit, +files/eblits/src_compile-v1.eblit, + +files/eblits/src_compile-v2.eblit, +files/eblits/src_configure-v1.eblit, + +files/eblits/src_install-v1.eblit, +files/eblits/src_install-v2.eblit, + +files/eblits/src_prepare-v1.eblit, +files/eblits/src_test-v1.eblit, + +php-5.3.2.ebuild: + version bump (bug #274512, #312775); see + http://www.php.net/ChangeLog-5.php#5.3.2 for a list of changes and the + migration guide for an update from 5.2: + http://www.php.net/manual/en/migration53.php; expect more bumps as we fix + open bugs + thanks to GiDis and olemarkus for providing patches and a lot of testing + + 29 Mar 2010; Markus Meier php-5.2.13.ebuild: + amd64 stable, bug #306939 + + 26 Mar 2010; Raúl Porcel php-5.2.13.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #306939 + + 24 Mar 2010; Jeroen Roovers php-5.2.13.ebuild: + Stable for HPPA (bug #306939). + + 23 Mar 2010; Brent Baude php-5.2.13.ebuild: + Marking php-5.2.13 ppc for bug 306939 + + 22 Mar 2010; Christian Faulhammer php-5.2.13.ebuild: + stable x86, security bug 306939 + + 21 Mar 2010; Brent Baude php-5.2.13.ebuild: + Marking php-5.2.13 ppc64 for bug 306939 + +*php-5.2.13 (20 Mar 2010) + + 20 Mar 2010; Tobias Heinlein +php-5.2.13.ebuild: + Non-maintainer commit; Version bump, security bug #306939, patch by Bernd + Lommerzheim + + 13 Mar 2010; Samuli Suominen php-5.2.12.ebuild, + +files/php-5.2.12-libpng14.patch: + Fix building with libpng14. + + 31 Jan 2010; Torsten Veller php-5.2.9-r2.ebuild, + php-5.2.10.ebuild, php-5.2.10-r1.ebuild, php-5.2.10-r2.ebuild, + php-5.2.11.ebuild, php-5.2.11-r1.ebuild, php-5.2.12.ebuild: + Change vecho to echo + + 05 Jan 2010; Raúl Porcel php-5.2.12.ebuild: + ia64/s390/sh/sparc stable wrt #293888 + + 05 Jan 2010; Joseph Jezak php-5.2.12.ebuild: + Marked ppc stable for bug #293888. + + 01 Jan 2010; Tobias Klausmann php-5.2.12.ebuild: + Stable on alpha, bug #293888 + + 31 Dec 2009; Markus Meier php-5.2.12.ebuild: + amd64/arm stable, bug #293888 + + 31 Dec 2009; Christian Faulhammer php-5.2.12.ebuild: + stable x86, security bug 293888 + + 31 Dec 2009; Jeroen Roovers php-5.2.12.ebuild: + Stable for HPPA (bug #293888). + + 31 Dec 2009; Brent Baude php-5.2.12.ebuild: + Marking php-5.2.12 ppc64 for bug 293888 + +*php-5.2.12 (30 Dec 2009) + + 30 Dec 2009; Christian Hoffmann +php-5.2.12.ebuild: + version bump to 5.2.12 wrt security bug 297399, please note that + USE=concurrentmodphp is broken (but should not be needed at the moment + anyway), bug 298969 + + 16 Dec 2009; Christian Hoffmann php-5.2.11.ebuild, + php-5.2.11-r1.ebuild: + trying to fix the circular dependency we are seeing with suhosin since + 5.2.11 (where I added a version dependency without much thinking), bug + 295871, thanks to Oleg Gawriloff + + 21 Nov 2009; nixnut php-5.2.11-r1.ebuild: + ppc stable #292132 + + 17 Nov 2009; Raúl Porcel php-5.2.11-r1.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #292132 + + 17 Nov 2009; Brent Baude php-5.2.11-r1.ebuild: + Marking php-5.2.11-r1 ppc64 for bug 292132 + + 15 Nov 2009; Jeroen Roovers php-5.2.11-r1.ebuild: + Stable for HPPA (bug #292132). + + 14 Nov 2009; Markus Meier php-5.2.11-r1.ebuild: + arm stable, bug #292132 + + 14 Nov 2009; Markus Meier php-5.2.11-r1.ebuild: + amd64/x86 stable, bug #292132 + +*php-5.2.11-r1 (13 Nov 2009) + + 13 Nov 2009; Dawid Węgliński +php-5.2.11-r1.ebuild: + Revision bump with fix for gdMaxColors (security bug #292132) + + 19 Oct 2009; Mounir Lamouri php-5.2.11.ebuild: + Stabilizing for ppc, bug 285434 (also fixing bug 278064) + + 18 Oct 2009; Brent Baude php-5.2.11.ebuild: + Marking php-5.2.11 ppc64 for bug 285434 + + 09 Oct 2009; Christian Hoffmann php-5.2.11.ebuild: + adding dependency on recent enough suhosin per bug 276583 + + 07 Oct 2009; php-5.2.11.ebuild: + Marked stable on AMD64 as requested by Bernd Marienfeldt in security bug + #285434. Tested with USE="apache2 berkdb bzip2 calendar cgi cli crypt + ctype curl gd iconv imap ipv6 mhash mysql ncurses nls pcre pic posix + readline session snmp spl ssl threads tokenizer truetype unicode xml + xmlrpc zlib" serving www.linx.net on hardened AMD64 non-multilib system. + + 07 Oct 2009; Raúl Porcel php-5.2.11.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #285434 + + 07 Oct 2009; Jeroen Roovers php-5.2.11.ebuild: + Stable for HPPA (bug #285434). + + 06 Oct 2009; Christian Faulhammer php-5.2.11.ebuild: + stable x86, security bug 285434 + +*php-5.2.11 (29 Sep 2009) + + 29 Sep 2009; Christian Hoffmann +php-5.2.11.ebuild: + version bump per bug 285434 (security) + +*php-5.2.10-r2 (24 Sep 2009) + + 24 Sep 2009; Dawid Węgliński +php-5.2.10-r2.ebuild, + +files/php-5.2.10-pdo_dblib.patch: + Add quick fix for bug #279576 and remove tests/lang/bug45392.phpt which is + not included in 5.2.10 + +*php-5.2.10-r1 (05 Jul 2009) + + 05 Jul 2009; Christian Hoffmann +php-5.2.10-r1.ebuild: + revbump with the latest suhosin patch (might fix suhosin-related + segfaults, reported in bug 276583), also fixing a curl regression, both + might be the reason for bug 276135 + + 30 Jun 2009; Raúl Porcel php-5.2.10.ebuild: + arm/ia64/s390/sh/sparc stable wrt #274670 + + 27 Jun 2009; Brent Baude php-5.2.10.ebuild: + Marking php-5.2.10 ppc64 and ppc for bug 274670 + + 26 Jun 2009; Tobias Klausmann php-5.2.10.ebuild: + Stable on alpha, bug #274670 + + 26 Jun 2009; Tobias Heinlein php-5.2.10.ebuild: + amd64 stable, security bug #274670 + + 25 Jun 2009; Christian Faulhammer php-5.2.10.ebuild: + stable x86, security bug 274670 + + 24 Jun 2009; Christian Hoffmann metadata.xml: + restoring metadata.xml with zip-external description, somehow repoman + complains otherwise + + 23 Jun 2009; Jeroen Roovers php-5.2.10.ebuild, + metadata.xml: + Stable for HPPA (bug #274670). + + 21 Jun 2009; Christian Hoffmann metadata.xml: + removing traces of USE=zip-external + +*php-5.2.10 (19 Jun 2009) + + 19 Jun 2009; Christian Hoffmann +php-5.2.10.ebuild: + version bump per security bug 274670, fixes at least one security problem + (DoS) and introduces getopt long support for Gentoo users as requested + + 19 Jun 2009; Christian Hoffmann -php-5.2.8-r2.ebuild, + -php-5.2.9.ebuild, -php-5.2.9-r1.ebuild: + clean up old and vulnerable + + 26 May 2009; Arfrever Frehtes Taifersar Arahesis + ChangeLog: + Call depend.apache_pkg_setup() in pkg_setup() (bug #268371). + + 26 May 2009; Arfrever Frehtes Taifersar Arahesis + php-5.2.8-r2.ebuild, php-5.2.9.ebuild, php-5.2.9-r1.ebuild, + php-5.2.9-r2.ebuild: + Call depend.apache_pkg_setup() in pkg_setup() (bug #268371). + + 20 Apr 2009; Raúl Porcel php-5.2.9-r2.ebuild: + arm/ia64/s390/sh/sparc stable wrt #260576 + + 18 Apr 2009; Tobias Klausmann php-5.2.9-r2.ebuild: + Stable on alpha, bug #260576 + + 18 Apr 2009; Brent Baude php-5.2.9-r2.ebuild: + Marking php-5.2.9-r2 ppc64 for bug 260576 + + 18 Apr 2009; Markus Meier php-5.2.9-r2.ebuild: + x86 stable, bug #260576 + + 18 Apr 2009; nixnut php-5.2.9-r2.ebuild: + ppc stable #260576 + + 17 Apr 2009; Jeroen Roovers php-5.2.9-r2.ebuild: + Stable for HPPA (bug #260576). + + 17 Apr 2009; Tobias Heinlein php-5.2.9-r2.ebuild: + amd64 stable wrt security bug #260576 + +*php-5.2.9-r2 (16 Apr 2009) + + 16 Apr 2009; Christian Hoffmann -php-5.2.6-r7.ebuild, + -php-5.2.8-r1.ebuild, +php-5.2.9-r2.ebuild: + cleaning old; revision bump to fix yet three possible security issues, see + bug 260576 for details + +*php-5.2.9-r1 (10 Apr 2009) +*php-5.2.9 (10 Apr 2009) + + 10 Apr 2009; Christian Hoffmann +php-5.2.9.ebuild, + +php-5.2.9-r1.ebuild: + version bump to fix several possible security issues, details to follow, + bug 260576 (5.2.9 is more or less vanilla php, 5.2.9-r1 has lots of + additional backported patches) + + 07 Apr 2009; Christian Faulhammer php-5.2.8-r1.ebuild, + php-5.2.8-r2.ebuild: + revert from EAPI 2 to 0 again, see bug 265245 + + 18 Mar 2009; Raúl Porcel php-5.2.8-r1.ebuild, + php-5.2.8-r2.ebuild: + arm/ia64/s390/sh stable + + 07 Mar 2009; Christian Faulhammer php-5.2.8-r1.ebuild, + php-5.2.8-r2.ebuild: + use EAPI 2 for USE flag check + + 02 Feb 2009; Mike Frysinger metadata.xml: + Document local USE=pic flag. + + 01 Feb 2009; Tobias Klausmann php-5.2.8-r2.ebuild: + Stable on alpha, bug #249703 + + 31 Jan 2009; Tiago Cunha php-5.2.8-r2.ebuild: + stable sparc, bug 249703 + + 25 Jan 2009; Markus Meier php-5.2.8-r2.ebuild: + x86 stable, bug #249703 + + 24 Jan 2009; Tobias Scherbaum php-5.2.8-r2.ebuild: + ppc stable, bug #249703 + + 23 Jan 2009; Brent Baude php-5.2.8-r2.ebuild: + Marking php-5.2.8-r2 ppc64 for bug 249703 + + 20 Jan 2009; Tobias Heinlein php-5.2.8-r2.ebuild: + amd64 stable wrt security bug 249703 + + 20 Jan 2009; Jeroen Roovers php-5.2.8-r2.ebuild: + Stable for HPPA (bug #249703). + +*php-5.2.8-r2 (11 Jan 2009) + + 11 Jan 2009; Christian Hoffmann + -files/70_mod_php.conf-apache2, + +files/70_mod_php5_concurr.conf-apache2-r1, + +files/70_mod_php5.conf-apache2-r1, + -files/70_mod_php_concurr.conf-apache2, -php-5.2.8.ebuild, + +php-5.2.8-r2.ebuild: + revision bump to fix bug 162478 (dropping usage of AddType apache config + directive) and bug 249703 (libxml2-2.7 breakage) and an upstream fix for + bug 217392; removing old and unused files + + 24 Dec 2008; Raúl Porcel php-5.2.8-r1.ebuild: + alpha/ia64 stable wrt #249875 + + 23 Dec 2008; Friedrich Oslage php-5.2.8-r1.ebuild: + Stable on sparc, security bug #249875 + + 22 Dec 2008; Jeroen Roovers php-5.2.8-r1.ebuild: + Stable for HPPA (bug #249875). + + 21 Dec 2008; Tobias Scherbaum php-5.2.8-r1.ebuild: + ppc stable, bug #249875 + + 20 Dec 2008; Markus Meier php-5.2.8-r1.ebuild: + amd64/x86 stable, bug #249875 + + 19 Dec 2008; Brent Baude php-5.2.8-r1.ebuild: + Marking php-5.2.8-r1 ppc64 for bug 249875 + + 19 Dec 2008; Tobias Scherbaum php-5.2.8-r1.ebuild: + Fix die message when libpcre is not built with unicode support. + +*php-5.2.8-r1 (18 Dec 2008) + + 18 Dec 2008; Christian Hoffmann +php-5.2.8-r1.ebuild: + revbump for security bug 249875, shipping several new security fixes; + incorporate suggestion from Bernd Lommerzheim in + bug 238127 to check libpcre for USE=unicode; adding patch for interbase + precision improvements as suggested by Viesturs in bug + 250640 + +*php-5.2.8 (08 Dec 2008) + + 08 Dec 2008; Christian Hoffmann +php-5.2.8.ebuild: + version bump wrt security bug 249875; also attempting to make the build + failure fix for bug 217392 more portable; using system pcre now to avoid + problems with apache/mod_php (bug 238127) + + 10 Nov 2008; Christian Hoffmann -php-5.2.5-r1.ebuild, + -php-5.2.6-r6.ebuild: + dropping old and vulnerable + + 22 Sep 2008; Jeroen Roovers php-5.2.6-r7.ebuild: + Stable for HPPA (bug #231528). + + 21 Sep 2008; Raúl Porcel php-5.2.6-r7.ebuild: + alpha/ia64/sparc stable wrt #231528 + + 20 Sep 2008; Markus Meier php-5.2.6-r7.ebuild: + x86 stable, bug #231528 + + 16 Sep 2008; Brent Baude php-5.2.6-r7.ebuild: + Marking php-5.2.6-r7 ppc64 and ppc for bug 231528 + + 16 Sep 2008; Christian Hoffmann php-5.2.6-r7.ebuild: + stable on amd64 wrt bug 231528 + +*php-5.2.6-r7 (06 Sep 2008) + + 06 Sep 2008; Christian Hoffmann -php-5.2.6.ebuild, + -php-5.2.6-r2.ebuild, +php-5.2.6-r7.ebuild: + importing -r7 (patchset: r8) from php-testing overlay, including the snmp + memory leak fix from bug 231528; no need to upgrade for users with + USE=-snmp + + 23 Aug 2008; Jeroen Roovers metadata.xml: + Add GLEP 56 USE flag descriptions. + + 15 Aug 2008; Christian Hoffmann -php-5.2.6.ebuild, + -php-5.2.6-r2.ebuild: + removing old and vulnerable + + 09 Aug 2008; Christian Hoffmann -php-4.4.8.ebuild: + Removing php-4 (bug 189172); use the php-4 (layman) overlay instead, if + you really insist on keeping it installed + + 08 Aug 2008; Tobias Scherbaum php-5.2.6-r6.ebuild: + ppc stable, bug #234102 + + 08 Aug 2008; Raúl Porcel php-5.2.6-r6.ebuild: + alpha/ia64/sparc stable wrt #234102 + + 07 Aug 2008; Jeroen Roovers php-5.2.6-r6.ebuild: + Stable for HPPA (bug #234102). + + 07 Aug 2008; Markus Meier php-5.2.6-r6.ebuild: + x86 stable, bug #234102 + + 07 Aug 2008; Markus Rothe php-5.2.6-r6.ebuild: + Stable on ppc64; bug #234102 + + 07 Aug 2008; Christian Hoffmann php-5.2.6-r6.ebuild: + stable on amd64 wrt security bug 234102 + + 07 Aug 2008; Christian Hoffmann php-5.2.6-r6.ebuild: + patchset bump (without rev bump) which changes the new-memory-corruption + patch to fix a build issue (it used to contain the bison-generated .c + version of zend_language_parser.y, we now rely on configure to invoke + bison, which seems to work better) + +*php-5.2.6-r6 (07 Aug 2008) + + 07 Aug 2008; Christian Hoffmann -php-5.2.6_rc4.ebuild, + -php-5.2.6-r1.ebuild, -php-5.2.6-r5.ebuild, +php-5.2.6-r6.ebuild: + lots of new security/crash fixes, bug 234102 (CVE-2008-2665, CVE-2008-2666 + and other issues); dropping old + + 24 Jul 2008; Christian Hoffmann php-5.2.6-r2.ebuild, + php-5.2.6-r5.ebuild: + changing explicit depend on c-client back to the virtual, now that a + recent enough uw-imap version is in the tree; stable dependencies are + still broken in case of uw-imap, as the needed version is not stable + + 20 Jul 2008; Christian Hoffmann php-5.2.6-r5.ebuild: + previous commit replaced CXXFLAGS by CFLAGS by accident, thanks to Rafał + Mużyło in bug 230809 + + 20 Jul 2008; Christian Hoffmann php-5.2.6-r5.ebuild: + yet another attempt at fixing _GNU_SOURCE-related build problems + (configure screws up FFLAGS which isn't used at all, so we stop + manipulating it now), bug 230809 + + 19 Jul 2008; Christian Hoffmann php-5.2.6-r5.ebuild: + build-time-specific (no revbump): fixing warnings (which sometimes seem to + be fatal) regarding to missing function prototypes because of _GNU_SOURCE + being defined too late (bug 230809) + +*php-5.2.6-r5 (17 Jul 2008) + + 17 Jul 2008; Christian Hoffmann +php-5.2.6-r5.ebuild: + Fixing USE=suhosin on sparc and maybe other 'exotic' archs (gave SIGBUS, + bug 209501), adding >=freetds-0.82 compatibility patch for ext/mssql and + ext/pdo_dblib (thanks to matthias@dsx.at in bug 223891); other users don't + need to update [imported from php-testing overlay] + + 11 Jul 2008; Jeroen Roovers php-5.2.6-r2.ebuild: + Stable for HPPA (bug #230575). + + 10 Jul 2008; Christian Hoffmann php-5.2.6-r2.ebuild: + d'oh, the DEPEND on c-client was supposed to only show up for USE=imap, + thanks to Cardoe for noticing that + + 10 Jul 2008; Christian Hoffmann php-5.2.6-r2.ebuild: + the ext/imap security patch introduced in php-5.2.6-r2 raises the + dependency on c-client to version 2006k, fixing DEPEND accordingly, bug + 231258 + + 08 Jul 2008; Raúl Porcel php-5.2.6-r2.ebuild: + alpha/ia64/sparc stable wrt security #230575 + + 07 Jul 2008; Markus Meier php-5.2.6-r2.ebuild: + x86 stable, bug #230575 + + 07 Jul 2008; Thomas Anderson php-5.2.6-r2.ebuild: + stable amd64, security bug 230575 + + 07 Jul 2008; Brent Baude php-5.2.6-r2.ebuild: + Marking php-5.2.6-r2 ppc64 and ppc for bug 230575 + +*php-5.2.6-r2 (02 Jul 2008) + + 02 Jul 2008; Christian Hoffmann +php-5.2.6-r2.ebuild: + revbump to include newer patchset, employing lots of security/crash fixes, + bug 230575 + +*php-5.2.6-r1 (05 May 2008) + + 05 May 2008; Christian Hoffmann +php-5.2.6-r1.ebuild: + using official suhosin for version 5.2.6 now, adding patch to fix bug + 212679 (ext/ldap build failure with --as-needed, thanks to Peter Volkov) + + 01 May 2008; Christian Hoffmann + -php-4.4.8_pre20070816.ebuild: + removing php-4.4.8_pre, 4.4.8 still left; yes, it was latest stable for + all arches, but php-4* and everything depending on it are hardmasked + anyway and one shouldn't continue using it either... + + 01 May 2008; Christian Hoffmann php-5.2.6.ebuild: + only try to fix the open_basedir test cases when suhosin is enabled, + otherwise it breaks for non-suhosin + +*php-5.2.6 (01 May 2008) + + 01 May 2008; Christian Hoffmann + -php-5.2.6_rc1-r1.ebuild, -php-5.2.6_rc3.ebuild, -php-5.2.6_rc3-r1.ebuild, + +php-5.2.6.ebuild: + version bump to 5.2.6, including kolab support (bug 210977, thanks to + wrobel and jakub), fixing bug 215623 in the same go; removing + old/vulnerable + + 16 Apr 2008; Tobias Scherbaum + php-5.2.6_rc4.ebuild: + ppc stable, bug #215266 + + 16 Apr 2008; Christian Hoffmann php-5.2.6_rc4.ebuild: + workaround autoconf-2.62 behavior change which made build fail w/ + USE=posix (bug 217392), no revbump + + 15 Apr 2008; Jeroen Roovers php-5.2.6_rc4.ebuild: + Stable for HPPA (bug #215266). + + 15 Apr 2008; Raúl Porcel php-5.2.6_rc4.ebuild: + alpha/ia64/sparc stable wrt security #215266 + + 14 Apr 2008; Markus Meier php-5.2.6_rc4.ebuild: + amd64/x86 stable, security bug #215266 + + 14 Apr 2008; Markus Rothe php-5.2.6_rc4.ebuild: + Stable on ppc64; bug #215266 + +*php-5.2.6_rc4 (05 Apr 2008) + + 05 Apr 2008; Christian Hoffmann +php-5.2.6_rc4.ebuild: + bump to rc4 to address even more possible security issues (stack overflow + in fastcgi handling, several imap-related crashes) + +*php-5.2.6_rc3-r1 (30 Mar 2008) + + 30 Mar 2008; Christian Hoffmann + +php-5.2.6_rc3-r1.ebuild: + revbump with a patch to fix a regression in escapeshell{arg,cmd}() + functions in regards to multi-byte handling, phpbug 44564 + + 29 Mar 2008; Markus Meier php-5.2.6_rc3.ebuild: + x86 stable, security bug #215266 + + 29 Mar 2008; Raúl Porcel php-5.2.6_rc3.ebuild: + alpha/ia64/sparc stable wrt security #215266 + + 29 Mar 2008; Christian Hoffmann php-5.2.6_rc3.ebuild: + stable on amd64, bug 215266 + + 29 Mar 2008; Jeroen Roovers php-5.2.6_rc3.ebuild: + Stable for HPPA (bug #215266). + + 29 Mar 2008; Brent Baude php-5.2.6_rc3.ebuild: + Marking php-5.2.6_rc3 ppc64 and ppc for bug 215266 + +*php-5.2.6_rc3 (28 Mar 2008) + + 28 Mar 2008; Christian Hoffmann +php-5.2.6_rc3.ebuild: + bump, mainly to address the issues listed in security bug 215266 + + 23 Mar 2008; Benedikt Böhm + php-4.4.8_pre20070816.ebuild, php-4.4.8.ebuild, php-5.2.5-r1.ebuild, + php-5.2.6_rc1-r1.ebuild: + fix depend.apache usage wrt #208033 + + 19 Mar 2008; Christian Hoffmann + -php-5.2.4_pre200708051230-r2.ebuild, -php-5.2.5_p20080206-r3.ebuild, + -php-5.2.6_rc1.ebuild: + removing old and/or vulnerable versions + + 09 Mar 2008; Tobias Scherbaum + php-5.2.6_rc1-r1.ebuild: + ppc stable, bug #212211 + + 08 Mar 2008; php-5.2.6_rc1-r1.ebuild: + amd64 stable, security bug #212211. + + 07 Mar 2008; Dawid Węgliński php-5.2.6_rc1-r1.ebuild: + Stable on x86 (bug #212211) + + 06 Mar 2008; Raúl Porcel php-5.2.6_rc1-r1.ebuild: + alpha/ia64/sparc stable wrt #212211 + + 06 Mar 2008; Jeroen Roovers php-5.2.6_rc1-r1.ebuild: + Stable for HPPA (bug #212211). + + 06 Mar 2008; Brent Baude php-5.2.6_rc1-r1.ebuild: + Marking php-5.2.6_rc1-r1 ppc64 for bug 212211 + +*php-5.2.6_rc1-r1 (05 Mar 2008) + + 05 Mar 2008; Christian Hoffmann + +php-5.2.6_rc1-r1.ebuild: + revbump to -r1 to include new patchset which fixes a mysql_(p)connect crash + (introduced in >5.2.5-r1), several memory corruption issues, a crash in the + soap extension and several test failures + + 04 Mar 2008; Markus Rothe php-5.2.6_rc1.ebuild: + Stable on ppc64; bug #212211 + + 04 Mar 2008; Raúl Porcel php-5.2.6_rc1.ebuild: + alpha/ia64/sparc stable wrt security #212211 + + 03 Mar 2008; Jeroen Roovers php-5.2.6_rc1.ebuild: + Stable for HPPA (bug #212211). + + 03 Mar 2008; Markus Meier php-5.2.6_rc1.ebuild: + x86 stable, security bug #212211 + +*php-5.2.6_rc1 (03 Mar 2008) + + 03 Mar 2008; Christian Hoffmann +php-5.2.6_rc1.ebuild: + bump to 5.2.6_rc1 + + 03 Mar 2008; Christian Hoffmann + -php-5.2.5_p20080206.ebuild, -php-5.2.5_p20080206-r2.ebuild: + removing old + + 28 Feb 2008; Steve Dibb + php-5.2.5_p20080206-r3.ebuild: + amd64 stable, bug 209148 + + 24 Feb 2008; Brent Baude + php-5.2.5_p20080206-r3.ebuild: + Marking php-5.2.5_p20080206-r3 ppc64 for bug 209148 + + 24 Feb 2008; Raúl Porcel + php-5.2.5_p20080206-r3.ebuild: + alpha/ia64/sparc stable wrt security #209148 + + 22 Feb 2008; Tobias Scherbaum + php-5.2.5_p20080206-r3.ebuild: + ppc stable, bug #209148 + + 21 Feb 2008; Markus Meier + php-5.2.5_p20080206-r3.ebuild: + x86 stable, security bug #209148 + + 21 Feb 2008; Jeroen Roovers + php-5.2.5_p20080206-r3.ebuild: + Stable for HPPA (bug #209148). + + 13 Feb 2008; Christian Hoffmann + php-5.2.5_p20080206-r3.ebuild: + yet another attempt at fixing src_test (no revbump) + +*php-5.2.5_p20080206-r3 (12 Feb 2008) + + 12 Feb 2008; Christian Hoffmann + +php-5.2.5_p20080206-r3.ebuild: + hopefully improved upstream patch for bug #209606 + +*php-5.2.5_p20080206-r2 (12 Feb 2008) + + 12 Feb 2008; Christian Hoffmann + +php-5.2.5_p20080206-r2.ebuild: + revbump to fix a pretty severe crash problem: fixes bug #209606 and maybe + bug #209501; also reworking src_test so that it works more reliable + (hopefully) + + 08 Feb 2008; Raúl Porcel php-5.2.5_p20080206.ebuild: + alpha/ia64/sparc stable wrt security #209148 + + 08 Feb 2008; Jeroen Roovers php-5.2.5_p20080206.ebuild: + Stable for HPPA (bug #209148). + + 08 Feb 2008; Tobias Scherbaum + php-5.2.5_p20080206.ebuild: + ppc stable, bug #209148 + + 08 Feb 2008; Brent Baude php-5.2.5_p20080206.ebuild: + Marking php-5.2.5_p20080206 ppc64 for bug 209148 + + 07 Feb 2008; Dawid Węgliński + php-5.2.5_p20080206.ebuild: + Stable on x86 (bug #209148) + +*php-5.2.5_p20080206 (06 Feb 2008) + + 06 Feb 2008; Christian Hoffmann + +php-5.2.5_p20080206.ebuild: + adding new snapshot 5.2.5_p20080206 for security bug 209148 + + 31 Jan 2008; Christian Hoffmann + files/70_mod_php.conf-apache2, files/70_mod_php5_concurr.conf-apache2, + files/70_mod_php5.conf-apache2, files/70_mod_php_concurr.conf-apache2: + changing AddDirectoryIndex to DirectoryIndex in apache configs per bug 139451 + +*php-4.4.8 (08 Jan 2008) + + 08 Jan 2008; Christian Hoffmann +php-4.4.8.ebuild: + bumping to 4.4.8 by user request; completely untested except quick compile + test (it's hardmasked anyway, you should really switch to php-5*) + + 08 Jan 2008; Christian Hoffmann -php-5.2.5.ebuild: + removing php-5.2.5, -r1 is more secure and has same KEYWORDS + + 15 Dec 2007; php-5.2.5-r1.ebuild: + Stable on amd64; bug 201885 + + 12 Dec 2007; Brent Baude php-5.2.5-r1.ebuild: + Marked php-5.2.5-r1 ppc & ppc64 stable for bug 201885 + + 11 Dec 2007; Jeroen Roovers php-5.2.5-r1.ebuild: + Stable for HPPA (bug #201885). + + 11 Dec 2007; Raúl Porcel php-5.2.5-r1.ebuild: + alpha/ia64/sparc stable wrt security #201885 + + 11 Dec 2007; Dawid Węgliński php-5.2.5-r1.ebuild: + Stable on x86 (bug #201885) + +*php-5.2.5-r1 (08 Dec 2007) + + 08 Dec 2007; Christian Hoffmann +php-5.2.5-r1.ebuild: + revision bump w/ updated patchset to fix most of the security issues listed + in bug 199156 + + 15 Nov 2007; Christian Hoffmann -php-4.4.7.ebuild, + -php-5.2.4.ebuild, -php-5.2.4_p20070914-r2.ebuild: + removing old/vulnerable versions 4.4.7, 5.2.4 and 5.2.4_p20070914-r2 + + 14 Nov 2007; Alex Howells php-5.2.5.ebuild: + changing ~amd64 -> amd64 with regard to #198650 + + 13 Nov 2007; Tobias Scherbaum php-5.2.5.ebuild: + ppc stable, bug #198650 + + 12 Nov 2007; Markus Rothe php-5.2.5.ebuild: + Stable on ppc64; bug #198650 + + 12 Nov 2007; Jeroen Roovers php-5.2.5.ebuild: + Stable for HPPA (bug #198650 ). + + 12 Nov 2007; Raúl Porcel php-5.2.5.ebuild: + alpha/ia64/sparc stable wrt #198650 + + 11 Nov 2007; Dawid Węgliński php-5.2.5.ebuild: + Stable on x86 (bug #198650) + +*php-5.2.5 (09 Nov 2007) + + 09 Nov 2007; Christian Hoffmann +php-5.2.5.ebuild: + bump to php-5.2.5, http://www.php.net/ChangeLog-5.php#5.2.5 + Gentoo-wise improvements: zero or very little expected test failures, depending + on the USE flags + + 03 Nov 2007; Christian Hoffmann -php-5.1.6-r11.ebuild: + removing php-5.1* + + 21 Oct 2007; Christian Hoffmann -php-5.2.2-r1.ebuild, + -php-5.2.4_p20070914.ebuild: + cleanup old + + 25 Sep 2007; Raúl Porcel + php-5.2.4_p20070914-r2.ebuild: + sparc stable wrt security #191034 + + 22 Sep 2007; Raúl Porcel + php-5.2.4_p20070914-r2.ebuild: + alpha/ia64 stable wrt security #191034 + + 20 Sep 2007; Brent Baude + php-5.2.4_p20070914-r2.ebuild: + MArking php-5.2.4_p20070914-r2 ppc64 stable for 191034 + + 20 Sep 2007; Chris Gianelloni + php-5.2.4_p20070914-r2.ebuild: + Stable on amd64/x86 wrt bug #191034. + + 20 Sep 2007; Tobias Scherbaum + php-5.2.4_p20070914-r2.ebuild: + ppc stable, bug #191034 + + 20 Sep 2007; Jeroen Roovers + php-5.2.4_p20070914-r2.ebuild: + Stable for HPPA (bug #191034). + +*php-5.2.4_p20070914-r2 (19 Sep 2007) + + 19 Sep 2007; Christian Hoffmann + +php-5.2.4_p20070914-r2.ebuild: + adding php-5.2.4_p20070914-r2 as per bug 191034 + * fix CVE-2007-4887 (dl() segfault with very long filenames) + * fix CVE-2007-4783, CVE-2007-4840 (segfault in iconv functions with very + long charset parameters); + * use almost-official suhosin again (based on the patch for 5.2.4) + * fix crashes in xmlrpc + +*php-5.2.4_p20070914 (14 Sep 2007) + + 14 Sep 2007; Christian Hoffmann + +php-5.2.4_p20070914.ebuild: + adding php-5.2.4_p20070914, bug 191034 + +*php-5.2.4 (08 Sep 2007) + + 08 Sep 2007; Christian Hoffmann -php-5.2.3-r3.ebuild, + +php-5.2.4.ebuild: + adding php-5.2.4, bug 191034; removing broken php-5.2.3* + + 29 Aug 2007; Markus Rothe + php-4.4.8_pre20070816.ebuild: + Stable on ppc64; bug #189172 + + 24 Aug 2007; Raúl Porcel + php-4.4.8_pre20070816.ebuild: + alpha/ia64 stable wrt security #189172 + + 23 Aug 2007; Christoph Mende + php-4.4.8_pre20070816.ebuild: + Stable on amd64 wrt security bug #189172 + + 22 Aug 2007; Tobias Scherbaum + php-4.4.8_pre20070816.ebuild: + ppc stable, bug #189172 + + 21 Aug 2007; Gustavo Zacarias + php-4.4.8_pre20070816.ebuild: + Stable on sparc wrt security #189172 + + 20 Aug 2007; Markus Ullmann + php-4.4.8_pre20070816.ebuild: + Stable on x86 wrt security bug #189172 + + 19 Aug 2007; Jeroen Roovers php-4.4.8_pre20070816.ebuild: + Stable for HPPA (bug #189172). + +*php-4.4.8_pre20070816 (18 Aug 2007) + + 18 Aug 2007; Christian Hoffmann + +php-4.4.8_pre20070816.ebuild: + version bump to fix several security issues, see bug 189172 + + 15 Aug 2007; Jeroen Roovers + php-5.2.4_pre200708051230-r2.ebuild: + Stable for HPPA (bug #180556). + + 14 Aug 2007; Tobias Scherbaum + php-5.2.4_pre200708051230-r2.ebuild: + ppc stable, bug #180556 + + 14 Aug 2007; Markus Rothe + php-5.2.4_pre200708051230-r2.ebuild: + Stable on ppc64; bug #180556 + + 13 Aug 2007; Gustavo Zacarias + php-5.2.4_pre200708051230-r2.ebuild: + Stable on sparc wrt #180556 + + 12 Aug 2007; Steve Dibb + php-5.2.4_pre200708051230-r2.ebuild: + amd64 stable, bug 180556 + + 11 Aug 2007; Raúl Porcel + php-5.2.4_pre200708051230-r2.ebuild: + alpha/ia64/x86 stable wrt #180556 + +*php-5.2.4_pre200708051230-r2 (09 Aug 2007) + + 09 Aug 2007; Tobias Scherbaum + +php-5.2.4_pre200708051230-r2.ebuild: + Import from the php-testing overlay wrt security bug #180556, thanks to + Christian Hoffmann! + + 30 Jul 2007; Gustavo Zacarias php-5.2.3-r3.ebuild: + Stable on sparc wrt security #180556 + + 30 Jul 2007; Markus Rothe php-5.2.3-r3.ebuild: + Stable on ppc64; bug #180556 + + 28 Jul 2007; Jeroen Roovers php-5.2.3-r3.ebuild: + Stable for HPPA (bug #180556). + + 28 Jul 2007; Steve Dibb php-5.2.3-r3.ebuild: + amd64 stable, security bug 180556 + + 28 Jul 2007; Raúl Porcel php-5.2.3-r3.ebuild: + alpha/ia64/x86 stable wrt #180556 + + 28 Jul 2007; Tobias Scherbaum php-5.2.3-r3.ebuild: + ppc stable, bug #180556 + +*php-5.2.3-r3 (22 Jul 2007) + + 22 Jul 2007; Tobias Scherbaum + +php-5.2.3-r3.ebuild: + Import php-5.2.3-r3 from the php-experimental overlay wrt security bug + #180556, thanks to Christian Hoffmann! + + 30 Jun 2007; Luca Longinotti -php-4.4.6.ebuild, + -php-5.2.1-r3.ebuild: + Remove old versions. + + 12 May 2007; Markus Rothe php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + Stable on ppc64; bug #169372 + + 12 May 2007; Luca Longinotti + files/70_mod_php.conf-apache2, files/70_mod_php5_concurr.conf-apache2, + -files/70_mod_php5.conf-apache1, files/70_mod_php5.conf-apache2, + files/20php4-envd, files/20php5-envd, -files/70_mod_php.conf-apache1, + files/70_mod_php_concurr.conf-apache2, php-4.4.6.ebuild, php-4.4.7.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild, php-5.2.2-r1.ebuild: + Apache 1.X masking (fix ebuilds to not require apache-1*). + + 10 May 2007; Jeroen Roovers php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + Stable for HPPA (bug #169372). + + 10 May 2007; Jose Luis Rivero php-5.2.2-r1.ebuild: + Stable on alpha wrt security bug #169372 + + 09 May 2007; Luca Longinotti php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + AMD64 stable for security bug #169372. + + 09 May 2007; Jose Luis Rivero php-4.4.7.ebuild: + Stable on alpha wrt security bug #169372 + + 08 May 2007; Raúl Porcel php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + ia64 + x86 stable wrt security bug 169372 + + 08 May 2007; Gustavo Zacarias php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + Stable on sparc wrt security #169372 + + 08 May 2007; Tobias Scherbaum php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + ppc stable, bug #169372 + +*php-5.2.2-r1 (07 May 2007) +*php-4.4.7 (07 May 2007) + + 07 May 2007; Luca Longinotti +php-4.4.7.ebuild, + +php-5.2.2-r1.ebuild: + PHP 4.4.7 and 5.2.2, fixes various security issues, see bug #169372. + + 04 May 2007; Luca Longinotti -php-4.3.11-r5.ebuild, + -php-4.4.4-r6.ebuild, php-4.4.6.ebuild, -php-5.0.5-r5.ebuild, + -php-5.1.6-r6.ebuild, php-5.1.6-r11.ebuild: + Remove 4.3 and 5.0 and old versions. + + 31 Mar 2007; Raúl Porcel php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + ia64 stable wrt bug 153911 + + 31 Mar 2007; Raúl Porcel php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + ia64 stable wrt security bug 153911 + + 10 Mar 2007; Jose Luis Rivero php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + Stable on alpha wrt security #153911 + + 08 Mar 2007; Gustavo Zacarias php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + Stable on sparc wrt security #153911 + + 06 Mar 2007; René Nussbaumer php-5.1.6-r11.ebuild: + Stable on hppa. See bug #153911. + + 06 Mar 2007; Tobias Scherbaum php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + Stable on ppc wrt bug #153911. + + 06 Mar 2007; Christian Faulhammer php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + stable x86; security bug 153911 + + 06 Mar 2007; Jeroen Roovers php-5.2.1-r3.ebuild: + Stable for HPPA (bug #153911). + + 06 Mar 2007; Markus Rothe php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + Stable on ppc64; bug #153911 + + 06 Mar 2007; Jeroen Roovers php-4.4.6.ebuild: + Stable for HPPA (bug #153911). + + 05 Mar 2007; Luca Longinotti php-4.4.6.ebuild, + php-5.1.6-r11.ebuild, php-5.2.1-r3.ebuild: + Keyword on amd64 wrt bug #153911. + +*php-5.2.1-r3 (05 Mar 2007) +*php-5.1.6-r11 (05 Mar 2007) +*php-4.4.6 (05 Mar 2007) + + 05 Mar 2007; Luca Longinotti +files/20php4-envd, + +files/20php5-envd, -php-4.4.4-r8.ebuild, +php-4.4.6.ebuild, + -php-5.1.6-r8.ebuild, +php-5.1.6-r11.ebuild, +php-5.2.1-r3.ebuild: + New PHP versions, fix lots of bugs, add Suhosin support. + + 26 Nov 2006; Luca Longinotti -php-4.4.3-r1.ebuild, + -php-4.4.4-r4.ebuild, -php-5.1.4-r6.ebuild, -php-5.1.6-r4.ebuild: + Cleanup old versions, thanks arch-teams! + + 29 Oct 2006; Bryan Østergaard php-4.4.4-r6.ebuild: + Stable on ia64, bug 150261. + +*php-5.1.6-r8 (27 Oct 2006) +*php-4.4.4-r8 (27 Oct 2006) + + 27 Oct 2006; Luca Longinotti +php-4.4.4-r8.ebuild, + +php-5.1.6-r8.ebuild: + Add new PHP revisions, fix a few issues, improve a open_basedir check. + + 24 Oct 2006; Joshua Jackson php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable x86; bug #150261 + + 15 Oct 2006; Tobias Scherbaum php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + hppa stable, bug #150261 + + 14 Oct 2006; Aron Griffis php-5.1.6-r6.ebuild: + Mark 5.1.6-r6 stable on ia64. #150261 + + 11 Oct 2006; Fernando J. Pereda php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable on alpha as per security bug #150261 + + 11 Oct 2006; Markus Rothe php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable on ppc64; bug #150261 + + 11 Oct 2006; Gustavo Zacarias php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable on sparc wrt security #150261 + + 11 Oct 2006; Tobias Scherbaum php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + ppc stable, bug #150261 + +*php-5.1.6-r6 (07 Oct 2006) +*php-4.4.4-r6 (07 Oct 2006) + + 07 Oct 2006; Luca Longinotti +php-4.4.4-r6.ebuild, + +php-5.1.6-r6.ebuild: + Fix security bug #150261, amd64 stable. + + 16 Sep 2006; Rene Nussbaumer php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on hppa. See bug #147061. + + 14 Sep 2006; Bryan Østergaard php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on ia64, bug 147061. + + 11 Sep 2006; Tobias Scherbaum php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + ppc stable, bug #147061 + + 11 Sep 2006; Thomas Cort php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on alpha and amd64 wrt security Bug #147061. + + 11 Sep 2006; Markus Rothe php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on ppc64; bug #147061 + + 11 Sep 2006; Jason Wever php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on SPARC wrt security bug #147061. + + 10 Sep 2006; php-4.4.4-r4.ebuild, php-5.1.6-r4.ebuild: + Stable on x86, security bug #147061. + +*php-5.1.6-r4 (10 Sep 2006) +*php-4.4.4-r4 (10 Sep 2006) + + 10 Sep 2006; Luca Longinotti -php-4.4.4-r2.ebuild, + +php-4.4.4-r4.ebuild, -php-5.1.6-r2.ebuild, +php-5.1.6-r4.ebuild: + Revision bump to fix INI restore issue and other bugs, updates Hardened-PHP + to 0.4.15. Cleanup old versions. + + 10 Sep 2006; Luca Longinotti -php-4.4.2.ebuild, + -php-4.4.2-r2.ebuild, -php-4.4.2-r6.ebuild: + Remove old versions. + + 08 Sep 2006; Bryan Østergaard php-4.4.3-r1.ebuild: + Stable on ia64. + + 05 Sep 2006; Luca Longinotti -php-5.1.4.ebuild, + -php-5.1.4-r4.ebuild: + Remove old versions. + + 03 Sep 2006; Bryan Østergaard php-5.1.4-r6.ebuild: + Stable on ia64. + +*php-5.1.6-r2 (30 Aug 2006) +*php-4.4.4-r2 (30 Aug 2006) + + 30 Aug 2006; Luca Longinotti -php-4.4.4-r1.ebuild, + +php-4.4.4-r2.ebuild, -php-5.1.6-r1.ebuild, +php-5.1.6-r2.ebuild: + Revbump to force upgrading because of missing mbstring headers which can + break extension compiles. + +*php-5.1.6-r1 (29 Aug 2006) +*php-4.4.4-r1 (29 Aug 2006) + + 29 Aug 2006; Luca Longinotti -php-4.4.4.ebuild, + +php-4.4.4-r1.ebuild, -php-5.1.6.ebuild, +php-5.1.6-r1.ebuild: + Revbump to force reverting back to bundled libpcre, the external one can + result is strange brokenness in PHP, see bug #145220 for more info. + +*php-5.1.6 (29 Aug 2006) +*php-4.4.4 (29 Aug 2006) + + 29 Aug 2006; Luca Longinotti +php-4.4.4.ebuild, + +php-5.1.6.ebuild: + Version bump, add PHP 4.4.4 and PHP 5.1.6 with Hardened-PHP 0.4.14, fixes + bug #144297. Also switch the eclasses to use external libraries for PCRE and + SQLite support, fixes bug #145220. + + 15 Aug 2006; Joshua Jackson php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + See below for the security bug that makes this x86 stable + + 14 Aug 2006; Jose Luis Rivero php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on alpha wrt security bug #143126 + + 12 Aug 2006; Jason Wever php-4.4.3-r1.ebuild: + Updated the patchset for php-4.4.3-r1 to fix bug #143508 (with permission + from jakub). + + 12 Aug 2006; Rene Nussbaumer php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on hppa. See bug #143126. + + 12 Aug 2006; Markus Rothe php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on ppc64; bug #143126 + + 10 Aug 2006; Luca Longinotti php-4.4.3-r1.ebuild: + Retry with manually diffed patch, works here now, hopefully out there too. ;) + + 10 Aug 2006; Luca Longinotti php-4.4.3-r1.ebuild: + Revert, now it got even worse, fails on some of my systems too. :S + + 10 Aug 2006; Luca Longinotti php-4.4.3-r1.ebuild: + Update patchset for PHP 4.4.3, it seems one of the patches randomly failed + to apply on some systems, probably due to bad line-endings. + + 10 Aug 2006; Gustavo Zacarias php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on sparc wrt security #143126 + + 10 Aug 2006; Tobias Scherbaum php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + ppc stable, bug #143126 + +*php-5.1.4-r6 (10 Aug 2006) +*php-4.4.3-r1 (10 Aug 2006) + + 10 Aug 2006; Luca Longinotti +php-4.4.3-r1.ebuild, + +php-5.1.4-r6.ebuild: + Version/revision bump, fixes security bug #143126. Add support for the PHP + test suite, activated by FEATURES="test". + + 20 Jul 2006; Luca Longinotti php-4.3.11-r5.ebuild, + php-4.4.2.ebuild, php-4.4.2-r2.ebuild, php-4.4.2-r6.ebuild, + php-5.0.5-r5.ebuild, php-5.1.4.ebuild, php-5.1.4-r4.ebuild: + Fix bug #141098. + + 18 Jul 2006; Luca Longinotti php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on amd64 wrt bug #133524. + + 18 Jul 2006; Joshua Jackson php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable x86; security bug #133524 + + 18 Jul 2006; Thomas Cort php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on alpha wrt security Bug #133524. + + 17 Jul 2006; Markus Rothe php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on ppc64; bug #133524 + + 17 Jul 2006; Tobias Scherbaum php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + ppc stable, bug #133524 + + 16 Jul 2006; Jason Wever php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on SPARC wrt security bug #133524. + +*php-5.1.4-r4 (14 Jul 2006) +*php-4.4.2-r6 (14 Jul 2006) + + 14 Jul 2006; Luca Longinotti + +files/70_mod_php5_concurr.conf-apache2, + +files/70_mod_php_concurr.conf-apache2, +files/php4-ldvs, + +files/php5-ldvs, php-4.3.11-r5.ebuild, php-4.4.2.ebuild, + php-4.4.2-r2.ebuild, -php-4.4.2-r5.ebuild, +php-4.4.2-r6.ebuild, + php-5.0.5-r5.ebuild, php-5.1.4.ebuild, -php-5.1.4-r3.ebuild, + +php-5.1.4-r4.ebuild: + Restructure PHP ebuilds and eclasses to accomodate for future expansion and + new features, cleaner separation between eclasses and ebuilds. Fixes + security related bugs #133524, #136566, #138180, #135860 and bugs #137568, + #134171, #138665. + + 13 Jul 2006; Luca Longinotti -php-5.1.2.ebuild: + Remove PHP 5.1.2. + +*php-5.1.4-r3 (20 Jun 2006) +*php-4.4.2-r5 (20 Jun 2006) + + 20 Jun 2006; Luca Longinotti -php-4.4.2-r3.ebuild, + +php-4.4.2-r5.ebuild, -php-5.1.4-r1.ebuild, +php-5.1.4-r3.ebuild: + Revision bumps. Fix bug #105489 and add a couple of other fixes for various + bugs. + + 18 Jun 2006; Bryan Østergaard php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on ia64, bug 131135. + +*php-5.1.4-r1 (29 May 2006) +*php-4.4.2-r3 (29 May 2006) + + 29 May 2006; Luca Longinotti +php-4.4.2-r3.ebuild, + +php-5.1.4-r1.ebuild: + New revisions, fix a couple of bugs, and update Hardened-PHP patch to 0.4.11. + + 18 May 2006; Diego Pettenò php-4.4.2-r2.ebuild: + Add ~x86-fbsd keyword to 4.4 version. + + 06 May 2006; Jason Wever php-4.4.2-r2.ebuild: + Stable on SPARC wrt security bug #131135. + + 06 May 2006; Markus Rothe php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on ppc64; bug #131135 + + 06 May 2006; Mark Loeser php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on x86; bug #131135 + + 05 May 2006; php-4.4.2-r2.ebuild, php-5.1.4.ebuild: + Stable on alpha wrt security Bug #131135. + + 05 May 2006; Rene Nussbaumer php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on hppa. See bug #131135. + + 05 May 2006; Tobias Scherbaum php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + ppc stable, bug #131135 + + 05 May 2006; Gustavo Zacarias php-5.1.4.ebuild: + Stable on sparc wrt security #131135 + + 05 May 2006; Luca Longinotti php-5.1.4.ebuild: + Readd ~x86-fbsd keyword to PHP 5.1.4 which I dropped accidentally, sorry! + Update digests to reflect the fixed patchset, please make sure you have the + php-patchset-4.4.2-r3.tar.bz2 with the md5sum of + eac1d9e4aa78195953e33e566a1f39ce, thanks, and sorry again. ;) + + 05 May 2006; Jon Hood php-5.1.4.ebuild, + php-4.4.2-r2.ebuild: + Stable on amd64, #131135. + +*php-5.1.4 (05 May 2006) +*php-4.4.2-r2 (05 May 2006) + + 05 May 2006; Luca Longinotti -php-4.4.2-r1.ebuild, + +php-4.4.2-r2.ebuild, -php-5.1.2-r1.ebuild, +php-5.1.4.ebuild: + Sync with PHP overlay, fixes various bugs and security bugs, see bug #131135 + for more details. + + 23 Apr 2006; Diego Pettenò php-5.1.2-r1.ebuild: + Add ~x86-fbsd keyword. + + 20 Apr 2006; Luca Longinotti php-4.3.11-r5.ebuild, + php-4.4.2.ebuild, php-4.4.2-r1.ebuild, php-5.0.5-r5.ebuild, + php-5.1.2.ebuild, php-5.1.2-r1.ebuild: + Don't die on USE=-*, ebuild part. + +*php-5.1.2-r1 (13 Apr 2006) +*php-4.4.2-r1 (13 Apr 2006) + + 13 Apr 2006; Luca Longinotti +php-4.4.2-r1.ebuild, + +php-5.1.2-r1.ebuild: + Add new revisions to fix an issue with the MySQL charsets. + See bug #129761 about it. + + 28 Mar 2006; Luca Longinotti + files/70_mod_php.conf-apache1, files/70_mod_php.conf-apache2, + files/70_mod_php5.conf-apache1, files/70_mod_php5.conf-apache2: + Revert config changes for bug #127645. + + 28 Mar 2006; Luca Longinotti + files/70_mod_php.conf-apache1, files/70_mod_php.conf-apache2, + files/70_mod_php5.conf-apache1, files/70_mod_php5.conf-apache2: + Change config files to fix bug #127645. + + 24 Mar 2006; Luca Longinotti + files/70_mod_php.conf-apache1, files/70_mod_php5.conf-apache1, + files/70_mod_php5.conf-apache2, php-4.3.11-r5.ebuild, + -php-4.4.1-r3.ebuild, php-4.4.2.ebuild, php-5.0.5-r5.ebuild, + php-5.1.2.ebuild: + Introduce usage of phpconfutils eclass to handle USE flag dependencies + automatically, allowing to build dev-lang/php without intervention on + default USE flags, solves bug #120088. Fix bug #122379. + + 14 Mar 2006; Joshua Jackson php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable php-4.4.2 and 5.1.2 for x86; bug #125878 + + 13 Mar 2006; Rene Nussbaumer php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable on hppa. See bug #125878. + + 12 Mar 2006; Markus Rothe php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable on ppc64; bug #125878 + + 12 Mar 2006; Tobias Scherbaum php-4.4.2.ebuild, + php-5.1.2.ebuild: + ppc stable, bug #125878 + + 12 Mar 2006; Jason Wever php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable on SPARC wrt security bug #125878. + + 12 Mar 2006; Fernando J. Pereda php-5.1.2.ebuild: + Stable on alpha wrt security bug #125878 + + 12 Mar 2006; Simon Stelling php-4.4.2.ebuild, + php-5.1.2.ebuild: + stable on amd64 wrt bug 125878 + + 12 Mar 2006; Fernando J. Pereda php-4.4.2.ebuild: + Stable on alpha wrt security bug #125878 + +*php-5.1.2 (12 Mar 2006) +*php-4.4.2 (12 Mar 2006) + + 12 Mar 2006; Luca Longinotti + -files/4-any/php4-fastbuild.patch, -files/4-any/php4-imap-symlink.diff, + -files/4-any/php4-iodbc-config.diff, +files/70_mod_php.conf-apache1, + +files/70_mod_php.conf-apache2, -files/4-any/php4-libtool-1.5.patch, + -files/4-any/php4-uClibc-have_dn_skipname.patch, + -files/4-any/php4-with-iodbc.diff, +files/70_mod_php5.conf-apache1, + +files/70_mod_php5.conf-apache2, -files/4-any/apache-1.3/70_mod_php.conf, + -files/4-any/apache-2.0/70_mod_php.conf, + -files/5.0-any/php5-imap-symlink.diff, + -files/5.0-any/php5-iodbc-config.diff, + -files/5.0-any/php5-libtool-1.5.patch, -files/5.0-any/php5-prefork.patch, + -files/5.0-any/php5-soap_persistence_session.diff, + -files/5.0-any/php5-with-iodbc.diff, + -files/5.0-any/apache-1.3/70_mod_php5.conf, + -files/5.0-any/apache-2.0/70_mod_php5.conf, + -files/5.1-any/php5-fastbuild.patch, + -files/5.1-any/php5-imap-symlink.diff, + -files/5.1-any/php5-iodbc-config.diff, -files/5.1-any/php5-prefork.patch, + -files/5.1-any/php5-soap_persistence_session.diff, + -files/5.1-any/php5-with-iodbc.diff, + -files/5.1-any/apache-1.3/70_mod_php5.conf, + -files/5.1-any/apache-2.0/70_mod_php5.conf, php-4.3.11-r5.ebuild, + php-4.4.1-r3.ebuild, +php-4.4.2.ebuild, php-5.0.5-r5.ebuild, + -php-5.1.1.ebuild, +php-5.1.2.ebuild: + Sync with PHP Overlay: reworked ebuilds, eclasses and patchsets to be easier + to maintain. Add PHP 4.4.2 and PHP 5.1.2 to the tree, fixing bugs #125878 + and #118846. Fix too bugs #120908, #123376, #122724 and #121190. + + 24 Feb 2006; Jeroen Roovers php-5.0.5-r5.ebuild: + Stable on hppa (preparation for bug #119461). + + 21 Feb 2006; Jeroen Roovers php-5.0.5-r5.ebuild: + Marked ~hppa. + + 26 Jan 2006; Jeroen Roovers php-4.4.1-r3.ebuild: + Marked stable on hppa (bug #102649). + + 26 Jan 2006; Jeroen Roovers php-5.1.1.ebuild: + Marked ~hppa (bug #119461). + + 25 Jan 2006; Bryan Østergaard php-4.3.11-r5.ebuild, + php-4.4.1-r3.ebuild: + stable on amd64 + + 22 Jan 2006; Simon Stelling php-5.0.5-r5.ebuild: + stable on amd64 + + 22 Jan 2006; php-4.3.11-r5.ebuild: + Added ~ppc keyword to php-4.3.11-r5 + + 21 Jan 2006; Jason Wever php-4.3.11-r5.ebuild, + php-4.4.1-r3.ebuild, php-5.0.5-r5.ebuild: + Stable on SPARC wrt bug #119461. + + 21 Jan 2006; php-5.0.5-r5.ebuild: + Added ppc keyword to php-4.4.1-r3, php-5.0.5-r5. bug 119461 + + 19 Jan 2006; Krzysiek Pawlik php-4.3.11-r5.ebuild, + php-4.4.1-r3.ebuild, php-5.0.5-r5.ebuild: + Stable on x86. + + 18 Jan 2006; Markus Rothe php-4.4.1-r3.ebuild, + php-5.0.5-r5.ebuild: + Stable on ppc64; bug #119461 + + 10 Jan 2006; Luca Longinotti + -files/4.3.11/php4.3.11-apache2sapi.patch, + -files/4.3.11/php4.3.11-apachesapi.patch, + -files/4.3.11/php4.3.11-curl-open_basedir.patch, + -files/4.3.11/php4.3.11-fopen_wrappers.patch, + -files/4.3.11/php4.3.11-gd-safe_mode.patch, + -files/4.3.11/php4.3.11-globals_overwrite.patch, + -files/4.3.11/php4.3.11-mbstring-header_inj.patch, + -files/4.3.11/php4.3.11-multilib-search-path.patch, + -files/4.3.11/php4.3.11-pcre-security.patch, + -files/4.3.11/php4.3.11-phpinfo_xss.patch, + -files/4.3.11/php4.3.11-pspell-ext-segf.patch, + -files/4.4.1/php4.4.1-apache2sapi.patch, + -files/4.4.1/php4.4.1-curl-open_basedir.patch, + -files/4.4.1/php4.4.1-current_key_by_reference.patch, + -files/4.4.1/php4.4.1-gd-safe_mode.patch, + -files/4.4.1/php4.4.1-mbstring-header_inj.patch, + -files/4.4.1/php4.4.1-multilib-search-path.patch, + -files/5.0.5/php5.0.5-apache2sapi.patch, + -files/5.0.5/php5.0.5-curl-open_basedir.patch, + -files/5.0.5/php5.0.5-fopen_wrappers.patch, + -files/5.0.5/php5.0.5-gd-safe_mode.patch, + -files/5.0.5/php5.0.5-globals_overwrite.patch, + -files/5.0.5/php5.0.5-mbstring-header_inj.patch, + -files/5.0.5/php5.0.5-multilib-search-path.patch, + -files/5.0.5/php5.0.5-obj-serialize.patch, + -files/5.0.5/php5.0.5-pspell-ext-segf.patch, + -files/5.0.5/php5.0.5-tsrm-gcc4.patch, + -files/5.1.1/php5.1.1-curl-gcry_threads.patch, + -files/5.1.1/php5.1.1-ming-config.patch, + -files/5.1.1/php5.1.1-multilib-search-path.patch, php-4.3.11-r5.ebuild, + php-4.4.1-r3.ebuild, php-5.0.5-r5.ebuild, php-5.1.1.ebuild: + Move version-specific patches into external tarballs. + + 05 Jan 2006; Luca Longinotti + +files/5.1.1/php5.1.1-curl-gcry_threads.patch, php-5.1.1.ebuild: + Fix bug #117767. + +*php-5.1.1 (28 Dec 2005) +*php-5.0.5-r5 (28 Dec 2005) +*php-4.4.1-r3 (28 Dec 2005) +*php-4.3.11-r5 (28 Dec 2005) + + 28 Dec 2005; Luca Longinotti + files/4-any/php4-imap-symlink.diff, files/4-any/php4-iodbc-config.diff, + +files/4.3.11/php4.3.11-apache2sapi.patch, + +files/4.3.11/php4.3.11-apachesapi.patch, + +files/4.3.11/php4.3.11-curl-open_basedir.patch, + -files/4.3.11/php4.3.11-curl_safemode.patch, + +files/4.3.11/php4.3.11-gd-safe_mode.patch, + -files/4.3.11/php4.3.11-gd_safe_mode.patch, + +files/4.3.11/php4.3.11-mbstring-header_inj.patch, + +files/4.3.11/php4.3.11-multilib-search-path.patch, + -files/4.3.11/php4.3.11-session_save_path-segf.patch, + -files/4.4.0/php4.4.0-curl_safemode.patch, + -files/4.4.0/php4.4.0-fopen_wrappers.patch, + -files/4.4.0/php4.4.0-gd_safe_mode.patch, + -files/4.4.0/php4.4.0-globals_overwrite.patch, + -files/4.4.0/php4.4.0-pcre-security.patch, + -files/4.4.0/php4.4.0-phpinfo_xss.patch, + -files/4.4.0/php4.4.0-pspell-ext-segf.patch, + -files/4.4.0/php4.4.0-session_save_path-segf.patch, + +files/4.4.1/php4.4.1-apache2sapi.patch, + +files/4.4.1/php4.4.1-curl-open_basedir.patch, + +files/4.4.1/php4.4.1-gd-safe_mode.patch, + +files/4.4.1/php4.4.1-mbstring-header_inj.patch, + -files/4.4.1/php4.4.1-mod_rewrite-crash.patch, + +files/4.4.1/php4.4.1-multilib-search-path.patch, + files/5.0-any/php5-iodbc-config.diff, + -files/5.0.4/php5.0.4-curl_safemode.patch, + -files/5.0.4/php5.0.4-fopen_wrappers.patch, + -files/5.0.4/php5.0.4-gd_safe_mode.patch, + -files/5.0.4/php5.0.4-globals_overwrite.patch, + -files/5.0.4/php5.0.4-pcre-security.patch, + -files/5.0.4/php5.0.4-phpinfo_xss.patch, + -files/5.0.4/php5.0.4-pspell-ext-segf.patch, + -files/5.0.4/php5.0.4-session_save_path-segf.patch, + -files/5.0.4/php5.0.4-xmlrcp-ccode.diff, + +files/5.0.5/php5.0.5-apache2sapi.patch, + +files/5.0.5/php5.0.5-curl-open_basedir.patch, + -files/5.0.5/php5.0.5-curl_safemode.patch, + +files/5.0.5/php5.0.5-gd-safe_mode.patch, + -files/5.0.5/php5.0.5-gd_safe_mode.patch, + +files/5.0.5/php5.0.5-mbstring-header_inj.patch, + +files/5.0.5/php5.0.5-multilib-search-path.patch, + -files/5.0.5/php5.0.5-session_save_path-segf.patch, + +files/5.0.5/php5.0.5-tsrm-gcc4.patch, + files/5.1-any/php5-iodbc-config.diff, + +files/5.1.1/php5.1.1-ming-config.patch, + +files/5.1.1/php5.1.1-multilib-search-path.patch, -php-4.3.11-r4.ebuild, + +php-4.3.11-r5.ebuild, -php-4.4.0-r4.ebuild, -php-4.4.1-r2.ebuild, + +php-4.4.1-r3.ebuild, -php-5.0.4-r4.ebuild, -php-5.0.5-r4.ebuild, + +php-5.0.5-r5.ebuild, +php-5.1.1.ebuild: + Sync with PHP Overlay. Delete PHP 4.4.0 and PHP 5.0.4, add PHP 5.1.1. Update + a lot of patches, update Hardened-PHP patches, add lib64 patch for multilib + systems. Fixes many bugs. + + 19 Nov 2005; Markus Rothe php-4.4.1-r2.ebuild, + php-5.0.5-r4.ebuild: + Added ~ppc64 keywords; bug #102649 + + 10 Nov 2005; Jason Wever php-4.4.1-r2.ebuild: + Added ~sparc keyword as all arches but ~x86 were dropped from the 4.4.1 + ebuilds. + +*php-5.0.5-r4 (04 Nov 2005) +*php-5.0.4-r4 (04 Nov 2005) +*php-4.4.1-r2 (04 Nov 2005) +*php-4.4.0-r4 (04 Nov 2005) +*php-4.3.11-r4 (04 Nov 2005) + + 04 Nov 2005; Luca Longinotti + files/4.3.11/php4.3.11-session_save_path-segf.patch, + files/5.0.4/php5.0.4-session_save_path-segf.patch, + files/4.4.0/php4.4.0-session_save_path-segf.patch, + files/5.0.5/php5.0.5-session_save_path-segf.patch, -php-4.3.11-r3.ebuild, + +php-4.3.11-r4.ebuild, -php-4.4.0-r3.ebuild, +php-4.4.0-r4.ebuild, + -php-4.4.1-r1.ebuild, +php-4.4.1-r2.ebuild, -php-5.0.4-r3.ebuild, + +php-5.0.4-r4.ebuild, -php-5.0.5-r3.ebuild, +php-5.0.5-r4.ebuild: + Revbump to fix a bug in the Apache2 SAPI and a bug with key() and current(). + + 04 Nov 2005; Luca Longinotti + files/4.3.11/php4.3.11-globals_overwrite.patch, + files/4.4.0/php4.4.0-globals_overwrite.patch, + +files/4.4.1/php4.4.1-current_key_by_reference.patch, + files/5.0.4/php5.0.4-globals_overwrite.patch, + files/5.0.5/php5.0.5-globals_overwrite.patch, php-4.4.1-r1.ebuild: + Fix for http://bugs.php.net/bug.php?id=35067. + +*php-4.4.1-r1 (03 Nov 2005) + + 03 Nov 2005; Luca Longinotti + +files/4.4.1/php4.4.1-mod_rewrite-crash.patch, -php-4.4.1.ebuild, + +php-4.4.1-r1.ebuild: + Update Hardened-PHP to latest version for PHP 4.4.1 and 5.0.5, fix bug in + the Apache2 SAPI of PHP 4.4.1 (mentioned in bug #111032). + +*php-5.0.5-r3 (02 Nov 2005) +*php-5.0.4-r3 (02 Nov 2005) +*php-4.4.1 (02 Nov 2005) +*php-4.4.0-r3 (02 Nov 2005) +*php-4.3.11-r3 (02 Nov 2005) + + 02 Nov 2005; Luca Longinotti + +files/4.3.11/php4.3.11-curl_safemode.patch, + +files/4.3.11/php4.3.11-globals_overwrite.patch, + +files/4.3.11/php4.3.11-phpinfo_xss.patch, + +files/4.4.0/php4.4.0-curl_safemode.patch, + +files/4.4.0/php4.4.0-globals_overwrite.patch, + +files/4.4.0/php4.4.0-phpinfo_xss.patch, + +files/5.0.4/php5.0.4-curl_safemode.patch, + +files/5.0.4/php5.0.4-globals_overwrite.patch, + +files/5.0.4/php5.0.4-phpinfo_xss.patch, + +files/5.0.5/php5.0.5-curl_safemode.patch, + +files/5.0.5/php5.0.5-globals_overwrite.patch, -php-4.3.11-r2.ebuild, + +php-4.3.11-r3.ebuild, -php-4.4.0-r2.ebuild, +php-4.4.0-r3.ebuild, + +php-4.4.1.ebuild, -php-5.0.4-r2.ebuild, +php-5.0.4-r3.ebuild, + -php-5.0.5-r2.ebuild, +php-5.0.5-r3.ebuild: + Security-update: fix bugs #111032, #111015, #111011 and bug #111014. Also + add PHP 4.4.1 to the tree, wich fixes those vulnerabilities. + +*php-5.0.5-r2 (31 Oct 2005) +*php-5.0.4-r2 (31 Oct 2005) +*php-4.4.0-r2 (31 Oct 2005) +*php-4.3.11-r2 (31 Oct 2005) + + 31 Oct 2005; Luca Longinotti + -files/4.4.0/php4.3.11-pcre-security.patch, + +files/4.4.0/php4.4.0-fopen_wrappers.patch, + +files/4.4.0/php4.4.0-gd_safe_mode.patch, + files/4.4.0/php4.4.0-pcre-security.patch, + +files/4.4.0/php4.4.0-pspell-ext-segf.patch, + +files/4.4.0/php4.4.0-session_save_path-segf.patch, + -files/4.4.0/apache-1.3/70_mod_php.conf, + -files/4.4.0/apache-2.0/70_mod_php.conf, + +files/4-any/php4-fastbuild.patch, +files/4-any/php4-imap-symlink.diff, + +files/4-any/php4-iodbc-config.diff, + +files/5.0-any/php5-imap-symlink.diff, + +files/4-any/php4-libtool-1.5.patch, + +files/4-any/php4-uClibc-have_dn_skipname.patch, + +files/4-any/php4-with-iodbc.diff, +files/5.0-any/php5-iodbc-config.diff, + +files/4-any/apache-1.3/70_mod_php.conf, + +files/5.0-any/php5-libtool-1.5.patch, + +files/4-any/apache-2.0/70_mod_php.conf, + +files/4.3.11/php4.3.11-fopen_wrappers.patch, + +files/4.3.11/php4.3.11-gd_safe_mode.patch, + +files/4.3.11/php4.3.11-pcre-security.patch, + +files/4.3.11/php4.3.11-pspell-ext-segf.patch, + +files/4.3.11/php4.3.11-session_save_path-segf.patch, + -files/4.4.0/fastbuild.patch, -files/4.4.0/php4-imap-symlink.diff, + -files/4.4.0/php4-iodbc-config.diff, -files/4.4.0/php4-libtool-1.5.patch, + -files/4.4.0/php4-with-iodbc.diff, +files/5.0-any/php5-prefork.patch, + +files/5.0-any/php5-soap_persistence_session.diff, + +files/5.0-any/php5-with-iodbc.diff, + +files/5.0-any/apache-1.3/70_mod_php5.conf, + +files/5.0-any/apache-2.0/70_mod_php5.conf, + -files/5.0.0/php5-imap-symlink.diff, -files/5.0.0/php5-iodbc-config.diff, + -files/5.0.0/php5-libtool-1.5.patch, + -files/5.0.0/php5.0.4-pcre-security.patch, + -files/5.0.0/php5.0.4-xmlrcp-ccode.diff, + -files/5.0.0/php5.0.5-obj-serialize.patch, + +files/5.0.4/php5.0.4-fopen_wrappers.patch, + +files/5.0.4/php5.0.4-gd_safe_mode.patch, + +files/5.0.4/php5.0.4-pcre-security.patch, + +files/5.0.4/php5.0.4-pspell-ext-segf.patch, + +files/5.0.4/php5.0.4-session_save_path-segf.patch, + +files/5.0.4/php5.0.4-xmlrcp-ccode.diff, + +files/5.0.5/php5.0.5-fopen_wrappers.patch, + +files/5.0.5/php5.0.5-gd_safe_mode.patch, + +files/5.0.5/php5.0.5-obj-serialize.patch, + +files/5.0.5/php5.0.5-pspell-ext-segf.patch, + +files/5.0.5/php5.0.5-session_save_path-segf.patch, + +files/5.1-any/php5-fastbuild.patch, + +files/5.1-any/php5-imap-symlink.diff, + +files/5.1-any/php5-iodbc-config.diff, +files/5.1-any/php5-prefork.patch, + +files/5.1-any/php5-soap_persistence_session.diff, + +files/5.1-any/php5-with-iodbc.diff, + +files/5.1-any/apache-1.3/70_mod_php5.conf, + +files/5.1-any/apache-2.0/70_mod_php5.conf, + -files/5.1.0/php5-imap-symlink.diff, -files/5.1.0/php5-iodbc-config.diff, + -files/5.1.0/php5-prefork.patch, -files/5.1.0/php5-with-iodbc.diff, + -files/5.1.0/php5_soap_persistence_session.diff, + -files/5.1.0/apache-1.3/70_mod_php5.conf, + -files/5.1.0/apache-2.0/70_mod_php5.conf, -php-4.3.11-r1.ebuild, + +php-4.3.11-r2.ebuild, -php-4.4.0-r1.ebuild, +php-4.4.0-r2.ebuild, + -php-5.0.4-r1.ebuild, +php-5.0.4-r2.ebuild, -php-5.0.5-r1.ebuild, + +php-5.0.5-r2.ebuild: + New-style PHP update: fix quotation of some vars, change URI of a mirror, + change ordering of patches in the files/ directory, add 'mnogosearch' USE + flag, add 'oci8-instant-client' USE flag, add 'pic' USE flag, add 'cjk' USE + flag, delete 'png' and 'jpeg' USE flags now directly controlled by 'gd' USE + flag, change PHP extensions enabling/disabling system, fix a bug with + Apache1 + fastbuild, fix elibtoolize call (bug #106176) and fix bugs #99312, + #109669, #102943, #107602, #99225, #108834. + + 24 Sep 2005; Jason Wever php-5.0.5-r1.ebuild: + Added ~sparc keyword. + +*php-5.0.5-r1 (18 Sep 2005) +*php-5.0.4-r1 (18 Sep 2005) +*php-4.4.0-r1 (18 Sep 2005) +*php-4.3.11-r1 (18 Sep 2005) + + 18 Sep 2005; Benedikt Boehm + +files/4.4.0/php4-libtool-1.5.patch, +files/5.0.0/php5-libtool-1.5.patch, + +files/4.4.0/php4.3.11-pcre-security.patch, + +files/4.4.0/php4.4.0-pcre-security.patch, + +files/5.0.0/php5.0.4-pcre-security.patch, + +files/5.0.0/php5.0.4-xmlrcp-ccode.diff, + +files/5.0.0/php5.0.5-obj-serialize.patch, files/4.4.0/fastbuild.patch, + -files/5.0.0/php5-hphp-acinclude.patch, + -files/4.4.0/php4-hphp-acinclude.patch, -php-4.3.11.ebuild, + +php-4.3.11-r1.ebuild, -php-4.4.0.ebuild, +php-4.4.0-r1.ebuild, + -php-5.0.4.ebuild, +php-5.0.4-r1.ebuild, -php-5.0.5.ebuild, + +php-5.0.5-r1.ebuild: + Fix security issue in bundled PCRE lib for PHP 4.3.11, 4.4.0 and 5.0.4, bug #102373. + Fix object serialization bug in PHP 5.0.5, bug #105374. + Fix Hardened-PHP support for all PHP releases. + Various compilation fixes for all PHP releases. + Various dependency fixes for all PHP releases. + Deleted 'dbm' USE flag from all PHP ebuilds, it's not supported upstream. + Changed 'java' USE flag to 'java-internal' USE flag for PHP4. + + 17 Sep 2005; Marcus D. Hanwell php-5.0.4.ebuild: + Fixed up the remaining deps, tested here and looks good. Marking ~amd64, bug + 102649. + + 17 Sep 2005; Marcus D. Hanwell php-4.4.0.ebuild: + Fixed up the remaining deps, tested here and looks good. Marking ~amd64, bug + 102649. + + 17 Sep 2005; Brian Harring php-4.4.0.ebuild, + php-5.0.4.ebuild: + Backed out ~amd64 keywording. bad deps. + + 16 Sep 2005; Christian Parpart php-4.4.0.ebuild, + php-5.0.4.ebuild: + added to ~amd64 + + 14 Sep 2005; Joseph Jezak php-5.0.4.ebuild: + Marked ~ppc for bug #105673. + + 14 Sep 2005; Joseph Jezak php-4.4.0.ebuild, + php-5.0.5.ebuild: + Marked ~ppc for bug #105673. + +*php-4.3.11 (11 Sep 2005) + + 11 Sep 2005; Benedikt Boehm +php-4.3.11.ebuild: + add 4.3.11, b/c 4.4.0 breaks compatibility + remove some archs, get your deps tested! + + 09 Sep 2005; Jason Wever php-4.4.0.ebuild, + php-5.0.4.ebuild: + Added ~sparc keyword to help fix the broken dependencies of + dev-php/PEAR-Date-1.4.3-r1. + +*php-4.4.0 (08 Sep 2005) + + 08 Sep 2005; Stuart Herbert + +files/4.4.0/php4-hphp-acinclude.patch, + +files/5.0.0/php5-hphp-acinclude.patch, php-4.4.0.ebuild, php-5.0.4.ebuild, + php-5.0.5.ebuild: + Hardened-PHP fix from the overlay + Slight change to symlink creation behaviour + + 07 Sep 2005; Konstantin Arkhipov php-5.0.4.ebuild, + php-5.0.5.ebuild: + Added to ~amd64. + +*php-5.0.5 (06 Sep 2005) + + 06 Sep 2005; Sebastian Bergmann +php-5.0.5.ebuild: + Version bump. + + 04 Sep 2005; Stuart Herbert + +files/5.1.0/php5-imap-symlink.diff, +files/5.1.0/php5-iodbc-config.diff, + +files/5.1.0/php5-prefork.patch, +files/5.1.0/php5-with-iodbc.diff, + +files/5.1.0/php5_soap_persistence_session.diff: + Added missing patch files for PHP 5.0 from the overlay + + 05 Sep 2005; ChangeLog: + Initial version; replaces older dev-php/* packages + + diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest new file mode 100644 index 0000000..3089435 --- /dev/null +++ b/dev-lang/php/Manifest @@ -0,0 +1,38 @@ +AUX 20php5-envd 145 SHA256 efaae9e6ae5f7010e073c2ab6d8a9dda009f0707c7d7b0c027e142c94f7041a4 SHA512 581aa86479e3cd584ee1bc6dc6d4a135fe8ec343fe5519566d728d81f7018cfb23658bd0c0368951d380982c75adbb4f45acf3c146868aaf4e4ec8e9f2fad1ce WHIRLPOOL b9cfe0e80ba437bbc6008223c268bdafcde306ba8083dce96815804f3e1ec0937706e0db091149785a0076a6c6eaab8f7dff28578b706e84b4bb4e67850a4ecd +AUX 70_mod_php5.conf-apache2 348 SHA256 5bb8a45570582b4389a7d3feea0398e1c13ed4ced96e559b9406ed8c965dea8c SHA512 c74ec09c3c4124a15e14ece4bb769bb889466160cc0878ca3d55d5afc30fd4c05673c40428b75be669f72e82ba29f60ed19767caca77bba8adc12aae1c83f6f3 WHIRLPOOL fd503ec904a3853b90f8f4cc2042cf9014fdb1383a508d22e680559009b5b1e0beb5a09909a393e53868a64712c63e35642915787fa4176af07cb594adedb441 +AUX 70_mod_php5.conf-apache2-r1 374 SHA256 815c1ca23c9afe8479568ceaac4057eb91ea5444fbd863866b29adb4eea2c82b SHA512 a97bcd6a37ba85752b8929b597f7cb75aa69ccbe6cf1f353db167a8b23d66b8a0044d3969dea0368a2b32a6f486dccd60b9cae9d4391da2e5d7fe4dcf21c79c7 WHIRLPOOL 3bf5fdc7a2ea483116468be579ff40b92134264f69011d49c2f9ab4c88845024579920bd865d8bb5f2e834bb3da9674fcadadcbf22381cf0d10dd81a99d9fcb2 +AUX eblits/common-v1.eblit 379 SHA256 65c909a6d0501a6746518f539c4a4021426469cbf20b2a212fb0d60b48da5362 SHA512 c85127d09b64a1b2c39057aa5b0397468ce6566f2d2fb604cb68796431979eafaf125f23cb1dd64397f6e55faa565ce96f75a013cd70fcf2a9cf65aa8297c01e WHIRLPOOL 8b195a7ad59af474ea2765cb2a3867927e76eade827a3daca155773ef8cda3b48753e4520a90a9a90f75223df8c631b584ba16fc21c551b1c7b29d53992a4846 +AUX eblits/common-v2.eblit 379 SHA256 8c15442b04b0216342ef6f2b8565cb3510f6850fe67745d5697861e2f7759194 SHA512 2da1176a288f509f8920c6f3d690fb71ce73ebf7651f6404f678b4567227c930e7965259a026ccdded20acbe3ee03be596fd6253da51d132f6b0ea0165963e55 WHIRLPOOL 1a4cd516d27034a99a4f4aff4334961556faa2c3f014070403faf27999060db4faae1fa7160ca94ab0465f9fc85b4b5eb9e2eb5e1880343e30daa0d3ff28fdae +AUX eblits/pkg_postinst-v1.eblit 2637 SHA256 a9a323ed29f81252928fed49b2f010288d519233f15092648335e2615b7fe78d SHA512 22c6a7b350d8d72f9dc256ad19adf9df512e15dd1b0ddd50f6a2844a5a4953f78cba970f43c9448d8658cb1d60ee5e5195c9c8cdc2d699e43c3e4b6f38cb80f0 WHIRLPOOL 802efb267fd2da55118d32e6de2968b02386600be96cbe95c6cea59c992251374019dd654623d57aed4dd6364e1c194f816e0f0f66e1f09bec3471260f861898 +AUX eblits/pkg_postinst-v2.eblit 2224 SHA256 50c68ceb6a8f53dbac66cba9766882bfdad1aaf453593aeee693179f55c1ffb8 SHA512 2716500ab3067e6b2f2f43e20a7e3f5527a41c4f778b2498af7040c4c1e9da19d3aeb9371c720e28dc0c09c6377c2c61a85cdfc6fee5dfec515bfef3746f3965 WHIRLPOOL 15697a43a80817594ee42eb4b5b9773d057481d76f1338c9311bd0a727a180845fa29dda02d4b18808de359b2c4305cd33f810da9a753ab8a963d4e6d09f0a26 +AUX eblits/pkg_setup-v1.eblit 648 SHA256 6a3cb75ca657b521320b124bac77586026be826ae1947a2d988137212f3f3d6a SHA512 b6e548aa4da9e2d25bbbc76242bacfb205fdafe778d78e8f89566baa12910dd67dbc93dc8e458fd224f08a490554d5f53d223619d63a61fd280d061291549960 WHIRLPOOL 4ab4fab9d1e5e0f9a45189a997d6ae3333093af692ce75ecb8d513cfd7da2f0f481b8894c6af62a5c4f827b5e1bb01c6c08e3f6ab25e1db2fd02c430171cf96a +AUX eblits/pkg_setup-v2.eblit 393 SHA256 17f9316065960ff0ca56aeec918c2c9e6c80ffdf951a238f7271a589753e320c SHA512 b5714b40c99d6e2eda73cb42cac888ea97680df1ea1c8c430a978c34460a0099f3c9b3438a59bef14acef4ab6653122fdaf10e11bafca8225a87e7ea6f61f416 WHIRLPOOL cbc7d50da571141d28859af2e252b77c79e40fb8a6605019e0a34aa8bf6fc100aa8a61ff2855c9e453ee3d837e8965e68873eec248f2941e4ed2e6c2803a166a +AUX eblits/pkg_setup-v3.eblit 283 SHA256 5905eb3e6d984a9f8fe49e088adad99db7249f62a957c19f0ae4bf3f56ecaecd SHA512 e1c7fc1bb0a59021767a7bf848de88b0cea602ad596f40768b3b98e90713d41abfc690a15578eaf575ce3841bc52069d229b5470b3e5cd78cb962007b6da8eee WHIRLPOOL a91534151f0dbd804a4af634ca9c29e3008759664a307cd5338d518d4bbc0790bc473f71e645543682e7c25953e524b224d14e9463a2cbbbbde56d3f43e81d77 +AUX eblits/src_compile-v1.eblit 1283 SHA256 5ec76ae24304c5f803a615a98394c219018da1b1ce2018f92f6ac8c5becf6c99 SHA512 2ff139344b874de9f032248687fa51a75d5df5eacb5ff6e879c26391624fbd6c4744034a34b0109bab3e434fd6f189c0dea4e298818ebf2c0c94973cdbf721d0 WHIRLPOOL 2971e61a6932a7c2c19bb40b26f67d529560d08116c37d7b645dc008710d7cc8cd75dcc8feca95eeb556687910968dbe90b20554ad0ca97a624cd7f9c9221482 +AUX eblits/src_configure-snapshots.eblit 10639 SHA256 ee92ea71f6c766f6f10fda63aab36885265c95e245e8107fb2e9c10573f6e2ba SHA512 26fb6f4ca99ba820f4e7a9deb5577e8a2dc7105d3a78e7abffeaab4a13e47070bf95ce2ffcd1c257cb946fc40f6c6f98a99181994d9110276010ae1f79e8921b WHIRLPOOL 9fa6ec37381bd92b5fcb0ff9808642df7c9b041e428797bfdeb0c31414f388dbca087d2591718c032fc0253794622f46f916caed6da0d6bd23e7453981a03073 +AUX eblits/src_configure-v1.eblit 10979 SHA256 dc769b7c5846248fdd5d1a930a3e9b614d550bfcc78f09ecd1c08607796f0206 SHA512 ed170b561266e8b23444d7fcd9e4188344cce35120b5921310d3847f0e9e3292b6f4fde91430a5eb303467dc6db3bd746f8f228b3ae6d8ff0d4f5c5dd7a71964 WHIRLPOOL f9421269cf8b47813fd6ad24b1c30ab98213bd39e047d692f42d12fbd727bfaba0082dc438655726765971942b0025318d44a60e5b662bd4e61efceeff009e8a +AUX eblits/src_configure-v2.eblit 10855 SHA256 cd3002b6c9bd91dc9d7471e416cc631247fb2ad9d7b68981b26a3f83f84c916a SHA512 a91d4a34d5ea56196715c908dfca39f54c100761dfddad3a4c87014cc58da013e5b2327fd7eed46e36913336d21f393289cfbe59ad4bb1abeb592b562a8c43af WHIRLPOOL 2666978310e910f98325ea54e8e61bb980526e216d3a84135cf71c89acd676020e3cea6c7e69dc2dab03804ae67e0270ea2835dc1bcfde7a03ca95e80f1923d8 +AUX eblits/src_configure-v3.eblit 6616 SHA256 fad5767d67d14a0b03e9ad3bc4abe300d8772f905c07fae60a4431e40d9d7ac6 SHA512 2dd131bfd4a4b340d3c01431667d04821f7c1ac3fb6a12243f3790719ee110e34e0bfa3160bf202c59bb06caf1c7cd74e8c169659c95e3eb35f9ac1d93be2750 WHIRLPOOL f5369a1269db3a6463520984ae7bb997e86219668157ba318e7959de529e0be2c06a35dae10fd2010e0c6de736397ffffc06e29ed8a6cab715fc020d3f68a804 +AUX eblits/src_configure-v521.eblit 10844 SHA256 ad875ca45e9ad975c0d7a3cbedc27c5035aa048d7aa935221a15e47cbca63c3d SHA512 eab9ac435d179b5452d00062977f7e6b858a98a40942f1edb4c063753a003f4dd61c126d84f4d490fa9a1a321d41ef3fd852d81673bfa0da03604338e3d7b87e WHIRLPOOL 80e4f15c6dcee14634e52d454ee8d359d37eca711f19ae9f0d7c2534ddf8c45d406a1928a855fb92d0af3caed7f5f2986fc76fb40480debaa4788a64098a1a53 +AUX eblits/src_install-v1.eblit 5146 SHA256 3bddd375764b0ed00cb30e65036c67f96c56ea0ebfd70bcdc61b7465d1500d36 SHA512 37d9d322eb4f4cdc6259f77789923d7d9a343047723d4ba9fde6566cfd291f77a0acaaff292158966059f6d5506e47a89a5fb5913e3240cb7d11dac9956c12d6 WHIRLPOOL f696f53e667fed56cbfa273c03c9eeded6ef50984a91d27bd932e5751e57b4396b85fad75593b529d9fb2f463cc8073bacc750bd469e7703da6795e71b989a58 +AUX eblits/src_install-v2.eblit 5302 SHA256 466e7350126a2c27814c693c7c7fcc45ee53eb4d267846d5b27a02c377b5407d SHA512 33206725c2fca32e7d6c2f126c62723bd03f2df01b460603ae0efabae92d3246180e3093a6a4cf0226132d61f57d3e4fb63607b38d65301bafc38cb1c07f7f1b WHIRLPOOL b5e3e1ac0f1a6d52fd3e769f146522dba8ceb8588810c6b249cda2830eda69a9fc6c6eb5f47340b9bedf4f7c7a5fbbeb2f51bc41216628dc090ec268f9a820b1 +AUX eblits/src_install-v3.eblit 4199 SHA256 fb210f93a5c1d8794cc0d76d0e66ab92efffc5acaf5243574a26e2a4432da9b5 SHA512 e8ddad46dbfd33c097c21597e2e78c8b832e5b86c792e936b538540a09ef96c198ae5fbdce52b903bd04d31c906594810f83d212758e48f0263b659f14689d37 WHIRLPOOL 139dfd97a00e44331333e121ad01f9586becca4bb837d4b62ef76dc58d2d20a17fe3d42d95078c1ab4a912fbeb214ec362381aea673ffb68e8876394cdc88643 +AUX eblits/src_prepare-snapshots.eblit 2238 SHA256 411ce9d56008461da4592dcf623fcff40c33aac479d13544f84cc974c5c232ea SHA512 b29094bf7fdc1df64736c141adfd4eb2226eabd5a20a0ab8d0e5ed08565a3fa5031aae7b7506bedf0856d4c4794cff14c5b5a7eda1bdf4f51ce3c7aac6f1e84f WHIRLPOOL 85d9384b1cb3ab1cd106eaa0dc203cad148f8dca415a4476acfe3cbb5000ffc0c90d225893d8ffbf6d724b2b515277a45fae280252dfb0201bd59d04d2f4d8a5 +AUX eblits/src_prepare-v2.eblit 2604 SHA256 fe7534260fb81a012b8021b5d555756ce8733ad192bf51cedd94f12963811790 SHA512 02b7132e78d41829832c3d0c7e8c47a3ed8747074f5092c2f649c93c31ba84e3ecb7ada259986182077251886449622aebdedfd301cf80a11c1cf47603cea4f4 WHIRLPOOL ad420b8c11e3093b24a4fac793170fba401e0fea293970aa6803c8ce13a1c4aaddc54b14def5ea42885a261aa3658eac44b08313dab8042bd5bba1fb441742e4 +AUX eblits/src_prepare-v3.eblit 2649 SHA256 7ea3a5351fabeb050161e64c09b98ff945bbdb8b4d1a7fb83d6b4645f277b486 SHA512 0c1c5caf47e5955116ddec5b87022920a37f079211aaefb25c9a14b0c269343e808593b4727ea7e3d07487ed0a74de0e683ded318200c304943149548a75c34b WHIRLPOOL 055c5bf47e2c02537e24421cc796316b8a390a0d5447149eda5398b9708e05bfd71167e5ea2fe959432a6abb508f84d7f7cbc84748048c87e7777468bb6ab78e +AUX eblits/src_prepare-v4.eblit 2317 SHA256 7c18252a49a6d8e071471d14624f284d7b3ad8b95cad4a001e10e6e521f4c9b1 SHA512 e5c8200cd393266f9e608ebe680e74d539f897ab288303ba4b09963c09c3fdcdcd850443c7e76b0f9343f977fec148f448391e94ffb0e81fe46c69e7e9d7bca6 WHIRLPOOL 0246d02c8e1856acbae723ed53f8286921fed7b671ecf2fd7c712d7345ca6dcebfe79e09e83c77df06e4fa6dff0f3e25c92027f2bc9bed2c2b69018cbbcac987 +AUX eblits/src_test-v1.eblit 1530 SHA256 67501925cfdaf9043e4985d0f1c797e62fb42bf47e6863b5ffdecb104888e82c SHA512 41c599ba577bc48bd4300592b5d515718cbf498165c601b87d7aaa098e045c56853c1c73932530262181b76c8cb854ceb252e947b35e8d619204e18680bed246 WHIRLPOOL d7439cfd95fff55ee7d91b3001e700dbd2dceae1dcbea7750e3df434c0f020860aa0555f383487dc0fc5fa7c16ac9769c58130be43fb9dd44286b6c7294b6698 +AUX php-fpm-gentooified.patch 1846 SHA256 262c02ad320408314e7635d403bd89b711374fcee09ecb37375e3406a0cc944a SHA512 8137389f2a4ad33a4d5b67a260659fc0c64b7e4ac276626e40d939ebd2829736f0e75beb535b09bb15ccc91c1e7eacdfd954c688d07c43b56317f2bbd85f06b7 WHIRLPOOL 8d7169b8a1cdefa4c0e2db5675e4aa03a9de4372594c91f7fd7c27505d7377964a33c0ba44d3872e68f9b9ac2d50ad557a7a5203cf528435a5f6bf6b41ff9499 +AUX php-fpm-r0.conf 12898 SHA256 8ebd676e058e5b64fbb8b5ed0be693e4da8f6fcedd5e427757afccc13504c48d SHA512 cfd93a8381f4a60a71bcf1bedae4889280eafcf92ba7a0f93ea164cdc87a29f598d80b9b98867d8cb966ef5e42f89a291959a84b592433b458cb7e364cec0e7d WHIRLPOOL 3fd4ce204895af20392e28381ab099344756c7a4ba5910b7e3f5c1d8c80bf96cf17eabdda3a801dc07ec8ebc8ead07833c0d7313419d7552e1f661dd2a8fc8bd +AUX php-fpm-r1.conf 12966 SHA256 c4308a92ade93812c6579b74a72cd1f3e1a35f7e63289722f461771d5702448c SHA512 3d421c1e8b8f6ecffbf8284a7f79a1e5cc3f0893b1a47f5ccd980d554b058c363c1e236aa3157c2b66791b3291c6e98981cc527d501328ccc3ccb34eee2950ef WHIRLPOOL 1f591597698e28fc47197e02ba680728363c50781d146cf2598403f4678781eabc4f4d2abe2c0bfe9a25065491d3cb514cc5a9dcee4edd9d9438f51181f43b2a +AUX php-fpm-r3.init 920 SHA256 1e4c1c932f1e60040383f7d38bd212ce8fbe8ca3ac387bbf3b6e660a7870ba84 SHA512 a5a6b496ce3040efebf659a9643dcf35df53794a73c7c34e829c0cc6fdd0dcdfe358f65439d89df798ef8c5df3b33b1d8d23824aa922025eced9b5247671775f WHIRLPOOL f794cd966655f229e5b69031db4aa3179085cad441c7943908d499794f82d492eff4d83534197332dad911643616bfb70dbf17b36c6b8b45a85a51bae8ec53fa +AUX php-fpm-r4.init 954 SHA256 aba14f04126f474d5809b9a7976aca65c6ec895896de736b606c798c4aa04366 SHA512 38709086159f46699bc9d5132ab8298fae3967d9d4e8726fd150e47f04868e3581e7730085066bd04792c69945cef923f98a723325e13fb555d16e37664cb8ba WHIRLPOOL b07cd17357093ed78582dddda3f907d8550f53934ca84d9beb407d55e16125af7decb1f22cc010db23f9bc5582017b118a1f9674730534a34271eaff2f9aaed7 +AUX php-fpm.conf 12898 SHA256 8ebd676e058e5b64fbb8b5ed0be693e4da8f6fcedd5e427757afccc13504c48d SHA512 cfd93a8381f4a60a71bcf1bedae4889280eafcf92ba7a0f93ea164cdc87a29f598d80b9b98867d8cb966ef5e42f89a291959a84b592433b458cb7e364cec0e7d WHIRLPOOL 3fd4ce204895af20392e28381ab099344756c7a4ba5910b7e3f5c1d8c80bf96cf17eabdda3a801dc07ec8ebc8ead07833c0d7313419d7552e1f661dd2a8fc8bd +AUX php-fpm.init 385 SHA256 baba8dab2cadc8bdf107e6fe5cede2f5faaabff1281781a0a30b3be79964c94e SHA512 a60fef565ca122c3b551564f493f1cca96d1fd6cef2bff455eaec2162482da88d92cb3fbbb2da64a5bb2aa6c2d291761c888a6bac561c52fda05632dbdeea3dd WHIRLPOOL ac721e59817045fd1a0bbab84b2c42fc2d11f7b66a3ec0c3d937c38177038a2b998fa9ae50daac705acf89f01b7b1cfd9dca6148361a9c8938d6078e739363df +AUX php5-ldvs 22 SHA256 b79d0e52b1b3b4543b31ad45525ae1c2814a27ea8e676772ab10bf6fb12dfe79 SHA512 689a0a12b3527741d2e47870c125e93be73a127e5e798c4b685ccb11653be5a8615faf3178c71a6346fe264d3c4ec76601bc05878fef67b9dbd2e45be59a344d WHIRLPOOL b24f193a1067f699c8efb199ba4e3f1fdd22c13dff98655206b30072ce8c8035fb4ed9288f694856f9978bd9935d3a5589cd968316920e712779c45b44897634 +DIST php-5.2.17.tar.bz2 9092312 SHA256 e81beb13ec242ab700e56f366e9da52fd6cf18961d155b23304ca870e53f116c SHA512 baf3b5038468c9fa7c1a9e0506ed23559c21ba8df29380498a24e8d31c4c5f3633f29b1bc2faa3e59c6e5336536c09e19a5462b0a9d5916181c08f1f19abbca8 WHIRLPOOL 94657976927ff8d45dc17c2db59ac86a4320d6d7b2b6d5b43c4862060495a4011ad9b73d9b57ea4eb46a38418683ac2ff16e93fa10bd4ad5842c50accbac3536 +DIST php-patchset-5.2.17-r0.tar.bz2 8369 SHA256 fb159a02faf5120dd9bc620bd3f3094735f181aa6893273bb7dd29771b8b23b2 SHA512 8e1f4de519f926ccabf04c7358f8568506943e8d3be474c8a656cccb19381553609db05ef3bfb97adc5f2976aafe589aa53f84f888bbcb41e231298d89566b39 WHIRLPOOL 77aada53720272656d82d1e9fdade8e25fa6d7e409de546e9c3ac0d274308734a1d254665de97c54a8c14da79e49acdfb2bfb960fbd97bc24bc9db0bd8a348ac +DIST suhosin-patch-5.2.16-0.9.7.patch.gz 23069 SHA256 aae115a318d80b3f32cedf876e7a8e4b932febb1b0c743c0b398003ebe122f91 SHA512 71f204c6c04cff4914c5f3d4d8d4e016e09a92a8e92d3a78ed2df482238ae6e8b71fb16ccadaca643d0fde07966ead02bcf3bee9c46725290e0a5ed603ec0ba0 WHIRLPOOL b3282acb99b48ad9edb89b45f12bf60b40bc9fd8d9bcf42a5402b8331e8d2e4a8fa52bd423c7a5fae2b7c1c93f0245d13019e6c85e1379d1749abb6d7f1a0a0c +EBUILD php-5.2.17.ebuild 9326 SHA256 c9c3f401c116037d6bb355e705cd6f90290466184d640cd9d058d7398b6f7162 SHA512 8c9945e0d5cf0ca3a775eeddeabf2277ae25b77113726790edefc262ae7375d471c8b338a1a6c18c0e4c7e643b303c22a9f813fa0bc96e82a13c4201d7a54f34 WHIRLPOOL e41e224cd54153fdee6cc2f838bc1a6e179d6445f7f7783c4fb3316f49b566ef2b21b2670a1dd3135a67b9a64e07aa4ee5870ccbf03df1f484480bdfeecd1c42 +MISC ChangeLog 87319 SHA256 9309eea9e9492bc0b14bd3d1001af37e0b6196409da92dc286bc948542e8b74a SHA512 245764a57d3be704df95c6692ef480c2fa6216c2d0439ae38bdd3bf88f3fc687c2d23f8734c8f629a5f64e047f7d5a5e19eca15e13edc906d2d0bd9eaccc456b WHIRLPOOL 94fd58bf26d7d5989d193981311497cdc9be372d1da284a69101fa0a3cd7934bbc184ad41d170d25ceacfb5d4addb798623644604971e4e5beed4d863e13b00d +MISC metadata.xml 2075 SHA256 3d8bc9305be300ef7ef92d18ba5476927ec90a5b6d43c2408936229590ff5ac5 SHA512 53506db4d02e573f0ee5e60231545f079aac4e3c20d9f4f0f68502c64a7164244105af806e86827192263c988f7c9e5145b87e840ca036bfc36601ede22d6d45 WHIRLPOOL 529db115d1a572cc823c3bfd1d501959a139384102773981bf24688ed97f11f3b4c6722e98734d95bcccbe2e1942e6903d0914c2413b979062b4147a3124edcf diff --git a/dev-lang/php/files/20php5-envd b/dev-lang/php/files/20php5-envd new file mode 100644 index 0000000..f6033ae --- /dev/null +++ b/dev-lang/php/files/20php5-envd @@ -0,0 +1,2 @@ +MANPATH="/usr/lib/php5/man/" +CONFIG_PROTECT_MASK="/etc/php/cli-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/" diff --git a/dev-lang/php/files/70_mod_php5.conf-apache2 b/dev-lang/php/files/70_mod_php5.conf-apache2 new file mode 100644 index 0000000..7ec8739 --- /dev/null +++ b/dev-lang/php/files/70_mod_php5.conf-apache2 @@ -0,0 +1,14 @@ + + # Load the module first + + LoadModule php5_module modules/libphp5.so + + + # Set it to handle the files + + AddHandler application/x-httpd-php .php .php5 .phtml + AddHandler application/x-httpd-php-source .phps + + + DirectoryIndex index.php index.phtml + diff --git a/dev-lang/php/files/70_mod_php5.conf-apache2-r1 b/dev-lang/php/files/70_mod_php5.conf-apache2-r1 new file mode 100644 index 0000000..50911ad --- /dev/null +++ b/dev-lang/php/files/70_mod_php5.conf-apache2-r1 @@ -0,0 +1,17 @@ + + # Load the module first + + LoadModule php5_module modules/libphp5.so + + + # Set it to handle the files + + SetHandler application/x-httpd-php + + + + SetHandler application/x-httpd-php-source + + + DirectoryIndex index.php index.phtml + diff --git a/dev-lang/php/files/eblits/common-v1.eblit b/dev-lang/php/files/eblits/common-v1.eblit new file mode 100644 index 0000000..ae21475 --- /dev/null +++ b/dev-lang/php/files/eblits/common-v1.eblit @@ -0,0 +1,9 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/common-v1.eblit,v 1.2 2010/10/08 18:25:10 olemarkus Exp $ + +php_set_ini_dir() { + PHP_INI_DIR="/etc/php/${1}-php${SLOT}" + PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext" + PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active" +} diff --git a/dev-lang/php/files/eblits/common-v2.eblit b/dev-lang/php/files/eblits/common-v2.eblit new file mode 100644 index 0000000..394dacb --- /dev/null +++ b/dev-lang/php/files/eblits/common-v2.eblit @@ -0,0 +1,9 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/common-v2.eblit,v 1.3 2010/10/08 18:25:10 olemarkus Exp $ + +php_set_ini_dir() { + PHP_INI_DIR="/etc/php/${1}-php${SLOT}" + PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext" + PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active" +} diff --git a/dev-lang/php/files/eblits/pkg_postinst-v1.eblit b/dev-lang/php/files/eblits/pkg_postinst-v1.eblit new file mode 100644 index 0000000..6a4bf86 --- /dev/null +++ b/dev-lang/php/files/eblits/pkg_postinst-v1.eblit @@ -0,0 +1,83 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v1.eblit,v 1.5 2011/08/22 13:42:39 olemarkus Exp $ + +eblit-php-pkg_postinst() { + # Output some general info to the user + if use apache2 ; then + APACHE2_MOD_DEFINE="PHP${PHP_MV}" + if use concurrentmodphp ; then + APACHE2_MOD_CONF="70_mod_php${PHP_MV}_concurr" + else + APACHE2_MOD_CONF="70_mod_php${PHP_MV}" + fi + apache-module_pkg_postinst + fi + + # Update Apache2 to use mod_php + if use apache2 ; then + "${ROOT}/usr/sbin/php-select" -t apache2 php${PHP_MV} > /dev/null 2>&1 + exitStatus=$? + if [[ ${exitStatus} == 2 ]] ; then + php-select apache2 php${PHP_MV} + elif [[ ${exitStatus} == 4 ]] ; then + ewarn "To make Apache2 use php-${PHP_MV}, use" + ewarn " php-select apache2 php${PHP_MV}" + ewarn + fi + fi + + # Create the symlinks for php-cli + if use cli ; then + "${ROOT}/usr/sbin/php-select" -t php php${PHP_MV} > /dev/null 2>&1 + exitStatus=$? + if [[ ${exitStatus} == 5 ]] ; then + php-select php php${PHP_MV} + elif [[ ${exitStatus} == 4 ]] ; then + ewarn "To make usr/bin/php point to php-${PHP_MV}, use" + ewarn " php-select php php${PHP_MV}" + ewarn + fi + fi + + # Create the symlinks for php-cgi + if use cgi ; then + "${ROOT}/usr/sbin/php-select" -t php-cgi php${PHP_MV} > /dev/null 2>&1 + exitStatus=$? + if [[ ${exitStatus} == 5 ]] ; then + php-select php-cgi php${PHP_MV} + elif [[ ${exitStatus} == 4 ]] ; then + ewarn "To make usr/bin/php-cgi point to php-${PHP_MV}, use" + ewarn " php-select php-cgi php${PHP_MV}" + ewarn + fi + fi + + # Create the symlinks for php-devel + "${ROOT}/usr/sbin/php-select" -t php-devel php${PHP_MV} > /dev/null 2>&1 + exitStatus=$? + if [[ $exitStatus == 5 ]] ; then + php-select php-devel php${PHP_MV} + elif [[ $exitStatus == 4 ]] ; then + ewarn "To make usr/bin/php-config and usr/bin/phpize point to php-${PHP_MV}, use" + ewarn " php-select php-devel php${PHP_MV}" + ewarn + fi + + ewarn "You may have to recompile third-party extensions now" + ewarn "(includes every dev-php5/pecl-* package and probably others in that category)" + ewarn "Also make sure that you merge in the correct extension_dir ini setting for all your" + ewarn "php.ini files." + ewarn + ewarn "Please read the upgrade guide: http://www.gentoo.org/proj/en/php/php-upgrading.xml" + ewarn + + if ( [[ -z SUHOSIN_VERSION ]] && use suhosin ) ; then + ewarn "The suhosin USE flag now only installs the suhosin patch!" + ewarn "If you want the suhosin extension, make sure you install" + ewarn " dev-php5/suhosin" + ewarn + fi +} + + diff --git a/dev-lang/php/files/eblits/pkg_postinst-v2.eblit b/dev-lang/php/files/eblits/pkg_postinst-v2.eblit new file mode 100644 index 0000000..408f35b --- /dev/null +++ b/dev-lang/php/files/eblits/pkg_postinst-v2.eblit @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit,v 1.13 2011/07/26 16:47:11 olemarkus Exp $ + +eblit-php-pkg_postinst() { + # Output some general info to the user + if use apache2 ; then + APACHE2_MOD_DEFINE="PHP5" + APACHE2_MOD_CONF="70_mod_php5" + apache-module_pkg_postinst + fi + + + # Create the symlinks for php + for m in ${SAPIS}; do + [[ ${m} == 'embed' ]] && continue; + if use $m ; then + local ci=$(eselect php show $m) + if [[ -z $ci ]]; then + eselect php set $m php${SLOT} + einfo "Switched ${m} to use php:${SLOT}" + einfo + elif [[ $ci != "php${SLOT}" ]] ; then + elog "To switch $m to use php:${SLOT}, run" + elog " eselect php set $m php${SLOT}" + elog + fi + fi + done + + elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order" + elog "to compile extensions for the ${SLOT} ABI" + elog + if ! use readline && use cli ; then + ewarn "Note that in order to use php interactivly, you need to enable" + ewarn "the readline USE flag or php -a will hang" + fi + elog + elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version." + elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either" + elog "'production' or 'development' in /etc/make.conf" + ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}" + + # check for not yet migrated old style config dirs + ls "${ROOT}"/etc/php/*-php5 &>/dev/null + if [[ $? -eq 0 ]]; then + ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config" + ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x" + fi + elog + elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:" + elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml" + elog + + if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then + ewarn "The suhosin USE flag now only installs the suhosin patch!" + ewarn "If you want the suhosin extension, make sure you install" + ewarn " dev-php5/suhosin" + ewarn + fi +} + diff --git a/dev-lang/php/files/eblits/pkg_setup-v1.eblit b/dev-lang/php/files/eblits/pkg_setup-v1.eblit new file mode 100644 index 0000000..8134d4b --- /dev/null +++ b/dev-lang/php/files/eblits/pkg_setup-v1.eblit @@ -0,0 +1,23 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_setup-v1.eblit,v 1.3 2011/03/17 16:34:47 olemarkus Exp $ + +eblit-php-pkg_setup() { + if use concurrentmodphp || use kolab ; then + ewarn "concurrentmodphp and kolab are Gentoo-specific experimental" + ewarn "patches. Before reporting any bugs to bugs.php.net, make sure to" + ewarn "rebuild PHP with those USE flags disabled" + ewarn + fi + + # Mail support + php_check_mta + + # Oracle support + php_check_oracle_8 + + phpconfutils_warn_about_external_deps + depend.apache_pkg_setup +} + + diff --git a/dev-lang/php/files/eblits/pkg_setup-v2.eblit b/dev-lang/php/files/eblits/pkg_setup-v2.eblit new file mode 100644 index 0000000..a5218b3 --- /dev/null +++ b/dev-lang/php/files/eblits/pkg_setup-v2.eblit @@ -0,0 +1,16 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_setup-v2.eblit,v 1.2 2011/03/17 16:34:47 olemarkus Exp $ + +eblit-php-pkg_setup() { + # Mail support + php_check_mta + + # Oracle support + php_check_oracle_8 + + phpconfutils_warn_about_external_deps + depend.apache_pkg_setup +} + + diff --git a/dev-lang/php/files/eblits/pkg_setup-v3.eblit b/dev-lang/php/files/eblits/pkg_setup-v3.eblit new file mode 100644 index 0000000..ca81906 --- /dev/null +++ b/dev-lang/php/files/eblits/pkg_setup-v3.eblit @@ -0,0 +1,9 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_setup-v3.eblit,v 1.1 2011/07/02 15:14:41 olemarkus Exp $ + +eblit-php-pkg_setup() { + depend.apache_pkg_setup +} + + diff --git a/dev-lang/php/files/eblits/src_compile-v1.eblit b/dev-lang/php/files/eblits/src_compile-v1.eblit new file mode 100644 index 0000000..cb0d56c --- /dev/null +++ b/dev-lang/php/files/eblits/src_compile-v1.eblit @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_compile-v1.eblit,v 1.6 2010/08/14 19:37:31 mabi Exp $ + +eblit-php-src_compile() { + # snmp seems to run during src_compile, too (bug #324739) + addpredict /usr/share/snmp/mibs/.index + + SAPI_DIR="${WORKDIR}/sapis" + + for sapi in ${SAPIS} ; do + use "${sapi}" || continue + + php_sapi_build "${sapi}" + php_sapi_copy "${sapi}" + done +} + +php_sapi_build() { + mkdir -p "${SAPI_DIR}/$1" + + cd "${WORKDIR}/sapis-build/$1" + emake || die "emake failed" +} + +php_sapi_copy() { + local sapi="$1" + local source="" + + case "$sapi" in + cli) + source="sapi/cli/php" + ;; + cgi) + source="sapi/cgi/php-cgi" + ;; + fpm) + source="sapi/fpm/php-fpm" + ;; + embed) + source="libs/libphp${PHP_MV}.so" + ;; + + apache2) + # apache2 is a special case; the necessary files + # (yes, multiple) are copied by make install, not + # by the ebuild; that's the reason, why apache2 has + # to be the last sapi + emake INSTALL_ROOT="${SAPI_DIR}/${sapi}/" install-sapi + ;; + + *) + die "unhandled sapi in php_sapi_copy" + ;; + esac + + if [[ "${source}" ]] ; then + cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI" + fi +} diff --git a/dev-lang/php/files/eblits/src_configure-snapshots.eblit b/dev-lang/php/files/eblits/src_configure-snapshots.eblit new file mode 100644 index 0000000..d8682e8 --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-snapshots.eblit @@ -0,0 +1,268 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-snapshots.eblit,v 1.1 2011/05/15 19:17:23 olemarkus Exp $ + +eblit-php-src_configure() { + PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" + + # This is a global variable and should be in caps. It isn't because the + # phpconfutils eclass relies on exactly this name... + # for --with-libdir see bug #327025 + my_conf=" + --prefix="${PHP_DESTDIR}" + --mandir="${PHP_DESTDIR}"/man + --infodir="${PHP_DESTDIR}"/info + --libdir="${PHP_DESTDIR}"/lib + --with-libdir=$(get_libdir) + --without-pear + $(use_enable threads maintainer-zts)" + + phpconfutils_init + + # extension USE flag shared + phpconfutils_extension_enable "bcmath" "bcmath" 1 + phpconfutils_extension_with "bz2" "bzip2" 1 + phpconfutils_extension_enable "calendar" "calendar" 1 + phpconfutils_extension_disable "ctype" "ctype" 0 + phpconfutils_extension_with "curl" "curl" 1 + phpconfutils_extension_with "curlwrappers" "curlwrappers" 0 + phpconfutils_extension_disable "dom" "xml" 0 + phpconfutils_extension_with "enchant" "enchant" 1 "/usr" + phpconfutils_extension_enable "exif" "exif" 1 + phpconfutils_extension_disable "fileinfo" "fileinfo" 1 + phpconfutils_extension_disable "filter" "filter" 0 + phpconfutils_extension_enable "ftp" "ftp" 1 + phpconfutils_extension_with "gettext" "nls" 1 + phpconfutils_extension_with "gmp" "gmp" 1 + phpconfutils_extension_disable "hash" "hash" 0 + phpconfutils_extension_with "mhash" "mhash" 0 + phpconfutils_extension_without "iconv" "iconv" 0 + phpconfutils_extension_enable "intl" "intl" 1 + phpconfutils_extension_disable "ipv6" "ipv6" 0 + phpconfutils_extension_disable "json" "json" 0 + phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr" + phpconfutils_extension_disable "libxml" "xml" 0 + phpconfutils_extension_enable "mbstring" "unicode" 1 + phpconfutils_extension_with "mcrypt" "crypt" 1 + phpconfutils_extension_with "mssql" "mssql" 1 + phpconfutils_extension_with "onig" "unicode" 0 "/usr" + phpconfutils_extension_with "openssl" "ssl" 0 + phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr" + phpconfutils_extension_enable "pcntl" "pcntl" 1 + phpconfutils_extension_disable "phar" "phar" 1 + phpconfutils_extension_disable "pdo" "pdo" 0 + phpconfutils_extension_with "pgsql" "postgres" 1 + phpconfutils_extension_disable "posix" "posix" 0 + phpconfutils_extension_with "pspell" "spell" 1 + phpconfutils_extension_with "recode" "recode" 1 + phpconfutils_extension_disable "simplexml" "simplexml" 0 + phpconfutils_extension_enable "shmop" "sharedmem" 0 + phpconfutils_extension_with "snmp" "snmp" 1 + phpconfutils_extension_enable "soap" "soap" 1 + phpconfutils_extension_enable "sockets" "sockets" 1 + phpconfutils_extension_without "sqlite3" "sqlite" 1 "/usr" + phpconfutils_extension_with "sybase-ct" "sybase-ct" 1 "/usr" + phpconfutils_extension_enable "sysvmsg" "sysvipc" 1 + phpconfutils_extension_enable "sysvsem" "sysvipc" 1 + phpconfutils_extension_enable "sysvshm" "sysvipc" 1 + phpconfutils_extension_with "tidy" "tidy" 1 + phpconfutils_extension_disable "tokenizer" "tokenizer" 0 + phpconfutils_extension_enable "wddx" "wddx" 1 + phpconfutils_extension_disable "xml" "xml" 0 + phpconfutils_extension_disable "xmlreader" "xmlreader" 0 + phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0 + phpconfutils_extension_with "xmlrpc" "xmlrpc" 1 + phpconfutils_extension_with "xsl" "xsl" 1 + phpconfutils_extension_enable "zip" "zip" 1 + phpconfutils_extension_with "zlib" "zlib" 1 + phpconfutils_extension_enable "debug" "debug" 0 + + # DBA support + if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ + || use qdbm ; then + my_conf="${my_conf} --enable-dba${shared}" + fi + + # DBA drivers support + phpconfutils_extension_with "cdb" "cdb" 0 + phpconfutils_extension_with "db4" "berkdb" 0 + phpconfutils_extension_enable "flatfile" "flatfile" 0 + phpconfutils_extension_with "gdbm" "gdbm" 0 + phpconfutils_extension_enable "inifile" "inifile" 0 + phpconfutils_extension_with "qdbm" "qdbm" 0 + + # Support for the GD graphics library + if use gd-external ; then + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "gd" "gd-external" 1 "/usr" + else + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr" + phpconfutils_extension_with "png-dir" "gd" 0 "/usr" + phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr" + # enable gd last, so configure can pick up the previous settings + phpconfutils_extension_with "gd" "gd" 0 + fi + + # IMAP support + if use imap ; then + phpconfutils_extension_with "imap" "imap" 1 + phpconfutils_extension_with "imap-ssl" "ssl" 0 + fi + + # Interbase/firebird support + if use interbase ; then + phpconfutils_extension_with "interbase" "interbase" 0 "/opt" + fi + + if use firebird ; then + phpconfutils_extension_with "interbase" "firebird" 0 "/usr" + fi + + # LDAP support + if use ldap ; then + if use oci8 ; then + phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" + else + phpconfutils_extension_with "ldap" "ldap" 1 + phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 + fi + fi + + # MySQL support + if use mysql ; then + if use mysqlnd ; then + phpconfutils_extension_with "mysql" "mysql" 1 "mysqlnd" + else + phpconfutils_extension_with "mysql" "mysql" 1 "/usr" + fi + phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" + fi + + # MySQLi support + if use mysqlnd ; then + phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd" + else + phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" + fi + + # ODBC support + if use odbc ; then + phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr" + phpconfutils_extension_with "adabas" "adabas" 1 + phpconfutils_extension_with "birdstep" "birdstep" 1 + phpconfutils_extension_with "dbmaker" "dbmaker" 1 + phpconfutils_extension_with "empress" "empress" 1 + if use empress ; then + phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 + fi + phpconfutils_extension_with "esoob" "esoob" 1 + # Needed to run conftest for IBM DB2 + [[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" + phpconfutils_extension_with "ibm-db2" "db2" 1 "${DB2_HOME}" + phpconfutils_extension_with "sapdb" "sapdb" 1 + phpconfutils_extension_with "solid" "solid" 1 + fi + + if use iodbc ; then + phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr" + fi + + # Oracle support + phpconfutils_extension_with "oci8" "oci8" 1 + if use oci8-instant-client ; then + OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ + sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ + sed -e 's|-r.*||g')" + + phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ + "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" + fi + + # PDO support + if use pdo ; then + phpconfutils_extension_with "pdo-dblib" "mssql" 1 + if use mysqlnd ; then + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "mysqlnd" + else + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr" + fi + phpconfutils_extension_with "pdo-pgsql" "postgres" 1 + phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "/usr" + phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr" + if use oci8 ; then + phpconfutils_extension_with "pdo-oci" "oci8" 1 + fi + if use oci8-instant-client ; then + phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ + "instantclient,/usr,${OCI8IC_PKG}" + fi + fi + + # readline/libedit support + phpconfutils_extension_with "readline" "readline" 0 + phpconfutils_extension_with "libedit" "libedit" 0 + + # Session support + if use session ; then + phpconfutils_extension_with "mm" "sharedmem" 0 + else + phpconfutils_extension_disable "session" "session" 0 + fi + + if use pic ; then + my_conf="${my_conf} --with-pic" + fi + + # we use the system copy of pcre + # --with-pcre-regex affects ext/pcre + # --with-pcre-dir affects ext/filter and ext/zip + my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" + + # Catch CFLAGS problems + php_check_cflags + + # Support user-passed configuration parameters + my_conf="${my_conf} ${EXTRA_ECONF:-}" + + # Support the Apache2 extras, they must be set globally for all + # SAPIs to work correctly, especially for external PHP extensions + + mkdir -p "${WORKDIR}/sapis-build" + for one_sapi in $SAPIS ; do + use "${one_sapi}" || continue + php_set_ini_dir "${one_sapi}" + + cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" + cd "${WORKDIR}/sapis-build/${one_sapi}" + + sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} + --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" + + for sapi in $SAPIS ; do + case "$sapi" in + cli|cgi|embed|fpm) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --enable-${sapi}" + else + sapi_conf="${sapi_conf} --disable-${sapi}" + fi + ;; + + apache2) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" + else + sapi_conf="${sapi_conf} --without-apxs2" + fi + ;; + esac + done + + econf ${sapi_conf} + done +} diff --git a/dev-lang/php/files/eblits/src_configure-v1.eblit b/dev-lang/php/files/eblits/src_configure-v1.eblit new file mode 100644 index 0000000..09838bd --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-v1.eblit @@ -0,0 +1,280 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v1.eblit,v 1.8 2010/10/24 11:48:42 mabi Exp $ + +eblit-php-src_configure() { + PHP_DESTDIR="/usr/$(get_libdir)/php${PHP_MV}" + + # This is a global variable and should be in caps. It isn't because the + # phpconfutils eclass relies on exactly this name... + # for --with-libdir see bug #327025 + my_conf=" + --prefix="${PHP_DESTDIR}" + --mandir="${PHP_DESTDIR}"/man + --infodir="${PHP_DESTDIR}"/info + --libdir="${PHP_DESTDIR}"/lib + --with-libdir=$(get_libdir) + --without-pear + $(use_enable threads maintainer-zts)" + + phpconfutils_init + + # extension USE flag shared + phpconfutils_extension_enable "bcmath" "bcmath" 1 + phpconfutils_extension_with "bz2" "bzip2" 1 + phpconfutils_extension_enable "calendar" "calendar" 1 + phpconfutils_extension_disable "ctype" "ctype" 0 + phpconfutils_extension_with "curl" "curl" 1 + phpconfutils_extension_with "curlwrappers" "curlwrappers" 0 + phpconfutils_extension_disable "dom" "xml" 0 + phpconfutils_extension_with "enchant" "enchant" 1 "/usr" + phpconfutils_extension_enable "exif" "exif" 1 + phpconfutils_extension_disable "fileinfo" "fileinfo" 1 + phpconfutils_extension_disable "filter" "filter" 0 + phpconfutils_extension_enable "ftp" "ftp" 1 + phpconfutils_extension_with "gettext" "nls" 1 + phpconfutils_extension_with "gmp" "gmp" 1 + phpconfutils_extension_disable "hash" "hash" 0 + phpconfutils_extension_without "iconv" "iconv" 0 + phpconfutils_extension_enable "intl" "intl" 1 + phpconfutils_extension_disable "ipv6" "ipv6" 0 + phpconfutils_extension_disable "json" "json" 0 + phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr" + phpconfutils_extension_disable "libxml" "xml" 0 + phpconfutils_extension_enable "mbstring" "unicode" 1 + phpconfutils_extension_with "mcrypt" "crypt" 1 + phpconfutils_extension_with "mssql" "mssql" 1 + phpconfutils_extension_with "onig" "unicode" 0 "/usr" + phpconfutils_extension_with "openssl" "ssl" 0 + phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr" + phpconfutils_extension_enable "pcntl" "pcntl" 1 + phpconfutils_extension_disable "phar" "phar" 1 + phpconfutils_extension_disable "pdo" "pdo" 0 + phpconfutils_extension_with "pgsql" "postgres" 1 + phpconfutils_extension_disable "posix" "posix" 0 + phpconfutils_extension_with "pspell" "spell" 1 + phpconfutils_extension_with "recode" "recode" 1 + phpconfutils_extension_disable "simplexml" "simplexml" 0 + phpconfutils_extension_enable "shmop" "sharedmem" 0 + phpconfutils_extension_with "snmp" "snmp" 1 + phpconfutils_extension_enable "soap" "soap" 1 + phpconfutils_extension_enable "sockets" "sockets" 1 + phpconfutils_extension_without "sqlite3" "sqlite3" 1 "/usr" + phpconfutils_extension_with "sybase-ct" "sybase-ct" 1 + phpconfutils_extension_enable "sysvmsg" "sysvipc" 1 + phpconfutils_extension_enable "sysvsem" "sysvipc" 1 + phpconfutils_extension_enable "sysvshm" "sysvipc" 1 + phpconfutils_extension_with "tidy" "tidy" 1 + phpconfutils_extension_disable "tokenizer" "tokenizer" 0 + phpconfutils_extension_enable "wddx" "wddx" 1 + phpconfutils_extension_disable "xml" "xml" 0 + phpconfutils_extension_disable "xmlreader" "xmlreader" 0 + phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0 + phpconfutils_extension_with "xmlrpc" "xmlrpc" 1 + phpconfutils_extension_with "xsl" "xsl" 1 + phpconfutils_extension_enable "zip" "zip" 1 + phpconfutils_extension_with "zlib" "zlib" 1 + phpconfutils_extension_enable "debug" "debug" 0 + + # DBA support + if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ + || use qdbm ; then + my_conf="${my_conf} --enable-dba${shared}" + fi + + # DBA drivers support + phpconfutils_extension_with "cdb" "cdb" 0 + phpconfutils_extension_with "db4" "berkdb" 0 + phpconfutils_extension_enable "flatfile" "flatfile" 0 + phpconfutils_extension_with "gdbm" "gdbm" 0 + phpconfutils_extension_enable "inifile" "inifile" 0 + phpconfutils_extension_with "qdbm" "qdbm" 0 + + # Support for the GD graphics library + if use gd-external ; then + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "gd" "gd-external" 1 "/usr" + else + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr" + phpconfutils_extension_with "png-dir" "gd" 0 "/usr" + phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr" + # enable gd last, so configure can pick up the previous settings + phpconfutils_extension_with "gd" "gd" 0 + fi + + # IMAP support + if use imap ; then + phpconfutils_extension_with "imap" "imap" 1 + phpconfutils_extension_with "imap-ssl" "ssl" 0 + fi + + phpconfutils_extension_with "interbase" "interbase" 0 "/opt" + phpconfutils_extension_with "interbase" "firebird" 0 "/usr" + + # LDAP support + if use ldap ; then + if use oci8 ; then + phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" + else + phpconfutils_extension_with "ldap" "ldap" 1 + phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 + fi + fi + + # MySQL support + if use mysql ; then + if use mysqlnd ; then + phpconfutils_extension_with "mysql" "mysql" 1 "mysqlnd" + else + phpconfutils_extension_with "mysql" "mysql" 1 "/usr" + fi + phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" + fi + + # MySQLi support + if use mysqlnd ; then + phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd" + else + phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" + fi + + # ODBC support + if use odbc ; then + phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr" + phpconfutils_extension_with "adabas" "adabas" 1 + phpconfutils_extension_with "birdstep" "birdstep" 1 + phpconfutils_extension_with "dbmaker" "dbmaker" 1 + phpconfutils_extension_with "empress" "empress" 1 + if use empress ; then + phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 + fi + phpconfutils_extension_with "esoob" "esoob" 1 + # Needed to run conftest for IBM DB2 + [[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" + phpconfutils_extension_with "ibm-db2" "db2" 1 "${DB2_HOME}" + phpconfutils_extension_with "sapdb" "sapdb" 1 + phpconfutils_extension_with "solid" "solid" 1 + fi + + if use iodbc ; then + phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr" + fi + + # Oracle support + phpconfutils_extension_with "oci8" "oci8" 1 + if use oci8-instant-client ; then + OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ + sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ + sed -e 's|-r.*||g')" + + phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ + "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" + fi + + # PDO support + if use pdo ; then + phpconfutils_extension_with "pdo-dblib" "mssql" 1 + if use mysqlnd ; then + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "mysqlnd" + else + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr" + fi + phpconfutils_extension_with "pdo-pgsql" "postgres" 1 + phpconfutils_extension_with "pdo-sqlite" "sqlite3" 1 "/usr" + phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr" + if use oci8 ; then + phpconfutils_extension_with "pdo-oci" "oci8" 1 + fi + if use oci8-instant-client ; then + phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ + "instantclient,/usr,${OCI8IC_PKG}" + fi + fi + + # readline/libedit support + phpconfutils_extension_with "readline" "readline" 0 + phpconfutils_extension_with "libedit" "libedit" 0 + + # Session support + if use session ; then + phpconfutils_extension_with "mm" "sharedmem" 0 + else + phpconfutils_extension_disable "session" "session" 0 + fi + + # SQLite support + if use sqlite ; then + phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr" + phpconfutils_extension_enable "sqlite-utf8" "unicode" 0 + else + phpconfutils_extension_without "sqlite" "sqlite" 0 + fi + + if use pic ; then + my_conf="${my_conf} --with-pic" + fi + + if has fpm ${IUSE//+} && use fpm ; then + my_conf="${my_conf} --with-libevent-dir=/usr/`get_libdir`" + fi + + + # we use the system copy of pcre + # --with-pcre-regex affects ext/pcre + # --with-pcre-dir affects ext/filter and ext/zip + my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" + + # Catch CFLAGS problems + php_check_cflags + + # Support user-passed configuration parameters + my_conf="${my_conf} ${EXTRA_ECONF:-}" + + # Support the Apache2 extras, they must be set globally for all + # SAPIs to work correctly, especially for external PHP extensions + if use apache2 ; then + # Concurrent PHP Apache2 modules support + if use concurrentmodphp ; then + append-ldflags "-Wl,--version-script=${FILESDIR}/php${PHP_MV}-ldvs" + fi + fi + + mkdir -p "${WORKDIR}/sapis-build" + for one_sapi in $SAPIS ; do + use "${one_sapi}" || continue + php_set_ini_dir "${one_sapi}" + + cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" + cd "${WORKDIR}/sapis-build/${one_sapi}" + + sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} + --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" + + for sapi in $SAPIS ; do + case "$sapi" in + cli|cgi|embed|fpm) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --enable-${sapi}" + else + sapi_conf="${sapi_conf} --disable-${sapi}" + fi + ;; + + apache2) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" + else + sapi_conf="${sapi_conf} --without-apxs2" + fi + ;; + esac + done + + econf ${sapi_conf} + done +} diff --git a/dev-lang/php/files/eblits/src_configure-v2.eblit b/dev-lang/php/files/eblits/src_configure-v2.eblit new file mode 100644 index 0000000..ab09832 --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-v2.eblit @@ -0,0 +1,276 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v2.eblit,v 1.5 2011/01/05 11:23:16 mabi Exp $ + +eblit-php-src_configure() { + PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" + + # This is a global variable and should be in caps. It isn't because the + # phpconfutils eclass relies on exactly this name... + # for --with-libdir see bug #327025 + my_conf=" + --prefix="${PHP_DESTDIR}" + --mandir="${PHP_DESTDIR}"/man + --infodir="${PHP_DESTDIR}"/info + --libdir="${PHP_DESTDIR}"/lib + --with-libdir=$(get_libdir) + --without-pear + $(use_enable threads maintainer-zts)" + + phpconfutils_init + + # extension USE flag shared + phpconfutils_extension_enable "bcmath" "bcmath" 1 + phpconfutils_extension_with "bz2" "bzip2" 1 + phpconfutils_extension_enable "calendar" "calendar" 1 + phpconfutils_extension_disable "ctype" "ctype" 0 + phpconfutils_extension_with "curl" "curl" 1 + phpconfutils_extension_with "curlwrappers" "curlwrappers" 0 + phpconfutils_extension_disable "dom" "xml" 0 + phpconfutils_extension_with "enchant" "enchant" 1 "/usr" + phpconfutils_extension_enable "exif" "exif" 1 + phpconfutils_extension_disable "fileinfo" "fileinfo" 1 + phpconfutils_extension_disable "filter" "filter" 0 + phpconfutils_extension_enable "ftp" "ftp" 1 + phpconfutils_extension_with "gettext" "nls" 1 + phpconfutils_extension_with "gmp" "gmp" 1 + phpconfutils_extension_disable "hash" "hash" 0 + phpconfutils_extension_with "mhash" "mhash" 0 + phpconfutils_extension_without "iconv" "iconv" 0 + phpconfutils_extension_enable "intl" "intl" 1 + phpconfutils_extension_disable "ipv6" "ipv6" 0 + phpconfutils_extension_disable "json" "json" 0 + phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr" + phpconfutils_extension_disable "libxml" "xml" 0 + phpconfutils_extension_enable "mbstring" "unicode" 1 + phpconfutils_extension_with "mcrypt" "crypt" 1 + phpconfutils_extension_with "mssql" "mssql" 1 + phpconfutils_extension_with "onig" "unicode" 0 "/usr" + phpconfutils_extension_with "openssl" "ssl" 0 + phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr" + phpconfutils_extension_enable "pcntl" "pcntl" 1 + phpconfutils_extension_disable "phar" "phar" 1 + phpconfutils_extension_disable "pdo" "pdo" 0 + phpconfutils_extension_with "pgsql" "postgres" 1 + phpconfutils_extension_disable "posix" "posix" 0 + phpconfutils_extension_with "pspell" "spell" 1 + phpconfutils_extension_with "recode" "recode" 1 + phpconfutils_extension_disable "simplexml" "simplexml" 0 + phpconfutils_extension_enable "shmop" "sharedmem" 0 + phpconfutils_extension_with "snmp" "snmp" 1 + phpconfutils_extension_enable "soap" "soap" 1 + phpconfutils_extension_enable "sockets" "sockets" 1 + phpconfutils_extension_without "sqlite3" "sqlite3" 1 "/usr" + phpconfutils_extension_with "sybase-ct" "sybase-ct" 1 "/usr" + phpconfutils_extension_enable "sysvmsg" "sysvipc" 1 + phpconfutils_extension_enable "sysvsem" "sysvipc" 1 + phpconfutils_extension_enable "sysvshm" "sysvipc" 1 + phpconfutils_extension_with "tidy" "tidy" 1 + phpconfutils_extension_disable "tokenizer" "tokenizer" 0 + phpconfutils_extension_enable "wddx" "wddx" 1 + phpconfutils_extension_disable "xml" "xml" 0 + phpconfutils_extension_disable "xmlreader" "xmlreader" 0 + phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0 + phpconfutils_extension_with "xmlrpc" "xmlrpc" 1 + phpconfutils_extension_with "xsl" "xsl" 1 + phpconfutils_extension_enable "zip" "zip" 1 + phpconfutils_extension_with "zlib" "zlib" 1 + phpconfutils_extension_enable "debug" "debug" 0 + + # DBA support + if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ + || use qdbm ; then + my_conf="${my_conf} --enable-dba${shared}" + fi + + # DBA drivers support + phpconfutils_extension_with "cdb" "cdb" 0 + phpconfutils_extension_with "db4" "berkdb" 0 + phpconfutils_extension_enable "flatfile" "flatfile" 0 + phpconfutils_extension_with "gdbm" "gdbm" 0 + phpconfutils_extension_enable "inifile" "inifile" 0 + phpconfutils_extension_with "qdbm" "qdbm" 0 + + # Support for the GD graphics library + if use gd-external ; then + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "gd" "gd-external" 1 "/usr" + else + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr" + phpconfutils_extension_with "png-dir" "gd" 0 "/usr" + phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr" + # enable gd last, so configure can pick up the previous settings + phpconfutils_extension_with "gd" "gd" 0 + fi + + # IMAP support + if use imap ; then + phpconfutils_extension_with "imap" "imap" 1 + phpconfutils_extension_with "imap-ssl" "ssl" 0 + fi + + # Interbase/firebird support + if use interbase ; then + phpconfutils_extension_with "interbase" "interbase" 0 "/opt" + fi + + if use firebird ; then + phpconfutils_extension_with "interbase" "firebird" 0 "/usr" + fi + + # LDAP support + if use ldap ; then + if use oci8 ; then + phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" + else + phpconfutils_extension_with "ldap" "ldap" 1 + phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 + fi + fi + + # MySQL support + if use mysql ; then + if use mysqlnd ; then + phpconfutils_extension_with "mysql" "mysql" 1 "mysqlnd" + else + phpconfutils_extension_with "mysql" "mysql" 1 "/usr" + fi + phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" + fi + + # MySQLi support + if use mysqlnd ; then + phpconfutils_extension_with "mysqli" "mysqli" 1 "mysqlnd" + else + phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" + fi + + # ODBC support + if use odbc ; then + phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr" + phpconfutils_extension_with "adabas" "adabas" 1 + phpconfutils_extension_with "birdstep" "birdstep" 1 + phpconfutils_extension_with "dbmaker" "dbmaker" 1 + phpconfutils_extension_with "empress" "empress" 1 + if use empress ; then + phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 + fi + phpconfutils_extension_with "esoob" "esoob" 1 + # Needed to run conftest for IBM DB2 + [[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" + phpconfutils_extension_with "ibm-db2" "db2" 1 "${DB2_HOME}" + phpconfutils_extension_with "sapdb" "sapdb" 1 + phpconfutils_extension_with "solid" "solid" 1 + fi + + if use iodbc ; then + phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr" + fi + + # Oracle support + phpconfutils_extension_with "oci8" "oci8" 1 + if use oci8-instant-client ; then + OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ + sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ + sed -e 's|-r.*||g')" + + phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ + "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" + fi + + # PDO support + if use pdo ; then + phpconfutils_extension_with "pdo-dblib" "mssql" 1 + if use mysqlnd ; then + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "mysqlnd" + else + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr" + fi + phpconfutils_extension_with "pdo-pgsql" "postgres" 1 + phpconfutils_extension_with "pdo-sqlite" "sqlite3" 1 "/usr" + phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr" + if use oci8 ; then + phpconfutils_extension_with "pdo-oci" "oci8" 1 + fi + if use oci8-instant-client ; then + phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ + "instantclient,/usr,${OCI8IC_PKG}" + fi + fi + + # readline/libedit support + phpconfutils_extension_with "readline" "readline" 0 + phpconfutils_extension_with "libedit" "libedit" 0 + + # Session support + if use session ; then + phpconfutils_extension_with "mm" "sharedmem" 0 + else + phpconfutils_extension_disable "session" "session" 0 + fi + + # SQLite support + if use sqlite ; then + phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr" + phpconfutils_extension_enable "sqlite-utf8" "unicode" 0 + else + phpconfutils_extension_without "sqlite" "sqlite" 0 + fi + + if use pic ; then + my_conf="${my_conf} --with-pic" + fi + + # we use the system copy of pcre + # --with-pcre-regex affects ext/pcre + # --with-pcre-dir affects ext/filter and ext/zip + my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" + + # Catch CFLAGS problems + php_check_cflags + + # Support user-passed configuration parameters + my_conf="${my_conf} ${EXTRA_ECONF:-}" + + # Support the Apache2 extras, they must be set globally for all + # SAPIs to work correctly, especially for external PHP extensions + + mkdir -p "${WORKDIR}/sapis-build" + for one_sapi in $SAPIS ; do + use "${one_sapi}" || continue + php_set_ini_dir "${one_sapi}" + + cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" + cd "${WORKDIR}/sapis-build/${one_sapi}" + + sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} + --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" + + for sapi in $SAPIS ; do + case "$sapi" in + cli|cgi|embed|fpm) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --enable-${sapi}" + else + sapi_conf="${sapi_conf} --disable-${sapi}" + fi + ;; + + apache2) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" + else + sapi_conf="${sapi_conf} --without-apxs2" + fi + ;; + esac + done + + econf ${sapi_conf} + done +} diff --git a/dev-lang/php/files/eblits/src_configure-v3.eblit b/dev-lang/php/files/eblits/src_configure-v3.eblit new file mode 100644 index 0000000..a08d839 --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-v3.eblit @@ -0,0 +1,260 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v3.eblit,v 1.5 2011/09/16 07:02:57 olemarkus Exp $ + +eblit-php-src_configure() { + addpredict /usr/share/snmp/mibs/.index + + PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" + + # This is a global variable and should be in caps. It isn't because the + # phpconfutils eclass relies on exactly this name... + # for --with-libdir see bug #327025 + my_conf=" + --prefix="${PHP_DESTDIR}" + --mandir="${PHP_DESTDIR}"/man + --infodir="${PHP_DESTDIR}"/info + --libdir="${PHP_DESTDIR}"/lib + --with-libdir=$(get_libdir) + --without-pear + $(use_enable threads maintainer-zts)" + + # extension USE flag shared + my_conf+=" + $(use_enable bcmath bcmath ) + $(use_with bzip2 bz2 ) + $(use_enable calendar calendar ) + $(use_enable ctype ctype ) + $(use_with curl curl ) + $(use_with curlwrappers curlwrappers ) + $(use_enable xml dom ) + $(use_with enchant enchant /usr) + $(use_enable exif exif ) + $(use_enable fileinfo fileinfo ) + $(use_enable filter filter ) + $(use_enable ftp ftp ) + $(use_with nls gettext ) + $(use_with gmp gmp ) + $(use_enable hash hash ) + $(use_with mhash mhash ) + $(use_with iconv iconv ) + $(use_enable intl intl ) + $(use_enable ipv6 ipv6 ) + $(use_enable json json ) + $(use_with kerberos kerberos /usr) + $(use_enable xml libxml ) + $(use_enable unicode mbstring ) + $(use_with crypt mcrypt ) + $(use_with mssql mssql ) + $(use_with unicode onig /usr) + $(use_with ssl openssl ) + $(use_with ssl openssl-dir /usr) + $(use_enable pcntl pcntl ) + $(use_enable phar phar ) + $(use_enable pdo pdo ) + $(use_with postgres pgsql ) + $(use_enable posix posix ) + $(use_with spell pspell ) + $(use_with recode recode ) + $(use_enable simplexml simplexml ) + $(use_enable sharedmem shmop ) + $(use_with snmp snmp ) + $(use_enable soap soap ) + $(use_enable sockets sockets ) + $(use_with sqlite3 sqlite3 /usr) + $(use_with sybase-ct sybase-ct /usr) + $(use_enable sysvipc sysvmsg ) + $(use_enable sysvipc sysvsem ) + $(use_enable sysvipc sysvshm ) + $(use_with tidy tidy ) + $(use_enable tokenizer tokenizer ) + $(use_enable wddx wddx ) + $(use_enable xml xml ) + $(use_enable xmlreader xmlreader ) + $(use_enable xmlwriter xmlwriter ) + $(use_with xmlrpc xmlrpc ) + $(use_with xsl xsl ) + $(use_enable zip zip ) + $(use_with zlib zlib ) + $(use_enable debug debug )" + + # DBA support + if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ + || use qdbm ; then + my_conf="${my_conf} --enable-dba${shared}" + fi + + # DBA drivers support + my_conf+=" + $(use_with cdb cdb ) + $(use_with berkdb db4 ) + $(use_enable flatfile flatfile ) + $(use_with gdbm gdbm ) + $(use_enable inifile inifile ) + $(use_with qdbm qdbm )" + + # Support for the GD graphics library + my_conf+=" + $(use_with truetype freetype-dir /usr) + $(use_with truetype t1lib /usr) + $(use_enable cjk gd-jis-conv ) + $(use_with gd jpeg-dir /usr) + $(use_with gd png-dir /usr) + $(use_with xpm xpm-dir /usr)" + # enable gd last, so configure can pick up the previous settings + my_conf+=" + $(use_with gd gd )" + + # IMAP support + if use imap ; then + my_conf+=" + $(use_with imap imap ) + $(use_with ssl imap-ssl )" + fi + + # Interbase/firebird support + + if use firebird ; then + my_conf+=" + $(use_with firebird interbase /usr)" + fi + + # LDAP support + if use ldap ; then + my_conf+=" + $(use_with ldap ldap ) + $(use_with ldap-sasl ldap-sasl )" + fi + + # MySQL support + if use mysql ; then + if use mysqlnd ; then + my_conf+=" + $(use_with mysql mysql mysqlnd)" + else + my_conf+=" + $(use_with mysql mysql /usr)" + fi + my_conf+=" + $(use_with mysql mysql-sock /var/run/mysqld/mysqld.sock)" + fi + + # MySQLi support + if use mysqlnd ; then + my_conf+=" + $(use_with mysqli mysqli mysqlnd)" + else + my_conf+=" + $(use_with mysqli mysqli /usr/bin/mysql_config)" + fi + + # ODBC support + if use odbc ; then + my_conf+=" + $(use_with odbc unixODBC /usr)" + fi + + if use iodbc ; then + my_conf+=" + $(use_with iodbc iodbc /usr)" + fi + + # Oracle support + if use oci8-instant-client ; then + OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ + sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ + sed -e 's|-r.*||g')" + + my_conf+=" + $(use_with oci8-instant-client oci8 "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib")" + fi + + # PDO support + if use pdo ; then + my_conf+=" + $(use_with mssql pdo-dblib )" + if use mysqlnd ; then + my_conf+=" + $(use_with mysql pdo-mysql mysqlnd)" + else + my_conf+=" + $(use_with mysql pdo-mysql /usr)" + fi + my_conf+=" + $(use_with postgres pdo-pgsql ) + $(use_with sqlite3 pdo-sqlite /usr) + $(use_with odbc pdo-odbc unixODBC,/usr)" + if use oci8-instant-client ; then + my_conf+=" + $(use_with oci8-instant-client pdo-oci "instantclient,/usr,${OCI8IC_PKG}" )" + fi + fi + + # readline/libedit support + my_conf+=" + $(use_with readline readline ) + $(use_with libedit libedit )" + + # Session support + if use session ; then + my_conf+=" + $(use_with sharedmem mm )" + else + my_conf+=" + $(use_enable session session )" + fi + + if use pic ; then + my_conf="${my_conf} --with-pic" + fi + + # we use the system copy of pcre + # --with-pcre-regex affects ext/pcre + # --with-pcre-dir affects ext/filter and ext/zip + my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" + + # Catch CFLAGS problems + # Fixes bug #14067. + # Changed order to run it in reverse for bug #32022 and #12021. + replace-cpu-flags "k6*" "i586" + + # Support user-passed configuration parameters + my_conf="${my_conf} ${EXTRA_ECONF:-}" + + # Support the Apache2 extras, they must be set globally for all + # SAPIs to work correctly, especially for external PHP extensions + + mkdir -p "${WORKDIR}/sapis-build" + for one_sapi in $SAPIS ; do + use "${one_sapi}" || continue + php_set_ini_dir "${one_sapi}" + + cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" + cd "${WORKDIR}/sapis-build/${one_sapi}" + + sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} + --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" + + for sapi in $SAPIS ; do + case "$sapi" in + cli|cgi|embed|fpm) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --enable-${sapi}" + else + sapi_conf="${sapi_conf} --disable-${sapi}" + fi + ;; + + apache2) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" + else + sapi_conf="${sapi_conf} --without-apxs2" + fi + ;; + esac + done + + econf ${sapi_conf} + done +} diff --git a/dev-lang/php/files/eblits/src_configure-v521.eblit b/dev-lang/php/files/eblits/src_configure-v521.eblit new file mode 100644 index 0000000..61e6389 --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-v521.eblit @@ -0,0 +1,273 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_configure-v521.eblit,v 1.1 2010/10/08 18:25:10 olemarkus Exp $ + +eblit-php-src_configure() { + export CFLAGS="${CFLAGS} -D_GNU_SOURCE" + PHP_DESTDIR="/usr/$(get_libdir)/php${SLOT}" + + # This is a global variable and should be in caps. It isn't because the + # phpconfutils eclass relies on exactly this name... + my_conf=" + --prefix="${PHP_DESTDIR}" + --mandir="${PHP_DESTDIR}"/man + --infodir="${PHP_DESTDIR}"/info + --libdir="${PHP_DESTDIR}"/lib + --with-libdir=$(get_libdir) + --without-pear + $(use_enable threads maintainer-zts)" + + phpconfutils_init + + # extension USE flag shared + phpconfutils_extension_enable "bcmath" "bcmath" 1 + phpconfutils_extension_with "bz2" "bzip2" 1 + phpconfutils_extension_enable "calendar" "calendar" 1 + phpconfutils_extension_disable "ctype" "ctype" 0 + phpconfutils_extension_with "curl" "curl" 1 + phpconfutils_extension_with "curlwrappers" "curlwrappers" 0 + phpconfutils_extension_enable "dbase" "dbase" 1 + phpconfutils_extension_disable "dom" "xml" 0 + phpconfutils_extension_enable "exif" "exif" 1 + phpconfutils_extension_with "fbsql" "frontbase" 1 + phpconfutils_extension_with "fdftk" "fdftk" 1 "/opt/fdftk-6.0" + phpconfutils_extension_disable "filter" "filter" 0 + phpconfutils_extension_enable "ftp" "ftp" 1 + phpconfutils_extension_with "gettext" "nls" 1 + phpconfutils_extension_with "gmp" "gmp" 1 + phpconfutils_extension_disable "hash" "hash" 0 + phpconfutils_extension_without "iconv" "iconv" 0 + phpconfutils_extension_disable "ipv6" "ipv6" 0 + phpconfutils_extension_disable "json" "json" 0 + phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr" + phpconfutils_extension_disable "libxml" "xml" 0 + phpconfutils_extension_enable "mbstring" "unicode" 1 + phpconfutils_extension_with "mcrypt" "crypt" 1 + phpconfutils_extension_with "mhash" "mhash" 1 + phpconfutils_extension_with "msql" "msql" 1 + phpconfutils_extension_with "mssql" "mssql" 1 + phpconfutils_extension_with "ncurses" "ncurses" 1 + phpconfutils_extension_with "openssl" "ssl" 0 + phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr" + phpconfutils_extension_enable "pcntl" "pcntl" 1 + phpconfutils_extension_without "pcre-regex" "pcre" 0 + phpconfutils_extension_disable "pdo" "pdo" 0 + phpconfutils_extension_with "pgsql" "postgres" 1 + phpconfutils_extension_disable "posix" "posix" 0 + phpconfutils_extension_with "pspell" "spell" 1 + phpconfutils_extension_with "recode" "recode" 1 + phpconfutils_extension_disable "reflection" "reflection" 0 + phpconfutils_extension_disable "simplexml" "simplexml" 0 + phpconfutils_extension_enable "shmop" "sharedmem" 0 + phpconfutils_extension_with "snmp" "snmp" 1 + phpconfutils_extension_enable "soap" "soap" 1 + phpconfutils_extension_enable "sockets" "sockets" 1 + phpconfutils_extension_disable "spl" "spl" 0 + phpconfutils_extension_with "sybase-ct" "sybase-ct" 1 + phpconfutils_extension_enable "sysvmsg" "sysvipc" 1 + phpconfutils_extension_enable "sysvsem" "sysvipc" 1 + phpconfutils_extension_enable "sysvshm" "sysvipc" 1 + phpconfutils_extension_with "tidy" "tidy" 1 + phpconfutils_extension_disable "tokenizer" "tokenizer" 0 + phpconfutils_extension_enable "wddx" "wddx" 1 + phpconfutils_extension_disable "xml" "xml" 0 + phpconfutils_extension_disable "xmlreader" "xmlreader" 0 + phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0 + phpconfutils_extension_with "xmlrpc" "xmlrpc" 1 + phpconfutils_extension_with "xsl" "xsl" 1 + phpconfutils_extension_enable "zip" "zip" 1 + phpconfutils_extension_with "zlib" "zlib" 1 + phpconfutils_extension_enable "debug" "debug" 0 + + # DBA support + if use cdb || use berkdb || use flatfile || use gdbm || use inifile \ + || use qdbm ; then + my_conf="${my_conf} --enable-dba${shared}" + fi + + # DBA drivers support + phpconfutils_extension_with "cdb" "cdb" 0 + phpconfutils_extension_with "db4" "berkdb" 0 + phpconfutils_extension_enable "flatfile" "flatfile" 0 + phpconfutils_extension_with "gdbm" "gdbm" 0 + phpconfutils_extension_enable "inifile" "inifile" 0 + phpconfutils_extension_with "qdbm" "qdbm" 0 + + # Support for the GD graphics library + if use gd-external ; then + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "gd" "gd-external" 1 "/usr" + else + phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" + phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" + phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 + phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr" + phpconfutils_extension_with "png-dir" "gd" 0 "/usr" + phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr" + # enable gd last, so configure can pick up the previous settings + phpconfutils_extension_with "gd" "gd" 0 + fi + + # IMAP support + if use imap ; then + phpconfutils_extension_with "imap" "imap" 1 + phpconfutils_extension_with "imap-ssl" "ssl" 0 + fi + + phpconfutils_extension_with "interbase" "interbase" 0 "/opt" + phpconfutils_extension_with "interbase" "firebird" 0 "/usr" + + # LDAP support + if use ldap ; then + if use oci8 ; then + phpconfutils_extension_with "ldap" "ldap" 1 "${ORACLE_HOME}" + else + phpconfutils_extension_with "ldap" "ldap" 1 + phpconfutils_extension_with "ldap-sasl" "ldap-sasl" 0 + fi + fi + + # MySQL support + if use mysql ; then + phpconfutils_extension_with "mysql" "mysql" 1 "/usr" + phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" + fi + + # MySQLi support + phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" + + # ODBC support + if use odbc ; then + phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr" + phpconfutils_extension_with "adabas" "adabas" 1 + phpconfutils_extension_with "birdstep" "birdstep" 1 + phpconfutils_extension_with "dbmaker" "dbmaker" 1 + phpconfutils_extension_with "empress" "empress" 1 + if use empress ; then + phpconfutils_extension_with "empress-bcs" "empress-bcs" 0 + fi + phpconfutils_extension_with "esoob" "esoob" 1 + # Needed to run conftest for IBM DB2 + [[ -n ${DB2_HOME} ]] && export LD_LIBRARY_PATH="${DB2_HOME}/`get_libdir`" + phpconfutils_extension_with "ibm-db2" "db2" 1 "${DB2_HOME}" + phpconfutils_extension_with "sapdb" "sapdb" 1 + phpconfutils_extension_with "solid" "solid" 1 + fi + + if use iodbc ; then + phpconfutils_extension_with "iodbc" "iodbc" 1 "/usr" + fi + + # Oracle support + phpconfutils_extension_with "oci8" "oci8" 1 + if use oci8-instant-client ; then + OCI8IC_PKG="$(best_version dev-db/oracle-instantclient-basic | \ + sed -e 's|dev-db/oracle-instantclient-basic-||g' | \ + sed -e 's|-r.*||g')" + + phpconfutils_extension_with "oci8" "oci8-instant-client" 1 \ + "instantclient,/usr/lib/oracle/${OCI8IC_PKG}/client/lib" + fi + + # PDO support + if use pdo ; then + phpconfutils_extension_with "pdo-dblib" "mssql" 1 + phpconfutils_extension_with "pdo-mysql" "mysql" 1 "/usr" + phpconfutils_extension_with "pdo-pgsql" "postgres" 1 + phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "/usr" + phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr" + if use oci8 ; then + phpconfutils_extension_with "pdo-oci" "oci8" 1 + fi + if use oci8-instant-client ; then + phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 \ + "instantclient,/usr,${OCI8IC_PKG}" + fi + fi + + # readline/libedit support + phpconfutils_extension_with "readline" "readline" 0 + phpconfutils_extension_with "libedit" "libedit" 0 + + # Session support + if use session ; then + phpconfutils_extension_with "mm" "sharedmem" 0 + else + phpconfutils_extension_disable "session" "session" 0 + fi + + # SQLite support + if use sqlite ; then + phpconfutils_extension_with "sqlite" "sqlite" 0 "/usr" + phpconfutils_extension_enable "sqlite-utf8" "unicode" 0 + else + phpconfutils_extension_without "sqlite" "sqlite" 0 + fi + + if use pic ; then + my_conf="${my_conf} --with-pic" + fi + + + # we use the system copy of pcre + # --with-pcre-regex affects ext/pcre + # --with-pcre-dir affects ext/filter and ext/zip + if use pcre ; then + my_conf="${my_conf} --with-pcre-regex=/usr --with-pcre-dir=/usr" + fi + + # Catch CFLAGS problems + php_check_cflags + + # Support user-passed configuration parameters + my_conf="${my_conf} ${EXTRA_ECONF:-}" + + # Support the Apache2 extras, they must be set globally for all + # SAPIs to work correctly, especially for external PHP extensions + + mkdir -p "${WORKDIR}/sapis-build" + for one_sapi in $SAPIS ; do + use "${one_sapi}" || continue + php_set_ini_dir "${one_sapi}" + + cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}" + cd "${WORKDIR}/sapis-build/${one_sapi}" + + sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR} + --with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}" + + for sapi in $SAPIS ; do + case "$sapi" in + cli|embed) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --enable-${sapi}" + else + sapi_conf="${sapi_conf} --disable-${sapi}" + fi + ;; + + cgi) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf+=" --enable-cgi --enable-fastcgi" + use discard-path && sapi_conf+=" --enable-discard-path" + use force-cgi-redirect && sapi_conf+=" --enable-force-cgi-redirect" + else + sapi_conf+=" --disable-${sapi}" + fi + ;; + + apache2) + if [[ "${one_sapi}" == "${sapi}" ]] ; then + sapi_conf="${sapi_conf} --with-apxs2=/usr/sbin/apxs" + else + sapi_conf="${sapi_conf} --without-apxs2" + fi + ;; + esac + done + + econf ${sapi_conf} + done +} diff --git a/dev-lang/php/files/eblits/src_install-v1.eblit b/dev-lang/php/files/eblits/src_install-v1.eblit new file mode 100644 index 0000000..225c8f4 --- /dev/null +++ b/dev-lang/php/files/eblits/src_install-v1.eblit @@ -0,0 +1,160 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v1.eblit,v 1.12 2010/10/27 10:33:18 olemarkus Exp $ + +eblit-php-src_install() { + # see bug #324739 for what happens when we don't have that + addpredict /usr/share/snmp/mibs/.index + + # grab the first SAPI that got built and install common files from there + local first_sapi="" + for sapi in $SAPIS ; do + if use $sapi ; then + first_sapi=$sapi + break + fi + done + + # Makefile forgets to create this before trying to write to it... + dodir "${PHP_DESTDIR}/bin" + + # Install php environment (without any sapis) + cd "${WORKDIR}/sapis-build/$first_sapi" + emake INSTALL_ROOT="${D}" \ + install-build install-headers install-programs \ + || die "emake install failed" + + local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" + + # And install the modules to it + if use sharedext ; then + insinto "${extension_dir}" + doins "${WORKDIR}/sapis-build/${first_sapi}/modules/"*.so + fi + + # Generate the USE file for PHP + phpconfutils_generate_usefile + + # Create the directory where we'll put version-specific php scripts + keepdir /usr/share/php${PHP_MV} + + local sapi="", file="" + local sapi_list="" + + for sapi in ${SAPIS}; do + if use "${sapi}" ; then + einfo "Installing SAPI: ${sapi}" + cd "${WORKDIR}/sapis-build/${sapi}" + # needed each time, php_install_ini would reset it + into "${PHP_DESTDIR}" + file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) + + if [[ "${file: -3}" == ".so" ]]; then + if [[ "${sapi}" == "apache2" ]]; then + insinto "${PHP_DESTDIR}/../apache2/modules/" + newins "${file}" "${file/*\/}" + else + dolib.so "${file}" || die "Unable to install ${sapi} sapi" + fi + else + dobin "${file}" || die "Unable to install ${sapi} sapi" + fi + + php_install_ini "${sapi}" + + # construct correct SAPI string for php-config + # thanks to ferringb for the bash voodoo + if [[ "${sapi}" == "apache2" ]]; then + sapi_list="${sapi_list:+${sapi_list} }apache2handler" + else + sapi_list="${sapi_list:+${sapi_list} }${sapi}" + fi + fi + done + + # Install env.d files + newenvd "${FILESDIR}/20php${PHP_MV}-envd" \ + "20php${PHP_MV}" + sed -e "s|/lib/|/$(get_libdir)/|g" -i \ + "${D}/etc/env.d/20php${PHP_MV}" + + # set php-config variable correctly (bug #278439) + sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ + "${D}/usr/$(get_libdir)/php5/bin/php-config" +} + +php_install_ini() { + local phpsapi="${1}" + + # work out where we are installing the ini file + php_set_ini_dir "${phpsapi}" + + local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}" + cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" + + # default to allow_url_open=Off, bug 332763 + sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i "${phpinisrc}" + + # default to expose_php=Off, bug 300695 + sed -e 's|^expose_php .*|expose_php = Off|g' -i "${phpinisrc}" + + # default to /tmp for save_path, bug #282768 + sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}" + + # Set the extension dir + sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" + + # Set the include path to point to where we want to find PEAR packages + sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" + + dodir "${PHP_INI_DIR}" + insinto "${PHP_INI_DIR}" + newins "${phpinisrc}" "${PHP_INI_FILE}" + + dodir "${PHP_EXT_INI_DIR}" + dodir "${PHP_EXT_INI_DIR_ACTIVE}" + + # Install any extensions built as shared objects + if use sharedext ; then + insinto "${PHP_EXT_INI_DIR}" + for extension in "${D}/${extension_dir}/"*.so ; do + extension="${extension##*/}" + inifilename="${extension/.so/.ini}" + echo "extension=${extension}" > "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" + doins "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" + dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}" + done + fi + + # SAPI-specific handling + if [[ "${sapi}" == "apache2" ]] ; then + if use concurrentmodphp ; then + einfo "Installing Apache2 config file 70_mod_php${PHP_MV}_concurr.conf" + insinto "${APACHE_MODULES_CONFDIR}" + newins "${FILESDIR}/70_mod_php${PHP_MV}_concurr.conf-apache2" \ + "70_mod_php${PHP_MV}_concurr.conf" + + # Put the ld version script in the right place so + # it's always accessible + insinto "/var/lib/php-pkg/${CATEGORY}/${PN}-${PVR}/" + doins "${FILESDIR}/php${PHP_MV}-ldvs" + else + einfo "Installing Apache2 config 70_mod_php${PHP_MV}.conf" + insinto ${APACHE_MODULES_CONFDIR} + newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ + "70_mod_php${PHP_MV}.conf" + fi + fi + + if [[ "${sapi}" == "fpm" ]] ; then + einfo "Installing FPM CGI config file php-fpm.conf" + epatch "${FILESDIR}/php-fpm-gentooified.patch" + insinto ${PHP_INI_DIR} + doins "${WORKDIR}/sapis-build/fpm/sapi/fpm/php-fpm.conf" + dodir "/etc/init.d" + insinto "/etc/init.d" + newins "${FILESDIR}/php-fpm.init" "php-fpm" + fperms 755 "/etc/init.d/php-fpm" + dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" + fi +} diff --git a/dev-lang/php/files/eblits/src_install-v2.eblit b/dev-lang/php/files/eblits/src_install-v2.eblit new file mode 100644 index 0000000..0b8b781 --- /dev/null +++ b/dev-lang/php/files/eblits/src_install-v2.eblit @@ -0,0 +1,168 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit,v 1.13 2011/07/23 10:14:46 olemarkus Exp $ + +eblit-php-src_install() { + # see bug #324739 for what happens when we don't have that + addpredict /usr/share/snmp/mibs/.index + + # grab the first SAPI that got built and install common files from there + local first_sapi="" + for sapi in $SAPIS ; do + if use $sapi ; then + first_sapi=$sapi + break + fi + done + + # Makefile forgets to create this before trying to write to it... + dodir "${PHP_DESTDIR}/bin" + + # Install php environment (without any sapis) + cd "${WORKDIR}/sapis-build/$first_sapi" + emake INSTALL_ROOT="${D}" \ + install-build install-headers install-programs \ + || die "emake install failed" + + local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" + + # And install the modules to it + if use sharedext ; then + insinto "${extension_dir}" + doins "${WORKDIR}/sapis-build/${first_sapi}/modules/"*.so + fi + + # Generate the USE file for PHP + phpconfutils_generate_usefile + + # Create the directory where we'll put version-specific php scripts + keepdir /usr/share/php${PHP_MV} + + local sapi="", file="" + local sapi_list="" + + for sapi in ${SAPIS}; do + if use "${sapi}" ; then + einfo "Installing SAPI: ${sapi}" + cd "${WORKDIR}/sapis-build/${sapi}" + # needed each time, php_install_ini would reset it + into "${PHP_DESTDIR}" + file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) + + if [[ "${file: -3}" == ".so" ]]; then + if [[ "${sapi}" == "apache2" ]]; then + insinto "${PHP_DESTDIR}/apache2/" + newins "${file}" "${file/*\/}" + keepdir "/usr/$(get_libdir)/apache2/modules" + else + dolib.so "${file}" || die "Unable to install ${sapi} sapi" + fi + else + dobin "${file}" || die "Unable to install ${sapi} sapi" + fi + + php_install_ini "${sapi}" + + # construct correct SAPI string for php-config + # thanks to ferringb for the bash voodoo + if [[ "${sapi}" == "apache2" ]]; then + sapi_list="${sapi_list:+${sapi_list} }apache2handler" + else + sapi_list="${sapi_list:+${sapi_list} }${sapi}" + fi + fi + done + + # Install env.d files + newenvd "${FILESDIR}/20php5-envd" \ + "20php${SLOT}" + sed -e "s|/lib/|/$(get_libdir)/|g" -i \ + "${D}/etc/env.d/20php${SLOT}" + sed -e "s|php5|php${SLOT}|g" -i \ + "${D}/etc/env.d/20php${SLOT}" + + # set php-config variable correctly (bug #278439) + sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ + "${D}/usr/$(get_libdir)/php${SLOT}/bin/php-config" +} + +php_install_ini() { + local phpsapi="${1}" + + # work out where we are installing the ini file + php_set_ini_dir "${phpsapi}" + + local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}" + cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" + + # default to allow_url_open=Off, bug 332763 + sed -e 's|^allow_url_fopen .*|allow_url_fopen = Off|g' -i "${phpinisrc}" + + # default to expose_php=Off, bug 300695 + sed -e 's|^expose_php .*|expose_php = Off|g' -i "${phpinisrc}" + + # default to /tmp for save_path, bug #282768 + sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}" + + # Set the extension dir + sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" + + # Set the include path to point to where we want to find PEAR packages + sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" + + dodir "${PHP_INI_DIR}" + insinto "${PHP_INI_DIR}" + newins "${phpinisrc}" "${PHP_INI_FILE}" + + elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR}" + elog + + dodir "${PHP_EXT_INI_DIR}" + dodir "${PHP_EXT_INI_DIR_ACTIVE}" + + # Install any extensions built as shared objects + if use sharedext ; then + insinto "${PHP_EXT_INI_DIR}" + for extension in "${D}/${extension_dir}/"*.so ; do + extension="${extension##*/}" + inifilename="${extension/.so/.ini}" + echo "extension=${extension}" > "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" + doins "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" + dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}" + done + fi + + # SAPI-specific handling + if [[ "${sapi}" == "apache2" ]] ; then + insinto "${APACHE_MODULES_CONFDIR}" + newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ + "70_mod_php${PHP_MV}.conf" + fi + + if [[ "${sapi}" == "fpm" ]] ; then + [[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3 + [[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0 + einfo "Installing FPM CGI config file php-fpm.conf" + insinto ${PHP_INI_DIR} + newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf + dodir "/etc/init.d" + insinto "/etc/init.d" + newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm" + #dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" + + # Remove bogus /etc/php-fpm.conf.default (bug 359906) + [[ -f "${D}/etc/php-fpm.conf.default" ]] && rm "${D}/etc/php-fpm.conf.default" + fi + + # Install PHP ini files into /usr/share/php + if [[ ${SLOT} == '5.2' ]]; then + newdoc php.ini-dist php.ini-development + newdoc php.ini-recommended php.ini-production + fi + + if [[ ${SLOT} == '5.3' ]]; then + dodoc php.ini-development + dodoc php.ini-production + fi + +} diff --git a/dev-lang/php/files/eblits/src_install-v3.eblit b/dev-lang/php/files/eblits/src_install-v3.eblit new file mode 100644 index 0000000..316d42b --- /dev/null +++ b/dev-lang/php/files/eblits/src_install-v3.eblit @@ -0,0 +1,139 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v3.eblit,v 1.3 2011/09/16 07:02:57 olemarkus Exp $ + +eblit-php-src_install() { + # see bug #324739 for what happens when we don't have that + addpredict /usr/share/snmp/mibs/.index + + # grab the first SAPI that got built and install common files from there + local first_sapi="" + for sapi in $SAPIS ; do + if use $sapi ; then + first_sapi=$sapi + break + fi + done + + # Makefile forgets to create this before trying to write to it... + dodir "${PHP_DESTDIR}/bin" + + # Install php environment (without any sapis) + cd "${WORKDIR}/sapis-build/$first_sapi" + emake INSTALL_ROOT="${D}" \ + install-build install-headers install-programs \ + || die "emake install failed" + + local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" + + # Create the directory where we'll put version-specific php scripts + keepdir /usr/share/php${PHP_MV} + + local sapi="", file="" + local sapi_list="" + + for sapi in ${SAPIS}; do + if use "${sapi}" ; then + einfo "Installing SAPI: ${sapi}" + cd "${WORKDIR}/sapis-build/${sapi}" + # needed each time, php_install_ini would reset it + into "${PHP_DESTDIR}" + file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) + + if [[ "${file: -3}" == ".so" ]]; then + if [[ "${sapi}" == "apache2" ]]; then + insinto "${PHP_DESTDIR}/apache2/" + newins "${file}" "${file/*\/}" + keepdir "/usr/$(get_libdir)/apache2/modules" + else + dolib.so "${file}" || die "Unable to install ${sapi} sapi" + fi + else + dobin "${file}" || die "Unable to install ${sapi} sapi" + fi + + php_install_ini "${sapi}" + + # construct correct SAPI string for php-config + # thanks to ferringb for the bash voodoo + if [[ "${sapi}" == "apache2" ]]; then + sapi_list="${sapi_list:+${sapi_list} }apache2handler" + else + sapi_list="${sapi_list:+${sapi_list} }${sapi}" + fi + fi + done + + # Install env.d files + newenvd "${FILESDIR}/20php5-envd" \ + "20php${SLOT}" + sed -e "s|/lib/|/$(get_libdir)/|g" -i \ + "${D}/etc/env.d/20php${SLOT}" + sed -e "s|php5|php${SLOT}|g" -i \ + "${D}/etc/env.d/20php${SLOT}" + + # set php-config variable correctly (bug #278439) + sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ + "${D}/usr/$(get_libdir)/php${SLOT}/bin/php-config" +} + +php_install_ini() { + local phpsapi="${1}" + + # work out where we are installing the ini file + php_set_ini_dir "${phpsapi}" + + local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}" + cp "${PHP_INI_UPSTREAM}" "${phpinisrc}" + + # default to /tmp for save_path, bug #282768 + sed -e 's|^;session.save_path .*$|session.save_path = "/tmp"|g' -i "${phpinisrc}" + + # Set the extension dir + sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}" + + # Set the include path to point to where we want to find PEAR packages + sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php'${PHP_MV}':/usr/share/php"|' -i "${phpinisrc}" + + dodir "${PHP_INI_DIR}" + insinto "${PHP_INI_DIR}" + newins "${phpinisrc}" "${PHP_INI_FILE}" + + elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR}" + elog + + dodir "${PHP_EXT_INI_DIR}" + dodir "${PHP_EXT_INI_DIR_ACTIVE}" + + # SAPI-specific handling + if [[ "${sapi}" == "apache2" ]] ; then + insinto "${APACHE_MODULES_CONFDIR}" + newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \ + "70_mod_php${PHP_MV}.conf" + fi + + if [[ "${sapi}" == "fpm" ]] ; then + einfo "Installing FPM CGI config file php-fpm.conf" + insinto ${PHP_INI_DIR} + doins "${FILESDIR}/php-fpm.conf" + dodir "/etc/init.d" + insinto "/etc/init.d" + newinitd "${FILESDIR}/php-fpm-r3.init" "php-fpm" + #dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" + + # Remove bogus /etc/php-fpm.conf.default (bug 359906) + [[ -f "${D}/etc/php-fpm.conf.default" ]] && rm "${D}/etc/php-fpm.conf.default" + fi + + # Install PHP ini files into /usr/share/php + if [[ ${SLOT} == '5.2' ]]; then + newdoc php.ini-dist php.ini-development + newdoc php.ini-recommended php.ini-production + fi + + if [[ ${SLOT} == '5.3' ]]; then + dodoc php.ini-development + dodoc php.ini-production + fi + +} diff --git a/dev-lang/php/files/eblits/src_prepare-snapshots.eblit b/dev-lang/php/files/eblits/src_prepare-snapshots.eblit new file mode 100644 index 0000000..46d4393 --- /dev/null +++ b/dev-lang/php/files/eblits/src_prepare-snapshots.eblit @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-snapshots.eblit,v 1.2 2011/05/15 19:17:23 olemarkus Exp $ + +eblit-php-src_prepare() { + # USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path + # ([empty session.save_path]/session_mm_[sapi][gid].sem) + # there is no easy way to circumvent that, all php calls during + # install use -n, so no php.ini file will be used. + # As such, this is the easiest way to get around + addpredict /session_mm_cli250.sem + addpredict /session_mm_cli0.sem + + # kolab support (support for imap annotations) + use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch" + + # Change PHP branding + sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \ + -i configure.in || die "Unable to change PHP branding" + + # Apply generic PHP patches + EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch + + # Patch PHP to show Gentoo as the server platform + sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ + -i configure.in || die "Failed to fix server platform name" + + # Prevent PHP from activating the Apache config, + # as we will do that ourselves + sed -i \ + -e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ + -e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ + configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 + + # Patch PHP to support heimdal instead of mit-krb5 + if has_version "app-crypt/heimdal" ; then + sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ + || die "Failed to fix heimdal libname" + sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ + || die "Failed to fix heimdal crypt library reference" + fi + + # Suhosin support + if [[ -n $SUHOSIN_VERSION ]] ; then + if use suhosin ; then + epatch "${WORKDIR}/${SUHOSIN_PATCH}" + fi + else + ewarn "Please note that this version of PHP does not yet come with a suhosin patch" + fi + + #Add user patches #357637 + epatch_user + + #force rebuilding aclocal.m4 + rm aclocal.m4 + eautoreconf +} diff --git a/dev-lang/php/files/eblits/src_prepare-v2.eblit b/dev-lang/php/files/eblits/src_prepare-v2.eblit new file mode 100644 index 0000000..b6bd72e --- /dev/null +++ b/dev-lang/php/files/eblits/src_prepare-v2.eblit @@ -0,0 +1,71 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v2.eblit,v 1.3 2011/01/05 11:23:16 mabi Exp $ + +eblit-php-src_prepare() { + # USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path + # ([empty session.save_path]/session_mm_[sapi][gid].sem) + # there is no easy way to circumvent that, all php calls during + # install use -n, so no php.ini file will be used. + # As such, this is the easiest way to get around + addpredict /session_mm_cli250.sem + addpredict /session_mm_cli0.sem + + # kolab support (support for imap annotations) + use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch" + + # Change PHP branding + sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \ + -i configure.in || die "Unable to change PHP branding" + + # Apply generic PHP patches + EPATCH_SOURCE="${WORKDIR}/${PV}/generic" EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch + + # Patch PHP to show Gentoo as the server platform + sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ + -i configure.in || die "Failed to fix server platform name" + + # Prevent PHP from activating the Apache config, + # as we will do that ourselves + sed -i \ + -e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ + -e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ + configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 + + # Patch PHP to support heimdal instead of mit-krb5 + if has_version "app-crypt/heimdal" ; then + sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ + || die "Failed to fix heimdal libname" + sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ + || die "Failed to fix heimdal crypt library reference" + fi + + # Suhosin support + if [[ -n $SUHOSIN_VERSION ]] ; then + if use suhosin ; then + epatch "${WORKDIR}/${SUHOSIN_PATCH}" + fi + else + ewarn "Please note that this version of PHP does not yet come with a suhosin patch" + fi + + + # rebuild the whole autotools stuff as we are heavily patching it + # (suhosin, fastbuild, ...) + + # eaclocal doesn't accept --force, so we try to force re-generation + # this way + rm aclocal.m4 + + # work around divert() issues with newer autoconf, bug #281697 + if has_version '>=sys-devel/autoconf-2.64' ; then + sed -i -r \ + -e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \ + $(grep -l divert $(find . -name '*.m4') configure.in) || die + fi + eautoreconf --force -W no-cross +} + + diff --git a/dev-lang/php/files/eblits/src_prepare-v3.eblit b/dev-lang/php/files/eblits/src_prepare-v3.eblit new file mode 100644 index 0000000..7e270f9 --- /dev/null +++ b/dev-lang/php/files/eblits/src_prepare-v3.eblit @@ -0,0 +1,73 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v3.eblit,v 1.1 2011/03/13 09:48:06 olemarkus Exp $ + +eblit-php-src_prepare() { + # USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path + # ([empty session.save_path]/session_mm_[sapi][gid].sem) + # there is no easy way to circumvent that, all php calls during + # install use -n, so no php.ini file will be used. + # As such, this is the easiest way to get around + addpredict /session_mm_cli250.sem + addpredict /session_mm_cli0.sem + + # kolab support (support for imap annotations) + use kolab && epatch "${WORKDIR}/${PV}/opt/imap-kolab-annotations.patch" + + # Change PHP branding + sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \ + -i configure.in || die "Unable to change PHP branding" + + # Apply generic PHP patches + EPATCH_SOURCE="${WORKDIR}/${PV}/generic" EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch + + # Patch PHP to show Gentoo as the server platform + sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ + -i configure.in || die "Failed to fix server platform name" + + # Prevent PHP from activating the Apache config, + # as we will do that ourselves + sed -i \ + -e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ + -e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ + configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 + + # Patch PHP to support heimdal instead of mit-krb5 + if has_version "app-crypt/heimdal" ; then + sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ + || die "Failed to fix heimdal libname" + sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ + || die "Failed to fix heimdal crypt library reference" + fi + + # Suhosin support + if [[ -n $SUHOSIN_VERSION ]] ; then + if use suhosin ; then + epatch "${WORKDIR}/${SUHOSIN_PATCH}" + fi + else + ewarn "Please note that this version of PHP does not yet come with a suhosin patch" + fi + + #Add user patches #357637 + epatch_user + + # rebuild the whole autotools stuff as we are heavily patching it + # (suhosin, fastbuild, ...) + + # eaclocal doesn't accept --force, so we try to force re-generation + # this way + rm aclocal.m4 + + # work around divert() issues with newer autoconf, bug #281697 + if has_version '>=sys-devel/autoconf-2.64' ; then + sed -i -r \ + -e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \ + $(grep -l divert $(find . -name '*.m4') configure.in) || die + fi + eautoreconf --force -W no-cross +} + + diff --git a/dev-lang/php/files/eblits/src_prepare-v4.eblit b/dev-lang/php/files/eblits/src_prepare-v4.eblit new file mode 100644 index 0000000..cab740f --- /dev/null +++ b/dev-lang/php/files/eblits/src_prepare-v4.eblit @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_prepare-v4.eblit,v 1.1 2011/06/29 06:38:38 olemarkus Exp $ + +eblit-php-src_prepare() { + # USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path + # ([empty session.save_path]/session_mm_[sapi][gid].sem) + # there is no easy way to circumvent that, all php calls during + # install use -n, so no php.ini file will be used. + # As such, this is the easiest way to get around + addpredict /session_mm_cli250.sem + addpredict /session_mm_cli0.sem + + # kolab support (support for imap annotations) + use kolab && epatch "${WORKDIR}/patches/opt/imap-kolab-annotations.patch" + + # Change PHP branding + # Get the alpha/beta/rc version + local ver=$(get_version_component_range 4) + sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-${ver}-pl${PR/r/}-gentoo\2|g" \ + -i configure.in || die "Unable to change PHP branding" + + # Apply generic PHP patches + EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch + + # Patch PHP to show Gentoo as the server platform + sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \ + -i configure.in || die "Failed to fix server platform name" + + # Prevent PHP from activating the Apache config, + # as we will do that ourselves + sed -i \ + -e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \ + -e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \ + configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4 + + # Patch PHP to support heimdal instead of mit-krb5 + if has_version "app-crypt/heimdal" ; then + sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \ + || die "Failed to fix heimdal libname" + sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \ + || die "Failed to fix heimdal crypt library reference" + fi + + # Suhosin support + if [[ -n $SUHOSIN_VERSION ]] ; then + if use suhosin ; then + epatch "${WORKDIR}/${SUHOSIN_PATCH}" + fi + else + ewarn "Please note that this version of PHP does not yet come with a suhosin patch" + fi + + #Add user patches #357637 + epatch_user + + #force rebuilding aclocal.m4 + rm aclocal.m4 + eautoreconf +} diff --git a/dev-lang/php/files/eblits/src_test-v1.eblit b/dev-lang/php/files/eblits/src_test-v1.eblit new file mode 100644 index 0000000..95ebc7d --- /dev/null +++ b/dev-lang/php/files/eblits/src_test-v1.eblit @@ -0,0 +1,54 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_test-v1.eblit,v 1.2 2010/08/09 10:47:57 mabi Exp $ + +eblit-php-src_test() { + vecho ">>> Test phase [test]: ${CATEGORY}/${PF}" + + if [[ ! -x "${WORKDIR}/sapis/cli/php" ]] ; then + ewarn "Test phase requires USE=cli, skipping" + return + else + export TEST_PHP_EXECUTABLE="${WORKDIR}/sapis/cli/php" + fi + + if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then + export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi" + fi + + + REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \ + "${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}" + + for name in ${EXPECTED_TEST_FAILURES}; do + mv "${name}.out" "${name}.out.orig" 2>/dev/null + done + + local failed="$(find -name '*.out')" + if [[ ${failed} != "" ]] ; then + ewarn "The following test cases failed unexpectedly:" + for name in ${failed}; do + ewarn " ${name/.out/}" + done + else + einfo "No unexpected test failures, all fine" + fi + + if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then + local passed="" + for name in ${EXPECTED_TEST_FAILURES}; do + [[ -f "${name}.diff" ]] && continue + passed="${passed} ${name}" + done + if [[ ${passed} != "" ]] ; then + einfo "The following test cases passed unexpectedly:" + for name in ${passed}; do + ewarn " ${passed}" + done + else + einfo "None of the known-to-fail tests passed, all fine" + fi + fi +} + + diff --git a/dev-lang/php/files/php-fpm-gentooified.patch b/dev-lang/php/files/php-fpm-gentooified.patch new file mode 100644 index 0000000..3d7b9fe --- /dev/null +++ b/dev-lang/php/files/php-fpm-gentooified.patch @@ -0,0 +1,55 @@ +--- sapi/fpm/php-fpm.conf.orig 2010-06-03 21:04:30.000000000 +0200 ++++ sapi/fpm/php-fpm.conf 2010-06-03 22:40:41.000000000 +0200 +@@ -8,7 +8,7 @@ + ; Include one or more files. If glob(3) exists, it is used to include a bunch of + ; files from a glob(3) pattern. This directive can be used everywhere in the + ; file. +-;include=/etc/fpm.d/*.conf ++;include=/etc/php/fpm-php5/fpm.d/*.conf + + ;;;;;;;;;;;;;;;;;; + ; Global Options ; +@@ -17,11 +17,11 @@ + [global] + ; Pid file + ; Default Value: none +-;pid = /var/lib/run/php-fpm.pid ++;pid = /var/run/php-fpm.pid + + ; Error log file + ; Default Value: /var/lib/log/php-fpm.log +-;error_log = /var/lib/log/php-fpm.log ++error_log = /var/log/php-fpm.log + + ; Log level + ; Possible Values: alert, error, warning, notice, debug +@@ -133,17 +133,17 @@ + ; The number of child processes created on startup. + ; Note: Used only when pm is set to 'dynamic' + ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 +-;pm.start_servers = 20 ++pm.start_servers = 20 + + ; The desired minimum number of idle server processes. + ; Note: Used only when pm is set to 'dynamic' + ; Note: Mandatory when pm is set to 'dynamic' +-;pm.min_spare_servers = 5 ++pm.min_spare_servers = 5 + + ; The desired maximum number of idle server processes. + ; Note: Used only when pm is set to 'dynamic' + ; Note: Mandatory when pm is set to 'dynamic' +-;pm.max_spare_servers = 35 ++pm.max_spare_servers = 35 + + ; The number of requests each child process should execute before respawning. + ; This can be useful to work around memory leaks in 3rd party libraries. For +@@ -213,7 +213,7 @@ + + ; The log file for slow requests + ; Default Value: /var/lib/log/php-fpm.log.slow +-;slowlog = /var/lib/log/php-fpm.log.slow ++;slowlog = /var/log/php-fpm.log.slow + + ; Set open file descriptor rlimit. + ; Default Value: system defined value diff --git a/dev-lang/php/files/php-fpm-r0.conf b/dev-lang/php/files/php-fpm-r0.conf new file mode 100644 index 0000000..ddef717 --- /dev/null +++ b/dev-lang/php/files/php-fpm-r0.conf @@ -0,0 +1,310 @@ +;;;;;;;;;;;;;;;;;;;;; +; FPM Configuration ; +;;;;;;;;;;;;;;;;;;;;; + +; All relative paths in this configuration file are relative to PHP's install +; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the +; '-p' argument from the command line. + +; Include one or more files. If glob(3) exists, it is used to include a bunch of +; files from a glob(3) pattern. This directive can be used everywhere in the +; file. +; Relative path can also be used. They will be prefixed by: +; - the global prefix if it's been set (-p arguement) +; - /usr/lib/php5.3 otherwise +;include=/etc/php/fpm-php5.3/fpm.d/*.conf + +;;;;;;;;;;;;;;;;;; +; Global Options ; +;;;;;;;;;;;;;;;;;; + +[global] +; Pid file +; Note: the default prefix is /var/lib +; Default Value: none +; Note: The Gentoo init script expects the pid path +; to be set to /var/run/php-fpm.pid +pid = /var/run/php-fpm.pid + +; Error log file +; Note: the default prefix is /var/lib +; Default Value: log/php-fpm.log +error_log = /var/log/php-fpm.log + +; Log level +; Possible Values: alert, error, warning, notice, debug +; Default Value: notice +;log_level = notice + +; If this number of child processes exit with SIGSEGV or SIGBUS within the time +; interval set by emergency_restart_interval then FPM will restart. A value +; of '0' means 'Off'. +; Default Value: 0 +;emergency_restart_threshold = 0 + +; Interval of time used by emergency_restart_interval to determine when +; a graceful restart will be initiated. This can be useful to work around +; accidental corruptions in an accelerator's shared memory. +; Available Units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;emergency_restart_interval = 0 + +; Time limit for child processes to wait for a reaction on signals from master. +; Available units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;process_control_timeout = 0 + +; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. +; Default Value: yes +;daemonize = yes + +;;;;;;;;;;;;;;;;;;;; +; Pool Definitions ; +;;;;;;;;;;;;;;;;;;;; + +; Multiple pools of child processes may be started with different listening +; ports and different management options. The name of the pool will be +; used in logs and stats. There is no limitation on the number of pools which +; FPM can handle. Your system will tell you anyway :) + +; Start a new pool named 'www'. +; the variable $pool can we used in any directive and will be replaced by the +; pool name ('www' here) +[www] + +; Per pool prefix +; It only applies on the following directives: +; - 'slowlog' +; - 'listen' (unixsocket) +; - 'chroot' +; - 'chdir' +; - 'php_values' +; - 'php_admin_values' +; When not set, the global prefix (or /usr/lib/php5.3) applies instead. +; Note: This directive can also be relative to the global prefix. +; Default Value: none +;prefix = /path/to/pools/$pool + +; The address on which to accept FastCGI requests. +; Valid syntaxes are: +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on +; a specific port; +; 'port' - to listen on a TCP socket to all addresses on a +; specific port; +; '/path/to/unix/socket' - to listen on a unix socket. +; Note: This value is mandatory. +listen = 127.0.0.1:9000 + +; Set listen(2) backlog. A value of '-1' means unlimited. +; Default Value: 128 (-1 on FreeBSD and OpenBSD) +;listen.backlog = -1 + +; List of ipv4 addresses of FastCGI clients which are allowed to connect. +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address +; must be separated by a comma. If this value is left blank, connections will be +; accepted from any ip address. +; Default Value: any +;listen.allowed_clients = 127.0.0.1 + +; Set permissions for unix socket, if one is used. In Linux, read/write +; permissions must be set in order to allow connections from a web server. Many +; BSD-derived systems allow connections regardless of permissions. +; Default Values: user and group are set as the running user +; mode is set to 0666 +;listen.owner = nobody +;listen.group = nobody +;listen.mode = 0666 + +; Unix user/group of processes +; Note: The user is mandatory. If the group is not set, the default user's group +; will be used. +user = nobody +group = nobody + +; Choose how the process manager will control the number of child processes. +; Possible Values: +; static - a fixed number (pm.max_children) of child processes; +; dynamic - the number of child processes are set dynamically based on the +; following directives: +; pm.max_children - the maximum number of children that can +; be alive at the same time. +; pm.start_servers - the number of children created on startup. +; pm.min_spare_servers - the minimum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is less than this +; number then some children will be created. +; pm.max_spare_servers - the maximum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is greater than this +; number then some children will be killed. +; Note: This value is mandatory. +pm = dynamic + +; The number of child processes to be created when pm is set to 'static' and the +; maximum number of child processes to be created when pm is set to 'dynamic'. +; This value sets the limit on the number of simultaneous requests that will be +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP +; CGI. +; Note: Used when pm is set to either 'static' or 'dynamic' +; Note: This value is mandatory. +pm.max_children = 50 + +; The number of child processes created on startup. +; Note: Used only when pm is set to 'dynamic' +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 +;pm.start_servers = 20 + +; The desired minimum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.min_spare_servers = 5 + +; The desired maximum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.max_spare_servers = 35 + +; The number of requests each child process should execute before respawning. +; This can be useful to work around memory leaks in 3rd party libraries. For +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. +; Default Value: 0 +;pm.max_requests = 500 + +; The URI to view the FPM status page. If this value is not set, no URI will be +; recognized as a status page. By default, the status page shows the following +; information: +; accepted conn - the number of request accepted by the pool; +; pool - the name of the pool; +; process manager - static or dynamic; +; idle processes - the number of idle processes; +; active processes - the number of active processes; +; total processes - the number of idle + active processes. +; max children reached - number of times, the process limit has been reached, +; when pm tries to start more children (works only for +; pm 'dynamic') +; The values of 'idle processes', 'active processes' and 'total processes' are +; updated each second. The value of 'accepted conn' is updated in real time. +; Example output: +; accepted conn: 12073 +; pool: www +; process manager: static +; idle processes: 35 +; active processes: 65 +; total processes: 100 +; max children reached: 1 +; By default the status page output is formatted as text/plain. Passing either +; 'html' or 'json' as a query string will return the corresponding output +; syntax. Example: +; http://www.foo.bar/status +; http://www.foo.bar/status?json +; http://www.foo.bar/status?html +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;pm.status_path = /status + +; The ping URI to call the monitoring page of FPM. If this value is not set, no +; URI will be recognized as a ping page. This could be used to test from outside +; that FPM is alive and responding, or to +; - create a graph of FPM availability (rrd or such); +; - remove a server from a group if it is not responding (load balancing); +; - trigger alerts for the operating team (24/7). +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;ping.path = /ping + +; This directive may be used to customize the response of a ping request. The +; response is formatted as text/plain with a 200 response code. +; Default Value: pong +;ping.response = pong + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; The timeout for serving a single request after which a PHP backtrace will be +; dumped to the 'slowlog' file. A value of '0s' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_slowlog_timeout = 0 + +; The log file for slow requests +; Default Value: not set +; Note: slowlog is mandatory if request_slowlog_timeout is set +;slowlog = /var/log/php-fpm-$pool.log.slow + +; Set open file descriptor rlimit. +; Default Value: system defined value +;rlimit_files = 1024 + +; Set max core size rlimit. +; Possible Values: 'unlimited' or an integer greater or equal to 0 +; Default Value: system defined value +;rlimit_core = 0 + +; Chroot to this directory at the start. This value must be defined as an +; absolute path. When this value is not set, chroot is not used. +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one +; of its subdirectories. If the pool prefix is not set, the global prefix +; will be used instead. +; Note: chrooting is a great security feature and should be used whenever +; possible. However, all PHP paths will be relative to the chroot +; (error_log, sessions.save_path, ...). +; Default Value: not set +;chroot = + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +;chdir = /var/www + +; Redirect worker stdout and stderr into main error log. If not set, stdout and +; stderr will be redirected to /dev/null according to FastCGI specs. +; Note: on highloaded environement, this can cause some delay in the page +; process time (several ms). +; Default Value: no +;catch_workers_output = yes + +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from +; the current environment. +; Default Value: clean env +;env[HOSTNAME] = $HOSTNAME +;env[PATH] = /usr/local/bin:/usr/bin:/bin +;env[TMP] = /tmp +;env[TMPDIR] = /tmp +;env[TEMP] = /tmp + +; Additional php.ini defines, specific to this pool of workers. These settings +; overwrite the values previously defined in the php.ini. The directives are the +; same as the PHP SAPI: +; php_value/php_flag - you can set classic ini defines which can +; be overwritten from PHP call 'ini_set'. +; php_admin_value/php_admin_flag - these directives won't be overwritten by +; PHP call 'ini_set' +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. + +; Defining 'extension' will load the corresponding shared extension from +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not +; overwrite previously defined php.ini values, but will append the new value +; instead. + +; Note: path INI options can be relative and will be expanded with the prefix +; (pool, global or /usr/lib/php5.3) + +; Default Value: nothing is defined by default except the values in php.ini and +; specified at startup with the -d argument +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +;php_flag[display_errors] = off +;php_admin_value[error_log] = /var/log/fpm-php.www.log +;php_admin_flag[log_errors] = on +;php_admin_value[memory_limit] = 32M diff --git a/dev-lang/php/files/php-fpm-r1.conf b/dev-lang/php/files/php-fpm-r1.conf new file mode 100644 index 0000000..0b0a7f8 --- /dev/null +++ b/dev-lang/php/files/php-fpm-r1.conf @@ -0,0 +1,311 @@ +;;;;;;;;;;;;;;;;;;;;; +; FPM Configuration ; +;;;;;;;;;;;;;;;;;;;;; + +; All relative paths in this configuration file are relative to PHP's install +; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the +; '-p' argument from the command line. + +; Include one or more files. If glob(3) exists, it is used to include a bunch of +; files from a glob(3) pattern. This directive can be used everywhere in the +; file. +; Relative path can also be used. They will be prefixed by: +; - the global prefix if it's been set (-p arguement) +; - /usr/lib/php5.3 otherwise +;include=/etc/php/fpm-php5.3/fpm.d/*.conf + +;;;;;;;;;;;;;;;;;; +; Global Options ; +;;;;;;;;;;;;;;;;;; + +[global] +; Pid file +; Note: the default prefix is /var/lib +; Default Value: none +; Warning: pid file is overriden by the Gentoo init script. +; FPM will refuse to start if you uncomment this settingi and make use of the +; init script. +; pid = /var/run/php-fpm.pid + +; Error log file +; Note: the default prefix is /var/lib +; Default Value: log/php-fpm.log +error_log = /var/log/php-fpm.log + +; Log level +; Possible Values: alert, error, warning, notice, debug +; Default Value: notice +;log_level = notice + +; If this number of child processes exit with SIGSEGV or SIGBUS within the time +; interval set by emergency_restart_interval then FPM will restart. A value +; of '0' means 'Off'. +; Default Value: 0 +;emergency_restart_threshold = 0 + +; Interval of time used by emergency_restart_interval to determine when +; a graceful restart will be initiated. This can be useful to work around +; accidental corruptions in an accelerator's shared memory. +; Available Units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;emergency_restart_interval = 0 + +; Time limit for child processes to wait for a reaction on signals from master. +; Available units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;process_control_timeout = 0 + +; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. +; Default Value: yes +;daemonize = yes + +;;;;;;;;;;;;;;;;;;;; +; Pool Definitions ; +;;;;;;;;;;;;;;;;;;;; + +; Multiple pools of child processes may be started with different listening +; ports and different management options. The name of the pool will be +; used in logs and stats. There is no limitation on the number of pools which +; FPM can handle. Your system will tell you anyway :) + +; Start a new pool named 'www'. +; the variable $pool can we used in any directive and will be replaced by the +; pool name ('www' here) +[www] + +; Per pool prefix +; It only applies on the following directives: +; - 'slowlog' +; - 'listen' (unixsocket) +; - 'chroot' +; - 'chdir' +; - 'php_values' +; - 'php_admin_values' +; When not set, the global prefix (or /usr/lib/php5.3) applies instead. +; Note: This directive can also be relative to the global prefix. +; Default Value: none +;prefix = /path/to/pools/$pool + +; The address on which to accept FastCGI requests. +; Valid syntaxes are: +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on +; a specific port; +; 'port' - to listen on a TCP socket to all addresses on a +; specific port; +; '/path/to/unix/socket' - to listen on a unix socket. +; Note: This value is mandatory. +listen = 127.0.0.1:9000 + +; Set listen(2) backlog. A value of '-1' means unlimited. +; Default Value: 128 (-1 on FreeBSD and OpenBSD) +;listen.backlog = -1 + +; List of ipv4 addresses of FastCGI clients which are allowed to connect. +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address +; must be separated by a comma. If this value is left blank, connections will be +; accepted from any ip address. +; Default Value: any +;listen.allowed_clients = 127.0.0.1 + +; Set permissions for unix socket, if one is used. In Linux, read/write +; permissions must be set in order to allow connections from a web server. Many +; BSD-derived systems allow connections regardless of permissions. +; Default Values: user and group are set as the running user +; mode is set to 0666 +;listen.owner = nobody +;listen.group = nobody +;listen.mode = 0666 + +; Unix user/group of processes +; Note: The user is mandatory. If the group is not set, the default user's group +; will be used. +user = nobody +group = nobody + +; Choose how the process manager will control the number of child processes. +; Possible Values: +; static - a fixed number (pm.max_children) of child processes; +; dynamic - the number of child processes are set dynamically based on the +; following directives: +; pm.max_children - the maximum number of children that can +; be alive at the same time. +; pm.start_servers - the number of children created on startup. +; pm.min_spare_servers - the minimum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is less than this +; number then some children will be created. +; pm.max_spare_servers - the maximum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is greater than this +; number then some children will be killed. +; Note: This value is mandatory. +pm = dynamic + +; The number of child processes to be created when pm is set to 'static' and the +; maximum number of child processes to be created when pm is set to 'dynamic'. +; This value sets the limit on the number of simultaneous requests that will be +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP +; CGI. +; Note: Used when pm is set to either 'static' or 'dynamic' +; Note: This value is mandatory. +pm.max_children = 50 + +; The number of child processes created on startup. +; Note: Used only when pm is set to 'dynamic' +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 +;pm.start_servers = 20 + +; The desired minimum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.min_spare_servers = 5 + +; The desired maximum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.max_spare_servers = 35 + +; The number of requests each child process should execute before respawning. +; This can be useful to work around memory leaks in 3rd party libraries. For +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. +; Default Value: 0 +;pm.max_requests = 500 + +; The URI to view the FPM status page. If this value is not set, no URI will be +; recognized as a status page. By default, the status page shows the following +; information: +; accepted conn - the number of request accepted by the pool; +; pool - the name of the pool; +; process manager - static or dynamic; +; idle processes - the number of idle processes; +; active processes - the number of active processes; +; total processes - the number of idle + active processes. +; max children reached - number of times, the process limit has been reached, +; when pm tries to start more children (works only for +; pm 'dynamic') +; The values of 'idle processes', 'active processes' and 'total processes' are +; updated each second. The value of 'accepted conn' is updated in real time. +; Example output: +; accepted conn: 12073 +; pool: www +; process manager: static +; idle processes: 35 +; active processes: 65 +; total processes: 100 +; max children reached: 1 +; By default the status page output is formatted as text/plain. Passing either +; 'html' or 'json' as a query string will return the corresponding output +; syntax. Example: +; http://www.foo.bar/status +; http://www.foo.bar/status?json +; http://www.foo.bar/status?html +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;pm.status_path = /status + +; The ping URI to call the monitoring page of FPM. If this value is not set, no +; URI will be recognized as a ping page. This could be used to test from outside +; that FPM is alive and responding, or to +; - create a graph of FPM availability (rrd or such); +; - remove a server from a group if it is not responding (load balancing); +; - trigger alerts for the operating team (24/7). +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;ping.path = /ping + +; This directive may be used to customize the response of a ping request. The +; response is formatted as text/plain with a 200 response code. +; Default Value: pong +;ping.response = pong + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; The timeout for serving a single request after which a PHP backtrace will be +; dumped to the 'slowlog' file. A value of '0s' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_slowlog_timeout = 0 + +; The log file for slow requests +; Default Value: not set +; Note: slowlog is mandatory if request_slowlog_timeout is set +;slowlog = /var/log/php-fpm-$pool.log.slow + +; Set open file descriptor rlimit. +; Default Value: system defined value +;rlimit_files = 1024 + +; Set max core size rlimit. +; Possible Values: 'unlimited' or an integer greater or equal to 0 +; Default Value: system defined value +;rlimit_core = 0 + +; Chroot to this directory at the start. This value must be defined as an +; absolute path. When this value is not set, chroot is not used. +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one +; of its subdirectories. If the pool prefix is not set, the global prefix +; will be used instead. +; Note: chrooting is a great security feature and should be used whenever +; possible. However, all PHP paths will be relative to the chroot +; (error_log, sessions.save_path, ...). +; Default Value: not set +;chroot = + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +;chdir = /var/www + +; Redirect worker stdout and stderr into main error log. If not set, stdout and +; stderr will be redirected to /dev/null according to FastCGI specs. +; Note: on highloaded environement, this can cause some delay in the page +; process time (several ms). +; Default Value: no +;catch_workers_output = yes + +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from +; the current environment. +; Default Value: clean env +;env[HOSTNAME] = $HOSTNAME +;env[PATH] = /usr/local/bin:/usr/bin:/bin +;env[TMP] = /tmp +;env[TMPDIR] = /tmp +;env[TEMP] = /tmp + +; Additional php.ini defines, specific to this pool of workers. These settings +; overwrite the values previously defined in the php.ini. The directives are the +; same as the PHP SAPI: +; php_value/php_flag - you can set classic ini defines which can +; be overwritten from PHP call 'ini_set'. +; php_admin_value/php_admin_flag - these directives won't be overwritten by +; PHP call 'ini_set' +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. + +; Defining 'extension' will load the corresponding shared extension from +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not +; overwrite previously defined php.ini values, but will append the new value +; instead. + +; Note: path INI options can be relative and will be expanded with the prefix +; (pool, global or /usr/lib/php5.3) + +; Default Value: nothing is defined by default except the values in php.ini and +; specified at startup with the -d argument +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +;php_flag[display_errors] = off +;php_admin_value[error_log] = /var/log/fpm-php.www.log +;php_admin_flag[log_errors] = on +;php_admin_value[memory_limit] = 32M diff --git a/dev-lang/php/files/php-fpm-r3.init b/dev-lang/php/files/php-fpm-r3.init new file mode 100755 index 0000000..6152ac3 --- /dev/null +++ b/dev-lang/php/files/php-fpm-r3.init @@ -0,0 +1,40 @@ +#!/sbin/runscript + +PHPSLOT="php5.3" + +PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" + +PHP_FPM_PID="/var/run/php-fpm.pid" + +opts="depend start stop reload" + +depend() { + need net + use apache2 lighttpd nginx +} + +start() { + ebegin "Starting PHP FastCGI Process Manager" + start-stop-daemon --start --pidfile ${PHP_FPM_PID} --exec /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}" + local i=0 + local timeout=5 + while [ ! -f ${PHP_FPM_PID} ] && [ $i -le $timeout ]; do + sleep 1 + i=$(($i + 1)) + done + + [ $timeout -gt $i ] + eend $? +} + +stop() { + ebegin "Stopping PHP FastCGI Process Manager" + start-stop-daemon --signal QUIT --stop --exec /usr/bin/php-fpm --pidfile ${PHP_FPM_PID} + eend $? +} + +reload() { + ebegin "Reloading PHP FastCGI Process Manager" + [ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) + eend $? +} diff --git a/dev-lang/php/files/php-fpm-r4.init b/dev-lang/php/files/php-fpm-r4.init new file mode 100755 index 0000000..249df0f --- /dev/null +++ b/dev-lang/php/files/php-fpm-r4.init @@ -0,0 +1,41 @@ +#!/sbin/runscript + +PHPSLOT="php5.3" + +PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" + +PHP_FPM_PID="/var/run/php-fpm.pid" + +opts="depend start stop reload" + +depend() { + need net + use apache2 lighttpd nginx +} + +start() { + ebegin "Starting PHP FastCGI Process Manager" + start-stop-daemon --start --pidfile ${PHP_FPM_PID} --exec \ + /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}" -g "${PHP_FPM_PID}" + local i=0 + local timeout=5 + while [ ! -f ${PHP_FPM_PID} ] && [ $i -le $timeout ]; do + sleep 1 + i=$(($i + 1)) + done + + [ $timeout -gt $i ] + eend $? +} + +stop() { + ebegin "Stopping PHP FastCGI Process Manager" + start-stop-daemon --signal QUIT --stop --exec /usr/bin/php-fpm --pidfile ${PHP_FPM_PID} + eend $? +} + +reload() { + ebegin "Reloading PHP FastCGI Process Manager" + [ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) + eend $? +} diff --git a/dev-lang/php/files/php-fpm.conf b/dev-lang/php/files/php-fpm.conf new file mode 100644 index 0000000..ddef717 --- /dev/null +++ b/dev-lang/php/files/php-fpm.conf @@ -0,0 +1,310 @@ +;;;;;;;;;;;;;;;;;;;;; +; FPM Configuration ; +;;;;;;;;;;;;;;;;;;;;; + +; All relative paths in this configuration file are relative to PHP's install +; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the +; '-p' argument from the command line. + +; Include one or more files. If glob(3) exists, it is used to include a bunch of +; files from a glob(3) pattern. This directive can be used everywhere in the +; file. +; Relative path can also be used. They will be prefixed by: +; - the global prefix if it's been set (-p arguement) +; - /usr/lib/php5.3 otherwise +;include=/etc/php/fpm-php5.3/fpm.d/*.conf + +;;;;;;;;;;;;;;;;;; +; Global Options ; +;;;;;;;;;;;;;;;;;; + +[global] +; Pid file +; Note: the default prefix is /var/lib +; Default Value: none +; Note: The Gentoo init script expects the pid path +; to be set to /var/run/php-fpm.pid +pid = /var/run/php-fpm.pid + +; Error log file +; Note: the default prefix is /var/lib +; Default Value: log/php-fpm.log +error_log = /var/log/php-fpm.log + +; Log level +; Possible Values: alert, error, warning, notice, debug +; Default Value: notice +;log_level = notice + +; If this number of child processes exit with SIGSEGV or SIGBUS within the time +; interval set by emergency_restart_interval then FPM will restart. A value +; of '0' means 'Off'. +; Default Value: 0 +;emergency_restart_threshold = 0 + +; Interval of time used by emergency_restart_interval to determine when +; a graceful restart will be initiated. This can be useful to work around +; accidental corruptions in an accelerator's shared memory. +; Available Units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;emergency_restart_interval = 0 + +; Time limit for child processes to wait for a reaction on signals from master. +; Available units: s(econds), m(inutes), h(ours), or d(ays) +; Default Unit: seconds +; Default Value: 0 +;process_control_timeout = 0 + +; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. +; Default Value: yes +;daemonize = yes + +;;;;;;;;;;;;;;;;;;;; +; Pool Definitions ; +;;;;;;;;;;;;;;;;;;;; + +; Multiple pools of child processes may be started with different listening +; ports and different management options. The name of the pool will be +; used in logs and stats. There is no limitation on the number of pools which +; FPM can handle. Your system will tell you anyway :) + +; Start a new pool named 'www'. +; the variable $pool can we used in any directive and will be replaced by the +; pool name ('www' here) +[www] + +; Per pool prefix +; It only applies on the following directives: +; - 'slowlog' +; - 'listen' (unixsocket) +; - 'chroot' +; - 'chdir' +; - 'php_values' +; - 'php_admin_values' +; When not set, the global prefix (or /usr/lib/php5.3) applies instead. +; Note: This directive can also be relative to the global prefix. +; Default Value: none +;prefix = /path/to/pools/$pool + +; The address on which to accept FastCGI requests. +; Valid syntaxes are: +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on +; a specific port; +; 'port' - to listen on a TCP socket to all addresses on a +; specific port; +; '/path/to/unix/socket' - to listen on a unix socket. +; Note: This value is mandatory. +listen = 127.0.0.1:9000 + +; Set listen(2) backlog. A value of '-1' means unlimited. +; Default Value: 128 (-1 on FreeBSD and OpenBSD) +;listen.backlog = -1 + +; List of ipv4 addresses of FastCGI clients which are allowed to connect. +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address +; must be separated by a comma. If this value is left blank, connections will be +; accepted from any ip address. +; Default Value: any +;listen.allowed_clients = 127.0.0.1 + +; Set permissions for unix socket, if one is used. In Linux, read/write +; permissions must be set in order to allow connections from a web server. Many +; BSD-derived systems allow connections regardless of permissions. +; Default Values: user and group are set as the running user +; mode is set to 0666 +;listen.owner = nobody +;listen.group = nobody +;listen.mode = 0666 + +; Unix user/group of processes +; Note: The user is mandatory. If the group is not set, the default user's group +; will be used. +user = nobody +group = nobody + +; Choose how the process manager will control the number of child processes. +; Possible Values: +; static - a fixed number (pm.max_children) of child processes; +; dynamic - the number of child processes are set dynamically based on the +; following directives: +; pm.max_children - the maximum number of children that can +; be alive at the same time. +; pm.start_servers - the number of children created on startup. +; pm.min_spare_servers - the minimum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is less than this +; number then some children will be created. +; pm.max_spare_servers - the maximum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is greater than this +; number then some children will be killed. +; Note: This value is mandatory. +pm = dynamic + +; The number of child processes to be created when pm is set to 'static' and the +; maximum number of child processes to be created when pm is set to 'dynamic'. +; This value sets the limit on the number of simultaneous requests that will be +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP +; CGI. +; Note: Used when pm is set to either 'static' or 'dynamic' +; Note: This value is mandatory. +pm.max_children = 50 + +; The number of child processes created on startup. +; Note: Used only when pm is set to 'dynamic' +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 +;pm.start_servers = 20 + +; The desired minimum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.min_spare_servers = 5 + +; The desired maximum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.max_spare_servers = 35 + +; The number of requests each child process should execute before respawning. +; This can be useful to work around memory leaks in 3rd party libraries. For +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. +; Default Value: 0 +;pm.max_requests = 500 + +; The URI to view the FPM status page. If this value is not set, no URI will be +; recognized as a status page. By default, the status page shows the following +; information: +; accepted conn - the number of request accepted by the pool; +; pool - the name of the pool; +; process manager - static or dynamic; +; idle processes - the number of idle processes; +; active processes - the number of active processes; +; total processes - the number of idle + active processes. +; max children reached - number of times, the process limit has been reached, +; when pm tries to start more children (works only for +; pm 'dynamic') +; The values of 'idle processes', 'active processes' and 'total processes' are +; updated each second. The value of 'accepted conn' is updated in real time. +; Example output: +; accepted conn: 12073 +; pool: www +; process manager: static +; idle processes: 35 +; active processes: 65 +; total processes: 100 +; max children reached: 1 +; By default the status page output is formatted as text/plain. Passing either +; 'html' or 'json' as a query string will return the corresponding output +; syntax. Example: +; http://www.foo.bar/status +; http://www.foo.bar/status?json +; http://www.foo.bar/status?html +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;pm.status_path = /status + +; The ping URI to call the monitoring page of FPM. If this value is not set, no +; URI will be recognized as a ping page. This could be used to test from outside +; that FPM is alive and responding, or to +; - create a graph of FPM availability (rrd or such); +; - remove a server from a group if it is not responding (load balancing); +; - trigger alerts for the operating team (24/7). +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;ping.path = /ping + +; This directive may be used to customize the response of a ping request. The +; response is formatted as text/plain with a 200 response code. +; Default Value: pong +;ping.response = pong + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; The timeout for serving a single request after which a PHP backtrace will be +; dumped to the 'slowlog' file. A value of '0s' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_slowlog_timeout = 0 + +; The log file for slow requests +; Default Value: not set +; Note: slowlog is mandatory if request_slowlog_timeout is set +;slowlog = /var/log/php-fpm-$pool.log.slow + +; Set open file descriptor rlimit. +; Default Value: system defined value +;rlimit_files = 1024 + +; Set max core size rlimit. +; Possible Values: 'unlimited' or an integer greater or equal to 0 +; Default Value: system defined value +;rlimit_core = 0 + +; Chroot to this directory at the start. This value must be defined as an +; absolute path. When this value is not set, chroot is not used. +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one +; of its subdirectories. If the pool prefix is not set, the global prefix +; will be used instead. +; Note: chrooting is a great security feature and should be used whenever +; possible. However, all PHP paths will be relative to the chroot +; (error_log, sessions.save_path, ...). +; Default Value: not set +;chroot = + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +;chdir = /var/www + +; Redirect worker stdout and stderr into main error log. If not set, stdout and +; stderr will be redirected to /dev/null according to FastCGI specs. +; Note: on highloaded environement, this can cause some delay in the page +; process time (several ms). +; Default Value: no +;catch_workers_output = yes + +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from +; the current environment. +; Default Value: clean env +;env[HOSTNAME] = $HOSTNAME +;env[PATH] = /usr/local/bin:/usr/bin:/bin +;env[TMP] = /tmp +;env[TMPDIR] = /tmp +;env[TEMP] = /tmp + +; Additional php.ini defines, specific to this pool of workers. These settings +; overwrite the values previously defined in the php.ini. The directives are the +; same as the PHP SAPI: +; php_value/php_flag - you can set classic ini defines which can +; be overwritten from PHP call 'ini_set'. +; php_admin_value/php_admin_flag - these directives won't be overwritten by +; PHP call 'ini_set' +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. + +; Defining 'extension' will load the corresponding shared extension from +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not +; overwrite previously defined php.ini values, but will append the new value +; instead. + +; Note: path INI options can be relative and will be expanded with the prefix +; (pool, global or /usr/lib/php5.3) + +; Default Value: nothing is defined by default except the values in php.ini and +; specified at startup with the -d argument +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +;php_flag[display_errors] = off +;php_admin_value[error_log] = /var/log/fpm-php.www.log +;php_admin_flag[log_errors] = on +;php_admin_value[memory_limit] = 32M diff --git a/dev-lang/php/files/php-fpm.init b/dev-lang/php/files/php-fpm.init new file mode 100755 index 0000000..adcfd32 --- /dev/null +++ b/dev-lang/php/files/php-fpm.init @@ -0,0 +1,22 @@ +#!/sbin/runscript + +PHP_FPM_CONF="/etc/php/fpm-php5/php-fpm.conf" + +opts="depend start stop reload" + +depend() { + need net + use apache2 lighttpd nginx +} + +start() { + ebegin "Starting PHP FastCGI server" + start-stop-daemon --start --exec /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}" + eend $? +} + +stop() { + ebegin "Stopping PHP FastCGI server" + start-stop-daemon --stop --name php-fpm + eend $? +} diff --git a/dev-lang/php/files/php5-ldvs b/dev-lang/php/files/php5-ldvs new file mode 100644 index 0000000..783b0f6 --- /dev/null +++ b/dev-lang/php/files/php5-ldvs @@ -0,0 +1 @@ +PHP_5 { global: *; }; diff --git a/dev-lang/php/metadata.xml b/dev-lang/php/metadata.xml new file mode 100644 index 0000000..7847a74 --- /dev/null +++ b/dev-lang/php/metadata.xml @@ -0,0 +1,32 @@ + + + + php + + Enable CLI SAPI + Switch on common security setting for CGI SAPI + Enable embed SAPI + Add supports Enchant spelling library. + Add supports for Adobe's FDF toolkit. + Add fileinfo extension support + Add filter extension support + Switch on common security setting for CGI SAPI + Enable the FastCGI Process Manager SAPI + Enable the hash extension + Enables the intl extension for extended internalization support + Enable JSON support + Add SASL support for the PHP LDAP extension + Use native driver for mysql, mysqli, PDO_Mysql + Adds support for Perl Compatible Regular Expressions (deprecated: always "on" in php 5.3) + Force shared modules to build as PIC on x86 (speed tradeoff with memory usage) + Enable the bundled PDO extensions + Enables the phar extension to provide phar archive support + Enable the reflection extension (Reflection API) (deprecated: always "on" in php 5.3) + Adds support for the Standard PHP Library (deprecated: always "on" in php 5.3) + Add Suhosin support (patch and extension from http://www.suhosin.org/) + Add the Suhosin patch from http://www.suhosin.org/) + Enable XMLReader support + Enable XMLWriter support + Enable ZIP file support + + diff --git a/dev-lang/php/php-5.2.17.ebuild b/dev-lang/php/php-5.2.17.ebuild new file mode 100644 index 0000000..f70c549 --- /dev/null +++ b/dev-lang/php/php-5.2.17.ebuild @@ -0,0 +1,331 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.2.17.ebuild,v 1.14 2011/08/22 13:42:39 olemarkus Exp $ + +EAPI=2 + +PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob +interbase msql oci8 sapdb solid" + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool + +#SUHOSIN_VERSION="$PV-0.9.7" +SUHOSIN_VERSION="5.2.16-0.9.7" +EXPECTED_TEST_FAILURES="" + +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" + +function php_get_uri () +{ + case "${1}" in + "php-pre") + echo "http://downloads.php.net/johannes/${2}" + ;; + "php") + echo "http://www.php.net/distributions/${2}" + ;; + "suhosin") + echo "http://download.suhosin.org/${2}" + ;; + "gentoo") + echo "mirror://gentoo/${2}" + ;; + *) + die "unhandled case in php_get_uri" + ;; + esac +} + +PHP_MV="$(get_major_version)" + +# alias, so we can handle different types of releases (finals, rcs, alphas, +# betas, ...) w/o changing the whole ebuild +PHP_PV="${PV/_rc/RC}" +PHP_RELEASE="php" +PHP_P="${PN}-${PHP_PV}" +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="0" +PHP_PATCHSET_URI=" + $(php_get_uri gentoo "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" + +if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then + # in some cases we use our own suhosin patch (very recent version, + # patch conflicts, etc.) + SUHOSIN_TYPE="gentoo" +else + SUHOSIN_TYPE="suhosin" +fi + +if [[ -n ${SUHOSIN_VERSION} ]]; then + SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch" + SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )" +fi + +SRC_URI=" + ${PHP_SRC_URI} + ${PHP_PATCHSET_URI}" + +if [[ -n ${SUHOSIN_VERSION} ]]; then + SRC_URI="${SRC_URI} + suhosin? ( ${SUHOSIN_URI} )" +fi + +DESCRIPTION="The PHP language runtime engine: CLI, CGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +# We can build the following SAPIs in the given order +SAPIS="cli cgi embed apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads force-cgi-redirect discard-path" + +IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers db2 dbase dbmaker debug doc empress + empress-bcs esoob exif fdftk frontbase +filter firebird + flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile + interbase iodbc ipv6 +json kerberos ldap ldap-sasl libedit + mhash msql mssql mysql mysqli ncurses nls oci8 + oci8-instant-client odbc pcntl +pcre pdo pic +posix postgres qdbm + readline recode reflection sapdb +session sharedext sharedmem + +simplexml snmp soap sockets solid spell spl sqlite ssl suhosin + sybase-ct sysvipc tidy +tokenizer truetype unicode wddx + xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib" + +# Enable suhosin if available +[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin" + +DEPEND=">=app-admin/eselect-php-0.6.2 + pcre? ( >=dev-libs/libpcre-7.9[unicode] ) + adabas? ( >=dev-db/unixODBC-1.8.13 ) + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + birdstep? ( >=dev-db/unixODBC-1.8.13 ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( !gd-external? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + db2? ( >=dev-db/unixODBC-1.8.13 ) + dbmaker? ( >=dev-db/unixODBC-1.8.13 ) + empress? ( >=dev-db/unixODBC-1.8.13 ) + empress-bcs? ( >=dev-db/unixODBC-1.8.13 ) + esoob? ( >=dev-db/unixODBC-1.8.13 ) + exif? ( !gd? ( !gd-external? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) ) + fdftk? ( app-text/fdftk ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gd-external? ( media-libs/gd ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) ) + ldap-sasl? ( !oci8? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mhash? ( app-crypt/mhash ) + mssql? ( dev-db/freetds[mssql] ) + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ncurses? ( sys-libs/ncurses ) + nls? ( sys-devel/gettext ) + oci8-instant-client? ( dev-db/oracle-instantclient-basic ) + odbc? ( >=dev-db/unixODBC-1.8.13 ) + postgres? ( dev-db/postgresql-base ) + qdbm? ( dev-db/qdbm ) + readline? ( sys-libs/readline ) + recode? ( app-text/recode ) + sapdb? ( >=dev-db/unixODBC-1.8.13 ) + sharedmem? ( dev-libs/mm ) + simplexml? ( >=dev-libs/libxml2-2.6.8 ) + snmp? ( >=net-analyzer/net-snmp-5.2 ) + soap? ( >=dev-libs/libxml2-2.6.8 ) + solid? ( >=dev-db/unixODBC-1.8.13 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite? ( =dev-db/sqlite-2* pdo? ( =dev-db/sqlite-3* ) ) + ssl? ( >=dev-libs/openssl-0.9.7 ) + sybase-ct? ( dev-db/freetds ) + tidy? ( app-text/htmltidy ) + truetype? ( + =media-libs/freetype-2* + >=media-libs/t1lib-5.0.0 + !gd? ( !gd-external? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) ) + ) + wddx? ( >=dev-libs/libxml2-2.6.8 ) + xml? ( >=dev-libs/libxml2-2.6.8 ) + xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv ) + xmlreader? ( >=dev-libs/libxml2-2.6.8 ) + xmlwriter? ( >=dev-libs/libxml2-2.6.8 ) + xpm? ( + x11-libs/libXpm + virtual/jpeg + media-libs/libpng sys-libs/zlib + ) + xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 ) + zip? ( sys-libs/zlib ) + zlib? ( sys-libs/zlib ) + virtual/mta +" + +php="=${CATEGORY}/${PF}" +RDEPEND="${DEPEND} + truetype? ( || ( $php[gd] $php[gd-external] ) ) + cjk? ( || ( $php[gd] $php[gd-external] ) ) + exif? ( || ( $php[gd] $php[gd-external] ) ) + + xpm? ( $php[gd] ) + gd? ( $php[zlib,-gd-external] ) + gd-external? ( $php[-gd] ) + simplexml? ( $php[xml] ) + soap? ( $php[xml] ) + wddx? ( $php[xml] ) + xmlrpc? ( || ( $php[xml] $php[iconv] ) ) + xmlreader? ( $php[xml] ) + xsl? ( $php[xml] ) + ldap-sasl? ( $php[ldap,-oci8] ) + suhosin? ( $php[unicode] ) + adabas? ( $php[odbc] ) + birdstep? ( $php[odbc] ) + dbmaker? ( $php[odbc] ) + empress-bcs? ( $php[empress] ) + empress? ( $php[odbc] ) + esoob? ( $php[odbc] ) + db2? ( $php[odbc] ) + sapdb? ( $php[odbc] ) + solid? ( $php[odbc] ) + kolab? ( $php[imap] ) + + oci8? ( $php[-oci8-instant-client,-ldap-sasl] ) + oci8-instant-client? ( $php[-oci8] ) + + qdbm? ( $php[-gdbm] ) + readline? ( $php[-libedit] ) + recode? ( $php[-imap,-mysql,-mysqli] ) + firebird? ( $php[-interbase] ) + sharedmem? ( $php[-threads] ) + + !cli? ( !cgi? ( !apache2? ( !embed? ( $php[cli] ) ) ) ) + + filter? ( !dev-php${PHP_MV}/pecl-filter ) + json? ( !dev-php${PHP_MV}/pecl-json ) + zip? ( !dev-php${PHP_MV}/pecl-zip )" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( $php[unicode] )" + +DEPEND="${DEPEND} + sys-devel/flex + >=sys-devel/m4-1.4.3 + >=sys-devel/libtool-1.5.18" + +# They are in PDEPEND because we need PHP installed first! +PDEPEND="doc? ( app-doc/php-docs )" + +SLOT="5.2" +S="${WORKDIR}/${PHP_P}" + +# Allow users to install production version if they want to +# PHP 5.2 has other filenames for prod and dev versions + +case "${PHP_INI_VERSION}" in + production) + PHP_INI_UPSTREAM="php.ini-recommended" + ;; + development) + PHP_INI_UPSTREAM="php.ini-dist" + ;; + *) + PHP_INI_VERSION="development" + PHP_INI_UPSTREAM="php.ini-dist" + ;; +esac + +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: [version] [eval] +# Main eblit engine +eblit-core() { + [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files" + local e v func=$1 ver=$2 eval_=$3 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do + e="${FILESDIR}/eblits/${func}${v}.eblit" + if [[ -e ${e} ]] ; then + . "${e}" + [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" + return 0 + fi + done + return 1 +} + +# eblit-include +# Usage: [--skip] [version] +# Includes an "eblit" -- a chunk of common code among ebuilds in a given +# package so that its functions can be sourced and utilized within the +# ebuild. +eblit-include() { + local skipable=false r=0 + [[ $1 == "--skip" ]] && skipable=true && shift + [[ $1 == pkg_* ]] && skipable=true + + [[ -z $1 ]] && die "Usage: eblit-include [version]" + eblit-core $1 $2 + r="$?" + ${skipable} && return 0 + [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" +} + +# eblit-run-maybe +# Usage: +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "${*:2}" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v2 + +src_prepare() { eblit-run src_prepare v2 ; } +src_configure() { eblit-run src_configure v521 ; } +src_compile() { eblit-run src_compile v1 ; } +src_install() { eblit-run src_install v2 ; } +src_test() { eblit-run src_test v1 ; } +pkg_postinst() { eblit-run pkg_postinst v2 ; }