diff options
Diffstat (limited to 'dev-lang/php')
34 files changed, 8832 insertions, 0 deletions
diff --git a/dev-lang/php/ChangeLog b/dev-lang/php/ChangeLog new file mode 100644 index 0000000..9d5089f --- /dev/null +++ b/dev-lang/php/ChangeLog @@ -0,0 +1,2603 @@ +# ChangeLog for dev-lang/php +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.583 2012/05/03 20:27:33 maekke Exp $ + + 03 May 2012; Markus Meier <maekke@gentoo.org> php-5.3.11.ebuild: + arm stable, bug #410957 + +*php-5.3.12 (03 May 2012) +*php-5.4.2 (03 May 2012) + + 03 May 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.12.ebuild, + +php-5.4.2.ebuild: + Version bump. Fixes recently found security issue with the CGI SAPI + + 01 May 2012; Jeroen Roovers <jer@gentoo.org> php-5.3.11.ebuild: + Stable for HPPA (bug #410957). + + 30 Apr 2012; Agostino Sarubbo <ago@gentoo.org> php-5.3.11.ebuild: + Stable for amd64, wrt bug #410957 + + 29 Apr 2012; Andreas Schuerch <nativemad@gentoo.org> php-5.3.11.ebuild: + x86 stable, see bug 410857 + + 28 Apr 2012; Matti Bickel <mabi@gentoo.org> php-5.3.11.ebuild: + custom suhosin patch no longer needed, revert back to upstream one (fixes + #413785) + +*php-5.4.1 (26 Apr 2012) + + 26 Apr 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.1.ebuild: + Version bump of PHP 5.4 + +*php-5.3.11 (26 Apr 2012) + + 26 Apr 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.11.ebuild: + Version bump of PHP 5.3.11 + + 24 Apr 2012; Matti Bickel <mabi@gentoo.org> php-5.3.11_rc2.ebuild: + current suhosin patch misapplies in 5.3.11; use a custom patch with changed + offsets to fix this (based on and fixes #411935) + +*php-5.4.1_rc2 (13 Apr 2012) +*php-5.3.11_rc2 (13 Apr 2012) + + 13 Apr 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.11_rc2.ebuild, + +php-5.4.1_rc2.ebuild: + Bumping rc versions + + 30 Mar 2012; Ole Markus With <olemarkus@gentoo.org> Manifest: + Manifest fix + + 06 Mar 2012; Ole Markus With <olemarkus@gentoo.org> php-5.3.10-r2.ebuild, + php-5.3.10.ebuild, php-5.4.0.ebuild: + Changing patchset location. Bug #405823 + + 03 Mar 2012; Ole Markus With <olemarkus@gentoo.org> -php-5.3.9.ebuild, + -php-5.4.0_rc8.ebuild: + Removed older versions + + 03 Mar 2012; Brent Baude <ranger@gentoo.org> php-5.3.10.ebuild: + Marking php-5.3.10 ppc64 for bug 401997 + + 02 Mar 2012; Ole Markus With <olemarkus@gentoo.org> + files/eblits/src_configure-v53.eblit, php-5.4.0.ebuild: + Adding runtime dependencies + +*php-5.4.0 (01 Mar 2012) + + 01 Mar 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0.ebuild, + files/eblits/src_configure-v53.eblit: + PHP 5.4 final released + + 28 Feb 2012; Ole Markus With <olemarkus@gentoo.org> + files/eblits/src_configure-v53.eblit, files/eblits/src_configure-v54.eblit: + Fixed another bad mabi. Issue 406107 + + 28 Feb 2012; Matti Bickel <mabi@gentoo.org> + files/eblits/src_configure-v53.eblit: + fix typo in src_configure-v53.eblit (bug #406107), thanks to Matthew for + catching this + + 27 Feb 2012; Matti Bickel <mabi@gentoo.org> + files/eblits/src_configure-v53.eblit, files/eblits/src_configure-v54.eblit: + rely on /etc/env.d/50oracle-instantclient-basic to provide oci configuration + for php (bug #380581) + + 18 Feb 2012; Raúl Porcel <armin76@gentoo.org> php-5.3.10.ebuild: + ia64/s390/sh/sparc stable wrt #401997 + + 18 Feb 2012; Ole Markus With <olemarkus@gentoo.org> -php-5.4.0_rc7-r1.ebuild, + -php-5.4.0_rc7.ebuild, metadata.xml: + Cleaned up metadata.xml and removed some old versions + + 17 Feb 2012; Tobias Klausmann <klausman@gentoo.org> php-5.3.10.ebuild: + Stable on alpha, bug #401997 + + 17 Feb 2012; Ole Markus With <olemarkus@gentoo.org> php-5.4.0_rc8.ebuild: + Remove rc8 dep on <libpcre-8.30 + +*php-5.4.0_rc8 (16 Feb 2012) + + 16 Feb 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc8.ebuild, + php-5.3.10-r2.ebuild: + Bumping RC + + 13 Feb 2012; Markus Meier <maekke@gentoo.org> php-5.3.10.ebuild: + arm stable, bug #401997 + +*php-5.4.0_rc7-r1 (09 Feb 2012) + + 09 Feb 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc7-r1.ebuild, + php-5.3.10.ebuild, php-5.4.0_rc7.ebuild: + Revbump making php build against libpcre-8.30 + + 09 Feb 2012; Thomas Kahle <tomka@gentoo.org> php-5.3.10.ebuild: + marked x86 per bug 401997 + +*php-5.3.10-r2 (06 Feb 2012) + + 06 Feb 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.10-r2.ebuild, + -php-5.3.10-r1.ebuild: + Another fix for bug 402357. Should be somewhat safer than the previous fix + + 06 Feb 2012; Brent Baude <ranger@gentoo.org> php-5.3.10.ebuild: + Marking php-5.3.10 ppc for bug 401997 + + 06 Feb 2012; Ole Markus With <olemarkus@gentoo.org> + files/eblits/src_test-v1.eblit: + Fixed FEATURES="test", which apparently has not been working for a while. + +*php-5.3.10-r1 (06 Feb 2012) + + 06 Feb 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.10-r1.ebuild, + -php-5.4.0_rc6.ebuild, php-5.3.10.ebuild, php-5.3.9.ebuild, + php-5.4.0_rc7.ebuild: + Fixed compile fail against libpcre. Bug 402357 Non-fixed versions block + libpcre-8.30+ + + 06 Feb 2012; Jeroen Roovers <jer@gentoo.org> php-5.3.10.ebuild: + Stable for HPPA (bug #401997). + + 03 Feb 2012; Agostino Sarubbo <ago@gentoo.org> php-5.3.10.ebuild: + Stable for AMD64, wrt security bug #401997 + +*php-5.4.0_rc7 (03 Feb 2012) + + 03 Feb 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc7.ebuild: + RC version bump + + 02 Feb 2012; Matti Bickel <mabi@gentoo.org> php-5.3.10.ebuild: + use upstream suhosin patch instead of our own with php-5.3.10 + +*php-5.3.10 (02 Feb 2012) + + 02 Feb 2012; Matti Bickel <mabi@gentoo.org> +php-5.3.10.ebuild: + security bump, this closes a remote code execution possibility (see #401997); + this version can still use unchanged gentoo patchset/suhosin from php-5.3.9 + + 26 Jan 2012; Ole Markus With <olemarkus@gentoo.org> -php-5.3.8.ebuild, + -php-5.3.9_rc1.ebuild, -php-5.3.9_rc2.ebuild, -php-5.3.9_rc3.ebuild, + -php-5.3.9_rc4.ebuild, -php-5.4.0_rc3.ebuild, -php-5.4.0_rc4.ebuild, + -php-5.4.0_rc5.ebuild: + Removed older versions + + 21 Jan 2012; Ole Markus With <olemarkus@gentoo.org> -php-5.2.17.ebuild: + Removing PHP 5.2. Bye bye + +*php-5.4.0_rc6 (20 Jan 2012) + + 20 Jan 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc6.ebuild: + Bump of 5.4 RC + + 17 Jan 2012; Jeroen Roovers <jer@gentoo.org> php-5.3.9.ebuild: + Stable for HPPA (bug #384301). + + 16 Jan 2012; Mark Loeser <halcy0n@gentoo.org> php-5.3.9.ebuild: + Stable for ppc/ppc64; bug #384301 + + 14 Jan 2012; Raúl Porcel <armin76@gentoo.org> php-5.3.9.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #384301 + + 12 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> php-5.3.9.ebuild: + x86 stable wrt bug #384301 + + 11 Jan 2012; Agostino Sarubbo <ago@gentoo.org> php-5.3.9.ebuild: + Stable for AMD64, wrt security bug #384301 + + 11 Jan 2012; Ole Markus With <olemarkus@gentoo.org> php-5.3.9.ebuild: + Added support for suhosin again. Thanks a bunch to Hanno Boeck (bug 398495) + + 11 Jan 2012; Ole Markus With <olemarkus@gentoo.org> php-5.3.9.ebuild: + Removed suhosin for 5.3.9 as it has not been released yet (bug #398495) + +*php-5.3.9 (11 Jan 2012) + + 11 Jan 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.3.9.ebuild: + Version bump + +*php-5.4.0_rc5 (06 Jan 2012) + + 06 Jan 2012; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc5.ebuild: + Added 5.4.0 RC5 + +*php-5.4.0_rc4 (24 Dec 2011) +*php-5.3.9_rc4 (24 Dec 2011) + + 24 Dec 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.3.9_rc4.ebuild, + +php-5.4.0_rc4.ebuild: + Bumping php release candidates + + 23 Dec 2011; Ole Markus With <olemarkus@gentoo.org> + files/eblits/src_configure-v53.eblit: + Fixed a typo leading to bug 395725 + + 18 Dec 2011; Ole Markus With <olemarkus@gentoo.org> + +files/eblits/src_configure-v54.eblit, -files/eblits/src_configure-v3.eblit, + php-5.4.0_rc3.ebuild: + Changed src_config eblit versions to make it easier to figure out which eblit + is used where + + 17 Dec 2011; Ole Markus With <olemarkus@gentoo.org> php-5.3.9_rc3.ebuild: + Removed other REQUIRED_USE entries referencing USE flags not in IUSE + + 17 Dec 2011; Zac Medico <zmedico@gentoo.org> php-5.3.9_rc3.ebuild: + Bug #394995 - Remove invalid birdstep? conditionals from RDEPEND and + REQUIRED_USE, since the birdstep flag is no longer listed in IUSE. + +*php-5.3.9_rc3 (16 Dec 2011) + + 16 Dec 2011; Ole Markus With <olemarkus@gentoo.org> + +files/eblits/src_configure-v53.eblit, files/eblits/src_install-v2.eblit, + +php-5.3.9_rc3.ebuild, php-5.4.0_rc3.ebuild: + Bumping rc of 5.3.9. Contains a bunch of fixes backported from the 5.4 + ebuilds. + + 14 Dec 2011; Matti Bickel <mabi@gentoo.org> php-5.2.17.ebuild, + php-5.3.8.ebuild, php-5.3.9_rc1.ebuild, php-5.3.9_rc2.ebuild, + php-5.4.0_rc3.ebuild: + Merging categories dev-php5 and dev-php (bug #324665) + + 09 Dec 2011; Ole Markus With <olemarkus@gentoo.org> + -files/eblits/pkg_postinst-v2.eblit, php-5.2.17.ebuild, php-5.3.8.ebuild, + -php-5.4.0_rc1.ebuild, -php-5.4.0_rc2.ebuild, php-5.4.0_rc3.ebuild: + Removed pkg_postinst and all references due to bug #380845 + + 09 Dec 2011; Ole Markus With <olemarkus@gentoo.org> + -files/eblits/common-v1.eblit, php-5.2.17.ebuild, php-5.3.8.ebuild, + php-5.3.9_rc1.ebuild, php-5.3.9_rc2.ebuild: + Remove referenes to common v1 eblit + +*php-5.4.0_rc3 (09 Dec 2011) + + 09 Dec 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc3.ebuild: + Version bump of 5.4 RC. 5.3 will follow, but I want to backport some ebuild + changes first + + 06 Dec 2011; Ole Markus With <olemarkus@gentoo.org> -files/php-fpm.init, + files/php-fpm-r4.init: + Migrated changes from issue 390307 + +*php-5.4.0_rc2 (25 Nov 2011) +*php-5.3.9_rc2 (25 Nov 2011) + + 25 Nov 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.3.9_rc2.ebuild, + +php-5.4.0_rc2.ebuild: + Bump of the release candidates + + 18 Nov 2011; Ole Markus With <olemarkus@gentoo.org> files/php-fpm.init: + Fixed init script for multislotting. Bug 390307. Thanks to Guillaume + Castagnino and Piotr Karbowski for input + + 11 Nov 2011; Ole Markus With <olemarkus@gentoo.org> -php-5.4.0_beta2.ebuild: + Removed beta of 5.4 + +*php-5.4.0_rc1 (11 Nov 2011) + + 11 Nov 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_rc1.ebuild: + Added php 5.4 RC1 + + 08 Nov 2011; Ole Markus With <olemarkus@gentoo.org> + -files/70_mod_php5.conf-apache2-r1, -files/eblits/src_install-v1.eblit, + php-5.4.0_beta2.ebuild, -files/eblits/pkg_postinst-v1.eblit, + -files/eblits/pkg_setup-v1.eblit, -files/php-fpm-gentooified-5.3.4.patch, + -php-5.4.0_beta1.ebuild, -files/eblits/src_configure-snapshots.eblit, + -files/eblits/src_configure-v1.eblit, + -files/eblits/src_prepare-snapshots.eblit, -files/php-fpm.conf, + -files/php-fpm-gentooified.patch, -files/php-fpm-r0.conf, + -files/php-fpm-r3.init, files/eblits/src_install-v3.eblit: + Major cleanup of the ./files. Hopefully I did not break anything + +*php-5.3.9_rc1 (04 Nov 2011) + + 04 Nov 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.3.9_rc1.ebuild: + Added 5.3.9 RC1. The PHP release candidates are now released directly to + ~arch + + 31 Oct 2011; Matti Bickel <mabi@gentoo.org> + +files/eblits/src_compile-v2.eblit, files/eblits/src_install-v3.eblit, + php-5.4.0_beta2.ebuild: + Simplify src_compile and grab binaries/apache modules directly from + sapis-build directory, circumventing make install-sapi to fix bug #351266 + +*php-5.4.0_beta2 (20 Oct 2011) + + 20 Oct 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.4.0_beta2.ebuild: + Bump beta version of 5.4.0 + + 22 Sep 2011; Ole Markus With <olemarkus@gentoo.org> php-5.3.8.ebuild: + Enabling xml USE flag by default + + 16 Sep 2011; Ole Markus With <olemarkus@gentoo.org> -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 <olemarkus@gentoo.org> +php-5.4.0_beta1.ebuild: + Bump 5.4 to beta1 + + 16 Sep 2011; Ole Markus With <olemarkus@gentoo.org> + 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 <armin76@gentoo.org> php-5.3.8.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #372745 + + 28 Aug 2011; Markus Meier <maekke@gentoo.org> php-5.3.8.ebuild: + arm stable, bug #372745 + + 26 Aug 2011; Markos Chandras <hwoarang@gentoo.org> php-5.3.8.ebuild: + Stable on amd64 wrt bug #372745 + + 26 Aug 2011; Ole Markus With <olemarkus@gentoo.org> metadata.xml: + Removed older versions + + 26 Aug 2011; Thomas Kahle <tomka@gentoo.org> php-5.3.8.ebuild: + x86 stable per bug 372745 + + 25 Aug 2011; Kacper Kowalik <xarthisius@gentoo.org> php-5.3.8.ebuild: + ppc/ppc64 stable wrt #372745 + + 25 Aug 2011; Jeroen Roovers <jer@gentoo.org> php-5.3.8.ebuild: + Stable for HPPA (bug #372745). + +*php-5.3.8 (24 Aug 2011) + + 24 Aug 2011; Ole Markus With <olemarkus@gentoo.org> +php-5.3.8.ebuild: + Version bump + + 22 Aug 2011; Ole Markus With <olemarkus@gentoo.org> + 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 <olemarkus@gentoo.org> -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 <olemarkus@gentoo.org> + -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 <olemarkus@gentoo.org> +php-5.3.7.ebuild: + Version bump + +*php-5.3.7_rc5 (12 Aug 2011) + + 12 Aug 2011; Ole Markus With <olemarkus@gentoo.org> +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 <olemarkus@gentoo.org> +php-5.4.0_alpha3.ebuild: + Bumping 5.4 to alpha3 + + 26 Jul 2011; <olemarkus@gentoo.org> files/eblits/pkg_postinst-v2.eblit: + Removed some unnecessary warnings + +*php-5.3.7_rc3 (23 Jul 2011) + + 23 Jul 2011; Ole Markus With <olemarkus@gentoo.org> +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; <olemarkus@gentoo.org> files/eblits/src_install-v3.eblit: + Removed some 'security' fixes for php.ini. + + 02 Jul 2011; Ole Markus With <olemarkus@gentoo.org> + +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 <olemarkus@gentoo.org> -php-5.3.7_rc1.ebuild, + +php-5.3.7_rc2.ebuild: + Bumped 5.3.7 rc version + + 29 Jun 2011; Ole Markus With <olemarkus@gentoo.org> -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 <olemarkus@gentoo.org> + +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 <olemarkus@gentoo.org> + 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 <olemarkus@gentoo.org> + -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; <olemarkus@gentoo.org> -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; <olemarkus@gentoo.org> 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; <olemarkus@gentoo.org> +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; <olemarkus@gentoo.org> 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 <armin76@gentoo.org> php-5.3.6.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #358791 + + 05 Apr 2011; Markus Meier <maekke@gentoo.org> php-5.3.6.ebuild: + arm stable, bug #358791 + + 02 Apr 2011; Christoph Mende <angelos@gentoo.org> php-5.3.6.ebuild: + Stable on amd64 wrt bug #358791 + + 02 Apr 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> php-5.3.6.ebuild: + x86 stable wrt security bug #358791 + + 02 Apr 2011; Jeroen Roovers <jer@gentoo.org> php-5.3.6.ebuild: + Stable for HPPA (bug #358791). + + 01 Apr 2011; Kacper Kowalik <xarthisius@gentoo.org> php-5.3.6.ebuild: + ppc/ppc64 stable wrt #358791 + + 20 Mar 2011; <olemarkus@gentoo.org> -php-5.3.6_rc3.ebuild: + Removed RC as PHP 5.3.6 is now released + + 18 Mar 2011; <olemarkus@gentoo.org> +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 <olemarkus@gentoo.org> +php-5.3.6.ebuild: + Version bump + + 17 Mar 2011; Ole Markus With <olemarkus@gentoo.org> + 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 <olemarkus@gentoo.org> -php-5.2.14.ebuild, + -php-5.2.16.ebuild, -php-5.3.4.ebuild: + Removed older versions + + 16 Mar 2011; <olemarkus@gentoo.org> 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; <olemarkus@gentoo.org> +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; <olemarkus@gentoo.org> -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 <olemarkus@gentoo.org> +php-5.3.6_rc2.ebuild: + New 5.3.6 RC2 + + 25 Feb 2011; Kevin McCarthy <signals@gentoo.org> 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 <olemarkus@gentoo.org> php-5.3.5.ebuild, + php-5.3.6_rc1.ebuild: + Remove dependency on libevent + + 17 Feb 2011; Ole Markus With <olemarkus@gentoo.org> +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 <armin76@gentoo.org> 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 <mabi@gentoo.org> 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 <jer@gentoo.org> php-5.2.17.ebuild, + php-5.3.5.ebuild: + Stable for HPPA (bug #350908). + + 10 Jan 2011; Kacper Kowalik <xarthisius.kk@gmail.com> php-5.2.17.ebuild, + php-5.3.5.ebuild: + ppc64 stable wrt #350908 + + 09 Jan 2011; Brent Baude <ranger@gentoo.org> php-5.3.5.ebuild: + Marking php-5.3.5 ppc for bug 350908 + + 08 Jan 2011; Markus Meier <maekke@gentoo.org> php-5.3.5.ebuild: + arm stable, bug #350908 + + 08 Jan 2011; Markus Meier <maekke@gentoo.org> php-5.2.17.ebuild: + arm stable, bug #350908 + + 08 Jan 2011; Brent Baude <ranger@gentoo.org> php-5.3.5.ebuild: + Marking php-5.3.5 ~ppc for bug 349659 + + 08 Jan 2011; Brent Baude <ranger@gentoo.org> php-5.2.17.ebuild: + Marking php-5.2.17 ppc for bug 350908 + + 07 Jan 2011; Christian Faulhammer <fauli@gentoo.org> php-5.3.5.ebuild: + stable x86, security bug 350908 + + 07 Jan 2011; Christian Faulhammer <fauli@gentoo.org> php-5.2.17.ebuild: + stable x86, security bug 350908 + + 07 Jan 2011; Markos Chandras <hwoarang@gentoo.org> 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 <mabi@gentoo.org> + 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 <mabi@gentoo.org> 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 <mabi@gentoo.org> + 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 <klausman@gentoo.org> php-5.2.16.ebuild: + Stable on alpha, bug #340807 + + 02 Jan 2011; Tobias Klausmann <klausman@gentoo.org> php-5.3.4.ebuild: + Stable on alpha, bug #340807 + + 28 Dec 2010; Brent Baude <ranger@gentoo.org> 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; <olemarkus@gentoo.org> -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; <olemarkus@gentoo.org> php-5.2.16.ebuild, php-5.3.4.ebuild: + Readded some keywords that was dropped without reason + + 25 Dec 2010; Jeroen Roovers <jer@gentoo.org> php-5.2.16.ebuild, + php-5.3.4.ebuild: + Stable for HPPA (bug #340807). + + 25 Dec 2010; <olemarkus@gentoo.org> php-5.3.4.ebuild: + Prevented the fpm sapi from force-enabling the cli sapi (bug 349122) + + 21 Dec 2010; Matti Bickel <mabi@gentoo.org> +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 <ranger@gentoo.org> 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 <hwoarang@gentoo.org> php-5.2.16.ebuild, + php-5.3.4.ebuild: + Stable on amd64 wrt bug #340807 + + 19 Dec 2010; Matti Bickel <mabi@gentoo.org> + +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 <phajdan.jr@gentoo.org> 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 <mabi@gentoo.org> + 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 <olemarkus@gentoo.org> + files/eblits/pkg_postinst-v1.eblit, files/eblits/pkg_postinst-v2.eblit: + Added link to upgrade guide + + 09 Nov 2010; Jeroen Roovers <jer@gentoo.org> php-5.2.14-r2.ebuild, + php-5.3.3-r3.ebuild: + Marked ~hppa (bug #343597). + + 05 Nov 2010; Markus Meier <maekke@gentoo.org> php-5.2.14-r2.ebuild: + add ~arm, bug #343597 + + 05 Nov 2010; Markus Meier <maekke@gentoo.org> php-5.3.3-r3.ebuild: + add ~arm, bug #343597 + + 05 Nov 2010; Jeroen Roovers <jer@gentoo.org> php-5.3.3-r1.ebuild: + Stable for HPPA (bug #336869). + + 04 Nov 2010; Matti Bickel <mabi@gentoo.org> php-5.3.3-r3.ebuild: + do not block versions of pecl-fileinfo supporting minor version slotting + + 02 Nov 2010; <olemarkus@gentoo.org> files/eblits/pkg_postinst-v2.eblit, + files/eblits/src_install-v2.eblit: + Added abit more information to postinst + + 01 Nov 2010; Matti Bickel <mabi@gentoo.org> + 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; <olemarkus@gentoo.org> -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 <mabi@gentoo.org> + files/eblits/src_configure-v2.eblit: + properly fix bug #281316 (thanks to Alex Kiesel for noticing) + + 31 Oct 2010; <olemarkus@gentoo.org> files/eblits/pkg_postinst-v2.eblit: + Fixed a QA issue related to nonexisting SAPIs + + 30 Oct 2010; <olemarkus@gentoo.org> 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; <olemarkus@gentoo.org> 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 <mabi@gentoo.org> + files/eblits/src_install-v2.eblit: + install apache module config file into standard directory + + 24 Oct 2010; Matti Bickel <mabi@gentoo.org> + files/eblits/src_configure-v1.eblit, files/eblits/src_configure-v2.eblit: + enable pdo-sqlite via USE="sqlite3" not USE="sqlite" + + 21 Oct 2010; <olemarkus@gentoo.org> files/eblits/pkg_postinst-v1.eblit: + Added an additional warning about extension_dir to pkg_postinst + + 20 Oct 2010; Markos Chandras <hwoarang@gentoo.org> php-5.3.3-r1.ebuild: + Stable on amd64 wrt bug #336869 + + 19 Oct 2010; <olemarkus@gentoo.org> -php-5.2.13.ebuild: + Removing old version + + 19 Oct 2010; <olemarkus@gentoo.org> 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 <mabi@gentoo.org> + 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 <fauli@gentoo.org> 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; <olemarkus@gentoo.org> +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 <mabi@gentoo.org> + 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 <mabi@gentoo.org> php-5.2.14.ebuild: + enable spl and reflection by default, following upstream (bug #310383) + + 22 Aug 2010; Mark Loeser <halcy0n@gentoo.org> php-5.3.3-r1.ebuild: + Add back ~arm. It was dropped during the bump + + 16 Aug 2010; Jeroen Roovers <jer@gentoo.org> php-5.2.14.ebuild: + Stable for HPPA (bug #332039). + + 14 Aug 2010; Matti Bickel <mabi@gentoo.org> + files/eblits/src_compile-v1.eblit: + snmp causes sandbox errors in src_compile, too (bug #324739) + + 14 Aug 2010; Raúl Porcel <armin76@gentoo.org> php-5.2.14.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #332039 + + 12 Aug 2010; Matti Bickel <mabi@gentoo.org> php-5.2.14.ebuild: + patch tarball now includes the correctly named kolab patch (bug #332423) + + 11 Aug 2010; Joseph Jezak <josejx@gentoo.org> 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 <mabi@gentoo.org> + 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 <mabi@gentoo.org> -php-5.3.2.ebuild: + remove php-5.3.2 due to security issues (bug #332039) + + 11 Aug 2010; Matti Bickel <mabi@gentoo.org> 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 <phajdan.jr@gentoo.org> php-5.2.14.ebuild: + x86 stable wrt security bug #332039 + + 10 Aug 2010; Markos Chandras <hwoarang@gentoo.org> php-5.2.14.ebuild: + Stable on amd64 wrt bug #332039 + + 09 Aug 2010; Matti Bickel <mabi@gentoo.org> + 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 <mabi@gentoo.org> + files/eblits/src_test-v1.eblit: + run from cli sapi build dir (bug #330023) + + 09 Aug 2010; Matti Bickel <mabi@gentoo.org> + 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 <mabi@gentoo.org> + 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 <mabi@gentoo.org> php-5.2.14.ebuild: + added missing mhash in IUSE + +*php-5.2.14 (02 Aug 2010) + + 02 Aug 2010; Matti Bickel <mabi@gentoo.org> + +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 <mabi@gentoo.org> + files/eblits/src_install-v1.eblit: + use /tmp for session.save_path (bug #282768) + + 29 Jul 2010; Matti Bickel <mabi@gentoo.org> + files/eblits/src_install-v1.eblit: + add addpredict to work-around bug #324739 + + 28 Jul 2010; Markus Meier <maekke@gentoo.org> php-5.3.3.ebuild: + add ~arm, bug #321743 + + 26 Jul 2010; Matti Bickel <mabi@gentoo.org> + 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 <mabi@gentoo.org> 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 <klausman@gentoo.org> php-5.3.2.ebuild: + Keyworded on alpha, bug #321743 + + 19 Jul 2010; Jeroen Roovers <jer@gentoo.org> php-5.3.2.ebuild: + Marked ~hppa (bug #321743). + + 08 Jul 2010; Matti Bickel <mabi@gentoo.org> + 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 <mabi@gentoo.org> + files/eblits/src_configure-v1.eblit: + fix compilation on x64 systems (bug #327025) + + 05 Jul 2010; Matti Bickel <mabi@gentoo.org> php-5.2.13.ebuild: + introduced new style virtual httpd-php (bug #319623) + + 05 Jul 2010; Matti Bickel <mabi@gentoo.org> -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 <mabi@gentoo.org> php-5.3.2.ebuild: + introduced new style virtual httpd-php (bug #319623) + + 04 Jul 2010; Matti Bickel <mabi@gentoo.org> php-5.3.2.ebuild: + include patch to compile with gmp-5* (bug #322303) + + 14 Jun 2010; <mabi@gentoo.org> 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; <mabi@gentoo.org> 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; <mabi@gentoo.org> 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; <mabi@gentoo.org> -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; <mabi@gentoo.org> -files/20php4-envd, php-5.3.2.ebuild, + -files/php4-ldvs: + fix iodbc USE dep (bug #285419), remove unneeded php4 files + + 28 May 2010; <mabi@gentoo.org> php-5.3.2.ebuild: + add flex dependency (bug #221357) + + 28 May 2010; <mabi@gentoo.org> files/eblits/src_prepare-v1.eblit: + use portable find command (bug #321781) + +*php-5.3.2 (27 May 2010) + + 27 May 2010; <mabi@gentoo.org> 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 <maekke@gentoo.org> php-5.2.13.ebuild: + amd64 stable, bug #306939 + + 26 Mar 2010; Raúl Porcel <armin76@gentoo.org> php-5.2.13.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #306939 + + 24 Mar 2010; Jeroen Roovers <jer@gentoo.org> php-5.2.13.ebuild: + Stable for HPPA (bug #306939). + + 23 Mar 2010; Brent Baude <ranger@gentoo.org> php-5.2.13.ebuild: + Marking php-5.2.13 ppc for bug 306939 + + 22 Mar 2010; Christian Faulhammer <fauli@gentoo.org> php-5.2.13.ebuild: + stable x86, security bug 306939 + + 21 Mar 2010; Brent Baude <ranger@gentoo.org> 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 <keytoaster@gentoo.org> +php-5.2.13.ebuild: + Non-maintainer commit; Version bump, security bug #306939, patch by Bernd + Lommerzheim + + 13 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> php-5.2.12.ebuild, + +files/php-5.2.12-libpng14.patch: + Fix building with libpng14. + + 31 Jan 2010; Torsten Veller <tove@gentoo.org> 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 <armin76@gentoo.org> php-5.2.12.ebuild: + ia64/s390/sh/sparc stable wrt #293888 + + 05 Jan 2010; Joseph Jezak <josejx@gentoo.org> php-5.2.12.ebuild: + Marked ppc stable for bug #293888. + + 01 Jan 2010; Tobias Klausmann <klausman@gentoo.org> php-5.2.12.ebuild: + Stable on alpha, bug #293888 + + 31 Dec 2009; Markus Meier <maekke@gentoo.org> php-5.2.12.ebuild: + amd64/arm stable, bug #293888 + + 31 Dec 2009; Christian Faulhammer <fauli@gentoo.org> php-5.2.12.ebuild: + stable x86, security bug 293888 + + 31 Dec 2009; Jeroen Roovers <jer@gentoo.org> php-5.2.12.ebuild: + Stable for HPPA (bug #293888). + + 31 Dec 2009; Brent Baude <ranger@gentoo.org> 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 <hoffie@gentoo.org> +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 <hoffie@gentoo.org> 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 <barzog@telecom.by> + + 21 Nov 2009; nixnut <nixnut@gentoo.org> php-5.2.11-r1.ebuild: + ppc stable #292132 + + 17 Nov 2009; Raúl Porcel <armin76@gentoo.org> php-5.2.11-r1.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #292132 + + 17 Nov 2009; Brent Baude <ranger@gentoo.org> php-5.2.11-r1.ebuild: + Marking php-5.2.11-r1 ppc64 for bug 292132 + + 15 Nov 2009; Jeroen Roovers <jer@gentoo.org> php-5.2.11-r1.ebuild: + Stable for HPPA (bug #292132). + + 14 Nov 2009; Markus Meier <maekke@gentoo.org> php-5.2.11-r1.ebuild: + arm stable, bug #292132 + + 14 Nov 2009; Markus Meier <maekke@gentoo.org> 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 <cla@gentoo.org> +php-5.2.11-r1.ebuild: + Revision bump with fix for gdMaxColors (security bug #292132) + + 19 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> php-5.2.11.ebuild: + Stabilizing for ppc, bug 285434 (also fixing bug 278064) + + 18 Oct 2009; Brent Baude <ranger@gentoo.org> php-5.2.11.ebuild: + Marking php-5.2.11 ppc64 for bug 285434 + + 09 Oct 2009; Christian Hoffmann <hoffie@gentoo.org> php-5.2.11.ebuild: + adding dependency on recent enough suhosin per bug 276583 + + 07 Oct 2009; <chainsaw@gentoo.org> 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 <armin76@gentoo.org> php-5.2.11.ebuild: + alpha/arm/ia64/s390/sh/sparc stable wrt #285434 + + 07 Oct 2009; Jeroen Roovers <jer@gentoo.org> php-5.2.11.ebuild: + Stable for HPPA (bug #285434). + + 06 Oct 2009; Christian Faulhammer <fauli@gentoo.org> php-5.2.11.ebuild: + stable x86, security bug 285434 + +*php-5.2.11 (29 Sep 2009) + + 29 Sep 2009; Christian Hoffmann <hoffie@gentoo.org> +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 <cla@gentoo.org> +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 <hoffie@gentoo.org> +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 <armin76@gentoo.org> php-5.2.10.ebuild: + arm/ia64/s390/sh/sparc stable wrt #274670 + + 27 Jun 2009; Brent Baude <ranger@gentoo.org> php-5.2.10.ebuild: + Marking php-5.2.10 ppc64 and ppc for bug 274670 + + 26 Jun 2009; Tobias Klausmann <klausman@gentoo.org> php-5.2.10.ebuild: + Stable on alpha, bug #274670 + + 26 Jun 2009; Tobias Heinlein <keytoaster@gentoo.org> php-5.2.10.ebuild: + amd64 stable, security bug #274670 + + 25 Jun 2009; Christian Faulhammer <fauli@gentoo.org> php-5.2.10.ebuild: + stable x86, security bug 274670 + + 24 Jun 2009; Christian Hoffmann <hoffie@gentoo.org> metadata.xml: + restoring metadata.xml with zip-external description, somehow repoman + complains otherwise + + 23 Jun 2009; Jeroen Roovers <jer@gentoo.org> php-5.2.10.ebuild, + metadata.xml: + Stable for HPPA (bug #274670). + + 21 Jun 2009; Christian Hoffmann <hoffie@gentoo.org> metadata.xml: + removing traces of USE=zip-external + +*php-5.2.10 (19 Jun 2009) + + 19 Jun 2009; Christian Hoffmann <hoffie@gentoo.org> +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 <hoffie@gentoo.org> -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 <arfrever@gentoo.org> + ChangeLog: + Call depend.apache_pkg_setup() in pkg_setup() (bug #268371). + + 26 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + 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 <armin76@gentoo.org> php-5.2.9-r2.ebuild: + arm/ia64/s390/sh/sparc stable wrt #260576 + + 18 Apr 2009; Tobias Klausmann <klausman@gentoo.org> php-5.2.9-r2.ebuild: + Stable on alpha, bug #260576 + + 18 Apr 2009; Brent Baude <ranger@gentoo.org> php-5.2.9-r2.ebuild: + Marking php-5.2.9-r2 ppc64 for bug 260576 + + 18 Apr 2009; Markus Meier <maekke@gentoo.org> php-5.2.9-r2.ebuild: + x86 stable, bug #260576 + + 18 Apr 2009; nixnut <nixnut@gentoo.org> php-5.2.9-r2.ebuild: + ppc stable #260576 + + 17 Apr 2009; Jeroen Roovers <jer@gentoo.org> php-5.2.9-r2.ebuild: + Stable for HPPA (bug #260576). + + 17 Apr 2009; Tobias Heinlein <keytoaster@gentoo.org> 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 <hoffie@gentoo.org> -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 <hoffie@gentoo.org> +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 <fauli@gentoo.org> 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 <armin76@gentoo.org> php-5.2.8-r1.ebuild, + php-5.2.8-r2.ebuild: + arm/ia64/s390/sh stable + + 07 Mar 2009; Christian Faulhammer <fauli@gentoo.org> php-5.2.8-r1.ebuild, + php-5.2.8-r2.ebuild: + use EAPI 2 for USE flag check + + 02 Feb 2009; Mike Frysinger <vapier@gentoo.org> metadata.xml: + Document local USE=pic flag. + + 01 Feb 2009; Tobias Klausmann <klausman@gentoo.org> php-5.2.8-r2.ebuild: + Stable on alpha, bug #249703 + + 31 Jan 2009; Tiago Cunha <tcunha@gentoo.org> php-5.2.8-r2.ebuild: + stable sparc, bug 249703 + + 25 Jan 2009; Markus Meier <maekke@gentoo.org> php-5.2.8-r2.ebuild: + x86 stable, bug #249703 + + 24 Jan 2009; Tobias Scherbaum <dertobi123@gentoo.org> php-5.2.8-r2.ebuild: + ppc stable, bug #249703 + + 23 Jan 2009; Brent Baude <ranger@gentoo.org> php-5.2.8-r2.ebuild: + Marking php-5.2.8-r2 ppc64 for bug 249703 + + 20 Jan 2009; Tobias Heinlein <keytoaster@gentoo.org> php-5.2.8-r2.ebuild: + amd64 stable wrt security bug 249703 + + 20 Jan 2009; Jeroen Roovers <jer@gentoo.org> php-5.2.8-r2.ebuild: + Stable for HPPA (bug #249703). + +*php-5.2.8-r2 (11 Jan 2009) + + 11 Jan 2009; Christian Hoffmann <hoffie@gentoo.org> + -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 <armin76@gentoo.org> php-5.2.8-r1.ebuild: + alpha/ia64 stable wrt #249875 + + 23 Dec 2008; Friedrich Oslage <bluebird@gentoo.org> php-5.2.8-r1.ebuild: + Stable on sparc, security bug #249875 + + 22 Dec 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.8-r1.ebuild: + Stable for HPPA (bug #249875). + + 21 Dec 2008; Tobias Scherbaum <dertobi123@gentoo.org> php-5.2.8-r1.ebuild: + ppc stable, bug #249875 + + 20 Dec 2008; Markus Meier <maekke@gentoo.org> php-5.2.8-r1.ebuild: + amd64/x86 stable, bug #249875 + + 19 Dec 2008; Brent Baude <ranger@gentoo.org> php-5.2.8-r1.ebuild: + Marking php-5.2.8-r1 ppc64 for bug 249875 + + 19 Dec 2008; Tobias Scherbaum <dertobi123@gentoo.org> 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 <hoffie@gentoo.org> +php-5.2.8-r1.ebuild: + revbump for security bug 249875, shipping several new security fixes; + incorporate suggestion from Bernd Lommerzheim <bernd@lommerzheim.com> in + bug 238127 to check libpcre for USE=unicode; adding patch for interbase + precision improvements as suggested by Viesturs <viesturs@dps.lv> in bug + 250640 + +*php-5.2.8 (08 Dec 2008) + + 08 Dec 2008; Christian Hoffmann <hoffie@gentoo.org> +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 <hoffie@gentoo.org> -php-5.2.5-r1.ebuild, + -php-5.2.6-r6.ebuild: + dropping old and vulnerable + + 22 Sep 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.6-r7.ebuild: + Stable for HPPA (bug #231528). + + 21 Sep 2008; Raúl Porcel <armin76@gentoo.org> php-5.2.6-r7.ebuild: + alpha/ia64/sparc stable wrt #231528 + + 20 Sep 2008; Markus Meier <maekke@gentoo.org> php-5.2.6-r7.ebuild: + x86 stable, bug #231528 + + 16 Sep 2008; Brent Baude <ranger@gentoo.org> php-5.2.6-r7.ebuild: + Marking php-5.2.6-r7 ppc64 and ppc for bug 231528 + + 16 Sep 2008; Christian Hoffmann <hoffie@gentoo.org> 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 <hoffie@gentoo.org> -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 <jer@gentoo.org> metadata.xml: + Add GLEP 56 USE flag descriptions. + + 15 Aug 2008; Christian Hoffmann <hoffie@gentoo.org> -php-5.2.6.ebuild, + -php-5.2.6-r2.ebuild: + removing old and vulnerable + + 09 Aug 2008; Christian Hoffmann <hoffie@gentoo.org> -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 <dertobi123@gentoo.org> php-5.2.6-r6.ebuild: + ppc stable, bug #234102 + + 08 Aug 2008; Raúl Porcel <armin76@gentoo.org> php-5.2.6-r6.ebuild: + alpha/ia64/sparc stable wrt #234102 + + 07 Aug 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.6-r6.ebuild: + Stable for HPPA (bug #234102). + + 07 Aug 2008; Markus Meier <maekke@gentoo.org> php-5.2.6-r6.ebuild: + x86 stable, bug #234102 + + 07 Aug 2008; Markus Rothe <corsair@gentoo.org> php-5.2.6-r6.ebuild: + Stable on ppc64; bug #234102 + + 07 Aug 2008; Christian Hoffmann <hoffie@gentoo.org> php-5.2.6-r6.ebuild: + stable on amd64 wrt security bug 234102 + + 07 Aug 2008; Christian Hoffmann <hoffie@gentoo.org> 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 <hoffie@gentoo.org> -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 <hoffie@gentoo.org> 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 <hoffie@gentoo.org> php-5.2.6-r5.ebuild: + previous commit replaced CXXFLAGS by CFLAGS by accident, thanks to Rafał + Mużyło <galtgendo@o2.pl> in bug 230809 + + 20 Jul 2008; Christian Hoffmann <hoffie@gentoo.org> 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 <hoffie@gentoo.org> 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 <hoffie@gentoo.org> +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 <jer@gentoo.org> php-5.2.6-r2.ebuild: + Stable for HPPA (bug #230575). + + 10 Jul 2008; Christian Hoffmann <hoffie@gentoo.org> 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 <hoffie@gentoo.org> 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 <armin76@gentoo.org> php-5.2.6-r2.ebuild: + alpha/ia64/sparc stable wrt security #230575 + + 07 Jul 2008; Markus Meier <maekke@gentoo.org> php-5.2.6-r2.ebuild: + x86 stable, bug #230575 + + 07 Jul 2008; Thomas Anderson <gentoofan23@gentoo.org> php-5.2.6-r2.ebuild: + stable amd64, security bug 230575 + + 07 Jul 2008; Brent Baude <ranger@gentoo.org> 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 <hoffie@gentoo.org> +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 <hoffie@gentoo.org> +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 <hoffie@gentoo.org> + -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 <hoffie@gentoo.org> 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 <hoffie@gentoo.org> + -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 <dertobi123@gentoo.org> + php-5.2.6_rc4.ebuild: + ppc stable, bug #215266 + + 16 Apr 2008; Christian Hoffmann <hoffie@gentoo.org> 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 <jer@gentoo.org> php-5.2.6_rc4.ebuild: + Stable for HPPA (bug #215266). + + 15 Apr 2008; Raúl Porcel <armin76@gentoo.org> php-5.2.6_rc4.ebuild: + alpha/ia64/sparc stable wrt security #215266 + + 14 Apr 2008; Markus Meier <maekke@gentoo.org> php-5.2.6_rc4.ebuild: + amd64/x86 stable, security bug #215266 + + 14 Apr 2008; Markus Rothe <corsair@gentoo.org> php-5.2.6_rc4.ebuild: + Stable on ppc64; bug #215266 + +*php-5.2.6_rc4 (05 Apr 2008) + + 05 Apr 2008; Christian Hoffmann <hoffie@gentoo.org> +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 <hoffie@gentoo.org> + +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 <maekke@gentoo.org> php-5.2.6_rc3.ebuild: + x86 stable, security bug #215266 + + 29 Mar 2008; Raúl Porcel <armin76@gentoo.org> php-5.2.6_rc3.ebuild: + alpha/ia64/sparc stable wrt security #215266 + + 29 Mar 2008; Christian Hoffmann <hoffie@gentoo.org> php-5.2.6_rc3.ebuild: + stable on amd64, bug 215266 + + 29 Mar 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.6_rc3.ebuild: + Stable for HPPA (bug #215266). + + 29 Mar 2008; Brent Baude <ranger@gentoo.org> 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 <hoffie@gentoo.org> +php-5.2.6_rc3.ebuild: + bump, mainly to address the issues listed in security bug 215266 + + 23 Mar 2008; Benedikt Böhm <hollow@gentoo.org> + 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 <hoffie@gentoo.org> + -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 <dertobi123@gentoo.org> + php-5.2.6_rc1-r1.ebuild: + ppc stable, bug #212211 + + 08 Mar 2008; <pva@gentoo.org> php-5.2.6_rc1-r1.ebuild: + amd64 stable, security bug #212211. + + 07 Mar 2008; Dawid Węgliński <cla@gentoo.org> php-5.2.6_rc1-r1.ebuild: + Stable on x86 (bug #212211) + + 06 Mar 2008; Raúl Porcel <armin76@gentoo.org> php-5.2.6_rc1-r1.ebuild: + alpha/ia64/sparc stable wrt #212211 + + 06 Mar 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.6_rc1-r1.ebuild: + Stable for HPPA (bug #212211). + + 06 Mar 2008; Brent Baude <ranger@gentoo.org> 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 <hoffie@gentoo.org> + +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 <corsair@gentoo.org> php-5.2.6_rc1.ebuild: + Stable on ppc64; bug #212211 + + 04 Mar 2008; Raúl Porcel <armin76@gentoo.org> php-5.2.6_rc1.ebuild: + alpha/ia64/sparc stable wrt security #212211 + + 03 Mar 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.6_rc1.ebuild: + Stable for HPPA (bug #212211). + + 03 Mar 2008; Markus Meier <maekke@gentoo.org> php-5.2.6_rc1.ebuild: + x86 stable, security bug #212211 + +*php-5.2.6_rc1 (03 Mar 2008) + + 03 Mar 2008; Christian Hoffmann <hoffie@gentoo.org> +php-5.2.6_rc1.ebuild: + bump to 5.2.6_rc1 + + 03 Mar 2008; Christian Hoffmann <hoffie@gentoo.org> + -php-5.2.5_p20080206.ebuild, -php-5.2.5_p20080206-r2.ebuild: + removing old + + 28 Feb 2008; Steve Dibb <beandog@gentoo.org> + php-5.2.5_p20080206-r3.ebuild: + amd64 stable, bug 209148 + + 24 Feb 2008; Brent Baude <ranger@gentoo.org> + php-5.2.5_p20080206-r3.ebuild: + Marking php-5.2.5_p20080206-r3 ppc64 for bug 209148 + + 24 Feb 2008; Raúl Porcel <armin76@gentoo.org> + php-5.2.5_p20080206-r3.ebuild: + alpha/ia64/sparc stable wrt security #209148 + + 22 Feb 2008; Tobias Scherbaum <dertobi123@gentoo.org> + php-5.2.5_p20080206-r3.ebuild: + ppc stable, bug #209148 + + 21 Feb 2008; Markus Meier <maekke@gentoo.org> + php-5.2.5_p20080206-r3.ebuild: + x86 stable, security bug #209148 + + 21 Feb 2008; Jeroen Roovers <jer@gentoo.org> + php-5.2.5_p20080206-r3.ebuild: + Stable for HPPA (bug #209148). + + 13 Feb 2008; Christian Hoffmann <hoffie@gentoo.org> + 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 <hoffie@gentoo.org> + +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 <hoffie@gentoo.org> + +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 <armin76@gentoo.org> php-5.2.5_p20080206.ebuild: + alpha/ia64/sparc stable wrt security #209148 + + 08 Feb 2008; Jeroen Roovers <jer@gentoo.org> php-5.2.5_p20080206.ebuild: + Stable for HPPA (bug #209148). + + 08 Feb 2008; Tobias Scherbaum <dertobi123@gentoo.org> + php-5.2.5_p20080206.ebuild: + ppc stable, bug #209148 + + 08 Feb 2008; Brent Baude <ranger@gentoo.org> php-5.2.5_p20080206.ebuild: + Marking php-5.2.5_p20080206 ppc64 for bug 209148 + + 07 Feb 2008; Dawid Węgliński <cla@gentoo.org> + php-5.2.5_p20080206.ebuild: + Stable on x86 (bug #209148) + +*php-5.2.5_p20080206 (06 Feb 2008) + + 06 Feb 2008; Christian Hoffmann <hoffie@gentoo.org> + +php-5.2.5_p20080206.ebuild: + adding new snapshot 5.2.5_p20080206 for security bug 209148 + + 31 Jan 2008; Christian Hoffmann <hoffie@gentoo.org> + 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 <hoffie@gentoo.org> +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 <hoffie@gentoo.org> -php-5.2.5.ebuild: + removing php-5.2.5, -r1 is more secure and has same KEYWORDS + + 15 Dec 2007; <welp@gentoo.org> php-5.2.5-r1.ebuild: + Stable on amd64; bug 201885 + + 12 Dec 2007; Brent Baude <ranger@gentoo.org> php-5.2.5-r1.ebuild: + Marked php-5.2.5-r1 ppc & ppc64 stable for bug 201885 + + 11 Dec 2007; Jeroen Roovers <jer@gentoo.org> php-5.2.5-r1.ebuild: + Stable for HPPA (bug #201885). + + 11 Dec 2007; Raúl Porcel <armin76@gentoo.org> php-5.2.5-r1.ebuild: + alpha/ia64/sparc stable wrt security #201885 + + 11 Dec 2007; Dawid Węgliński <cla@gentoo.org> php-5.2.5-r1.ebuild: + Stable on x86 (bug #201885) + +*php-5.2.5-r1 (08 Dec 2007) + + 08 Dec 2007; Christian Hoffmann <hoffie@gentoo.org> +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 <hoffie@gentoo.org> -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 <astinus@gentoo.org> php-5.2.5.ebuild: + changing ~amd64 -> amd64 with regard to #198650 + + 13 Nov 2007; Tobias Scherbaum <dertobi123@gentoo.org> php-5.2.5.ebuild: + ppc stable, bug #198650 + + 12 Nov 2007; Markus Rothe <corsair@gentoo.org> php-5.2.5.ebuild: + Stable on ppc64; bug #198650 + + 12 Nov 2007; Jeroen Roovers <jer@gentoo.org> php-5.2.5.ebuild: + Stable for HPPA (bug #198650 ). + + 12 Nov 2007; Raúl Porcel <armin76@gentoo.org> php-5.2.5.ebuild: + alpha/ia64/sparc stable wrt #198650 + + 11 Nov 2007; Dawid Węgliński <cla@gentoo.org> php-5.2.5.ebuild: + Stable on x86 (bug #198650) + +*php-5.2.5 (09 Nov 2007) + + 09 Nov 2007; Christian Hoffmann <hoffie@gentoo.org> +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 <hoffie@gentoo.org> -php-5.1.6-r11.ebuild: + removing php-5.1* + + 21 Oct 2007; Christian Hoffmann <hoffie@gentoo.org> -php-5.2.2-r1.ebuild, + -php-5.2.4_p20070914.ebuild: + cleanup old + + 25 Sep 2007; Raúl Porcel <armin76@gentoo.org> + php-5.2.4_p20070914-r2.ebuild: + sparc stable wrt security #191034 + + 22 Sep 2007; Raúl Porcel <armin76@gentoo.org> + php-5.2.4_p20070914-r2.ebuild: + alpha/ia64 stable wrt security #191034 + + 20 Sep 2007; Brent Baude <ranger@gentoo.org> + php-5.2.4_p20070914-r2.ebuild: + MArking php-5.2.4_p20070914-r2 ppc64 stable for 191034 + + 20 Sep 2007; Chris Gianelloni <wolf31o2@gentoo.org> + php-5.2.4_p20070914-r2.ebuild: + Stable on amd64/x86 wrt bug #191034. + + 20 Sep 2007; Tobias Scherbaum <dertobi123@gentoo.org> + php-5.2.4_p20070914-r2.ebuild: + ppc stable, bug #191034 + + 20 Sep 2007; Jeroen Roovers <jer@gentoo.org> + 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 <hoffie@gentoo.org> + +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 <hoffie@gentoo.org> + +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 <hoffie@gentoo.org> -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 <corsair@gentoo.org> + php-4.4.8_pre20070816.ebuild: + Stable on ppc64; bug #189172 + + 24 Aug 2007; Raúl Porcel <armin76@gentoo.org> + php-4.4.8_pre20070816.ebuild: + alpha/ia64 stable wrt security #189172 + + 23 Aug 2007; Christoph Mende <angelos@gentoo.org> + php-4.4.8_pre20070816.ebuild: + Stable on amd64 wrt security bug #189172 + + 22 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org> + php-4.4.8_pre20070816.ebuild: + ppc stable, bug #189172 + + 21 Aug 2007; Gustavo Zacarias <gustavoz@gentoo.org> + php-4.4.8_pre20070816.ebuild: + Stable on sparc wrt security #189172 + + 20 Aug 2007; Markus Ullmann <jokey@gentoo.org> + php-4.4.8_pre20070816.ebuild: + Stable on x86 wrt security bug #189172 + + 19 Aug 2007; Jeroen Roovers <jer@gentoo.org> php-4.4.8_pre20070816.ebuild: + Stable for HPPA (bug #189172). + +*php-4.4.8_pre20070816 (18 Aug 2007) + + 18 Aug 2007; Christian Hoffmann <hoffie@gentoo.org> + +php-4.4.8_pre20070816.ebuild: + version bump to fix several security issues, see bug 189172 + + 15 Aug 2007; Jeroen Roovers <jer@gentoo.org> + php-5.2.4_pre200708051230-r2.ebuild: + Stable for HPPA (bug #180556). + + 14 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org> + php-5.2.4_pre200708051230-r2.ebuild: + ppc stable, bug #180556 + + 14 Aug 2007; Markus Rothe <corsair@gentoo.org> + php-5.2.4_pre200708051230-r2.ebuild: + Stable on ppc64; bug #180556 + + 13 Aug 2007; Gustavo Zacarias <gustavoz@gentoo.org> + php-5.2.4_pre200708051230-r2.ebuild: + Stable on sparc wrt #180556 + + 12 Aug 2007; Steve Dibb <beandog@gentoo.org> + php-5.2.4_pre200708051230-r2.ebuild: + amd64 stable, bug 180556 + + 11 Aug 2007; Raúl Porcel <armin76@gentoo.org> + 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 <dertobi123@gentoo.org> + +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 <gustavoz@gentoo.org> php-5.2.3-r3.ebuild: + Stable on sparc wrt security #180556 + + 30 Jul 2007; Markus Rothe <corsair@gentoo.org> php-5.2.3-r3.ebuild: + Stable on ppc64; bug #180556 + + 28 Jul 2007; Jeroen Roovers <jer@gentoo.org> php-5.2.3-r3.ebuild: + Stable for HPPA (bug #180556). + + 28 Jul 2007; Steve Dibb <beandog@gentoo.org> php-5.2.3-r3.ebuild: + amd64 stable, security bug 180556 + + 28 Jul 2007; Raúl Porcel <armin76@gentoo.org> php-5.2.3-r3.ebuild: + alpha/ia64/x86 stable wrt #180556 + + 28 Jul 2007; Tobias Scherbaum <dertobi123@gentoo.org> php-5.2.3-r3.ebuild: + ppc stable, bug #180556 + +*php-5.2.3-r3 (22 Jul 2007) + + 22 Jul 2007; Tobias Scherbaum <dertobi123@gentoo.org> + +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 <chtekk@gentoo.org> -php-4.4.6.ebuild, + -php-5.2.1-r3.ebuild: + Remove old versions. + + 12 May 2007; Markus Rothe <corsair@gentoo.org> php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + Stable on ppc64; bug #169372 + + 12 May 2007; Luca Longinotti <chtekk@gentoo.org> + 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 <jer@gentoo.org> php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + Stable for HPPA (bug #169372). + + 10 May 2007; Jose Luis Rivero <yoswink@gentoo.org> php-5.2.2-r1.ebuild: + Stable on alpha wrt security bug #169372 + + 09 May 2007; Luca Longinotti <chtekk@gentoo.org> php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + AMD64 stable for security bug #169372. + + 09 May 2007; Jose Luis Rivero <yoswink@gentoo.org> php-4.4.7.ebuild: + Stable on alpha wrt security bug #169372 + + 08 May 2007; Raúl Porcel <armin76@gentoo.org> php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + ia64 + x86 stable wrt security bug 169372 + + 08 May 2007; Gustavo Zacarias <gustavoz@gentoo.org> php-4.4.7.ebuild, + php-5.2.2-r1.ebuild: + Stable on sparc wrt security #169372 + + 08 May 2007; Tobias Scherbaum <dertobi123@gentoo.org> 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 <chtekk@gentoo.org> +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 <chtekk@gentoo.org> -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 <armin76@gentoo.org> 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 <armin76@gentoo.org> 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 <yoswink@gentoo.org> 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 <gustavoz@gentoo.org> 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 <killerfox@gentoo.org> php-5.1.6-r11.ebuild: + Stable on hppa. See bug #153911. + + 06 Mar 2007; Tobias Scherbaum <dertobi123@gentoo.org> 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 <opfer@gentoo.org> 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 <jer@gentoo.org> php-5.2.1-r3.ebuild: + Stable for HPPA (bug #153911). + + 06 Mar 2007; Markus Rothe <corsair@gentoo.org> 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 <jer@gentoo.org> php-4.4.6.ebuild: + Stable for HPPA (bug #153911). + + 05 Mar 2007; Luca Longinotti <chtekk@gentoo.org> 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 <chtekk@gentoo.org> +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 <chtekk@gentoo.org> -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 <kloeri@gentoo.org> 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 <chtekk@gentoo.org> +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 <tsunam@gentoo.org> php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable x86; bug #150261 + + 15 Oct 2006; Tobias Scherbaum <dertobi123@gentoo.org> php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + hppa stable, bug #150261 + + 14 Oct 2006; Aron Griffis <agriffis@gentoo.org> php-5.1.6-r6.ebuild: + Mark 5.1.6-r6 stable on ia64. #150261 + + 11 Oct 2006; Fernando J. Pereda <ferdy@gentoo.org> 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 <corsair@gentoo.org> php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable on ppc64; bug #150261 + + 11 Oct 2006; Gustavo Zacarias <gustavoz@gentoo.org> php-4.4.4-r6.ebuild, + php-5.1.6-r6.ebuild: + Stable on sparc wrt security #150261 + + 11 Oct 2006; Tobias Scherbaum <dertobi123@gentoo.org> 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 <chtekk@gentoo.org> +php-4.4.4-r6.ebuild, + +php-5.1.6-r6.ebuild: + Fix security bug #150261, amd64 stable. + + 16 Sep 2006; Rene Nussbaumer <killerfox@gentoo.org> php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on hppa. See bug #147061. + + 14 Sep 2006; Bryan Østergaard <kloeri@gentoo.org> php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on ia64, bug 147061. + + 11 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org> php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + ppc stable, bug #147061 + + 11 Sep 2006; Thomas Cort <tcort@gentoo.org> 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 <corsair@gentoo.org> php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on ppc64; bug #147061 + + 11 Sep 2006; Jason Wever <weeve@gentoo.org> php-4.4.4-r4.ebuild, + php-5.1.6-r4.ebuild: + Stable on SPARC wrt security bug #147061. + + 10 Sep 2006; <ticho@gentoo.org> 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 <chtekk@gentoo.org> -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 <chtekk@gentoo.org> -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 <kloeri@gentoo.org> php-4.4.3-r1.ebuild: + Stable on ia64. + + 05 Sep 2006; Luca Longinotti <chtekk@gentoo.org> -php-5.1.4.ebuild, + -php-5.1.4-r4.ebuild: + Remove old versions. + + 03 Sep 2006; Bryan Østergaard <kloeri@gentoo.org> 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 <chtekk@gentoo.org> -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 <chtekk@gentoo.org> -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 <chtekk@gentoo.org> +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 <tsunam@gentoo.org> 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 <yoswink@gentoo.org> php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on alpha wrt security bug #143126 + + 12 Aug 2006; Jason Wever <weeve@gentoo.org> 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 <killerfox@gentoo.org> php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on hppa. See bug #143126. + + 12 Aug 2006; Markus Rothe <corsair@gentoo.org> php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on ppc64; bug #143126 + + 10 Aug 2006; Luca Longinotti <chtekk@gentoo.org> php-4.4.3-r1.ebuild: + Retry with manually diffed patch, works here now, hopefully out there too. ;) + + 10 Aug 2006; Luca Longinotti <chtekk@gentoo.org> 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 <chtekk@gentoo.org> 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 <gustavoz@gentoo.org> php-4.4.3-r1.ebuild, + php-5.1.4-r6.ebuild: + Stable on sparc wrt security #143126 + + 10 Aug 2006; Tobias Scherbaum <dertobi123@gentoo.org> 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 <chtekk@gentoo.org> +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 <chtekk@gentoo.org> 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 <chtekk@gentoo.org> php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on amd64 wrt bug #133524. + + 18 Jul 2006; Joshua Jackson <tsunam@gentoo.org> php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable x86; security bug #133524 + + 18 Jul 2006; Thomas Cort <tcort@gentoo.org> php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on alpha wrt security Bug #133524. + + 17 Jul 2006; Markus Rothe <corsair@gentoo.org> php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + Stable on ppc64; bug #133524 + + 17 Jul 2006; Tobias Scherbaum <dertobi123@gentoo.org> php-4.4.2-r6.ebuild, + php-5.1.4-r4.ebuild: + ppc stable, bug #133524 + + 16 Jul 2006; Jason Wever <weeve@gentoo.org> 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 <chtekk@gentoo.org> + +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 <chtekk@gentoo.org> -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 <chtekk@gentoo.org> -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 <kloeri@gentoo.org> 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 <chtekk@gentoo.org> +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ò <flameeyes@gentoo.org> php-4.4.2-r2.ebuild: + Add ~x86-fbsd keyword to 4.4 version. + + 06 May 2006; Jason Wever <weeve@gentoo.org> php-4.4.2-r2.ebuild: + Stable on SPARC wrt security bug #131135. + + 06 May 2006; Markus Rothe <corsair@gentoo.org> php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on ppc64; bug #131135 + + 06 May 2006; Mark Loeser <halcy0n@gentoo.org> php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on x86; bug #131135 + + 05 May 2006; <tcort@gentoo.org> php-4.4.2-r2.ebuild, php-5.1.4.ebuild: + Stable on alpha wrt security Bug #131135. + + 05 May 2006; Rene Nussbaumer <killerfox@gentoo.org> php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + Stable on hppa. See bug #131135. + + 05 May 2006; Tobias Scherbaum <dertobi123@gentoo.org> php-4.4.2-r2.ebuild, + php-5.1.4.ebuild: + ppc stable, bug #131135 + + 05 May 2006; Gustavo Zacarias <gustavoz@gentoo.org> php-5.1.4.ebuild: + Stable on sparc wrt security #131135 + + 05 May 2006; Luca Longinotti <chtekk@gentoo.org> 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 <squinky86@gentoo.org> 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 <chtekk@gentoo.org> -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ò <flameeyes@gentoo.org> php-5.1.2-r1.ebuild: + Add ~x86-fbsd keyword. + + 20 Apr 2006; Luca Longinotti <chtekk@gentoo.org> 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 <chtekk@gentoo.org> +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 <chtekk@gentoo.org> + 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 <chtekk@gentoo.org> + 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 <chtekk@gentoo.org> + 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 <tsunam@gentoo.org> 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 <killerfox@gentoo.org> php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable on hppa. See bug #125878. + + 12 Mar 2006; Markus Rothe <corsair@gentoo.org> php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable on ppc64; bug #125878 + + 12 Mar 2006; Tobias Scherbaum <dertobi123@gentoo.org> php-4.4.2.ebuild, + php-5.1.2.ebuild: + ppc stable, bug #125878 + + 12 Mar 2006; Jason Wever <weeve@gentoo.org> php-4.4.2.ebuild, + php-5.1.2.ebuild: + Stable on SPARC wrt security bug #125878. + + 12 Mar 2006; Fernando J. Pereda <ferdy@gentoo.org> php-5.1.2.ebuild: + Stable on alpha wrt security bug #125878 + + 12 Mar 2006; Simon Stelling <blubb@gentoo.org> php-4.4.2.ebuild, + php-5.1.2.ebuild: + stable on amd64 wrt bug 125878 + + 12 Mar 2006; Fernando J. Pereda <ferdy@gentoo.org> 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 <chtekk@gentoo.org> + -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 <jer@gentoo.org> php-5.0.5-r5.ebuild: + Stable on hppa (preparation for bug #119461). + + 21 Feb 2006; Jeroen Roovers <jer@gentoo.org> php-5.0.5-r5.ebuild: + Marked ~hppa. + + 26 Jan 2006; Jeroen Roovers <jer@gentoo.org> php-4.4.1-r3.ebuild: + Marked stable on hppa (bug #102649). + + 26 Jan 2006; Jeroen Roovers <jer@gentoo.org> php-5.1.1.ebuild: + Marked ~hppa (bug #119461). + + 25 Jan 2006; Bryan Østergaard <kloeri@gentoo.org php-4.4.1-r3.ebuild, + php-5.0.5-r5.ebuild: + Stable on alpha. + + 22 Jan 2006; Simon Stelling <blubb@gentoo.org> php-4.3.11-r5.ebuild, + php-4.4.1-r3.ebuild: + stable on amd64 + + 22 Jan 2006; Simon Stelling <blubb@gentoo.org> php-5.0.5-r5.ebuild: + stable on amd64 + + 22 Jan 2006; <nixnut@gentoo.org> php-4.3.11-r5.ebuild: + Added ~ppc keyword to php-4.3.11-r5 + + 21 Jan 2006; Jason Wever <weeve@gentoo.org> 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; <nixnut@gentoo.org> 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 <nelchael@gentoo.org> 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 <corsair@gentoo.org> php-4.4.1-r3.ebuild, + php-5.0.5-r5.ebuild: + Stable on ppc64; bug #119461 + + 10 Jan 2006; Luca Longinotti <chtekk@gentoo.org> + -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 <chtekk@gentoo.org> + +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 <chtekk@gentoo.org> + 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 <corsair@gentoo.org> php-4.4.1-r2.ebuild, + php-5.0.5-r4.ebuild: + Added ~ppc64 keywords; bug #102649 + + 10 Nov 2005; Jason Wever <weeve@gentoo.org> 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 <chtekk@gentoo.org> + 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 <chtekk@gentoo.org> + 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 <chtekk@gentoo.org> + +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 <chtekk@gentoo.org> + +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 <chtekk@gentoo.org> + -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 <weeve@gentoo.org> 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 <hollow@gentoo.org> + +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 <cryos@gentoo.org> 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 <cryos@gentoo.org> php-4.4.0.ebuild: + Fixed up the remaining deps, tested here and looks good. Marking ~amd64, bug + 102649. + + 17 Sep 2005; Brian Harring <ferringb@gentoo.org> php-4.4.0.ebuild, + php-5.0.4.ebuild: + Backed out ~amd64 keywording. bad deps. + + 16 Sep 2005; Christian Parpart <trapni@gentoo.org> php-4.4.0.ebuild, + php-5.0.4.ebuild: + added to ~amd64 + + 14 Sep 2005; Joseph Jezak <josejx@gentoo.org> php-5.0.4.ebuild: + Marked ~ppc for bug #105673. + + 14 Sep 2005; Joseph Jezak <josejx@gentoo.org> 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 <hollow@gentoo.org> +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 <weeve@gentoo.org> 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 <stuart@gentoo.org> + +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 <voxus@gentoo.org> 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 <sebastian@gentoo.org> +php-5.0.5.ebuild: + Version bump. + + 04 Sep 2005; Stuart Herbert <stuart@gentoo.org> + +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; <stuart@gentoo.org> 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..1ae8ec0 --- /dev/null +++ b/dev-lang/php/Manifest @@ -0,0 +1,51 @@ +AUX 20php5-envd 145 RMD160 8c81fb7dc1d1ddf16fd956d748514db3bcb27603 SHA1 f1cef57c0def8e2c5422aaf136f40b4ff47801d2 SHA256 efaae9e6ae5f7010e073c2ab6d8a9dda009f0707c7d7b0c027e142c94f7041a4 +AUX 70_mod_php5.conf-apache2 348 RMD160 9f3f49a52ebf92c2650501c5ceb6f95ce4bb2e76 SHA1 62992e793446b4a9a64900d1ecba7bae06873382 SHA256 5bb8a45570582b4389a7d3feea0398e1c13ed4ced96e559b9406ed8c965dea8c +AUX eblits/common-v2.eblit 389 RMD160 10a23452d6f55dfccb9625a8e92899b5f339a7be SHA1 34be294b26c2e4118c6beb2b84d19c4faf426278 SHA256 bf6e4b7ddc7d884e5039df47bd754e6289844faa7a03cc3095ee6aa552c7a39c +AUX eblits/pkg_setup-v2.eblit 393 RMD160 430ab1f0227011172d422886862bd59d3886034a SHA1 2fdb587135cd0fe84ea51bfee8cf4ea9fd67dcb5 SHA256 17f9316065960ff0ca56aeec918c2c9e6c80ffdf951a238f7271a589753e320c +AUX eblits/pkg_setup-v3.eblit 283 RMD160 f1b8307ad0c1f05e6acdd38fb70cec2c65e47cf8 SHA1 97361e7542a3dc3bb6d803ddab2a150f40ba8531 SHA256 5905eb3e6d984a9f8fe49e088adad99db7249f62a957c19f0ae4bf3f56ecaecd +AUX eblits/src_compile-v1.eblit 1283 RMD160 83fbb374e2dfaa9d164e6b32b57c268ed06bf519 SHA1 09124cbc9008bfb72eb24cd24b2319d22df52c2c SHA256 5ec76ae24304c5f803a615a98394c219018da1b1ce2018f92f6ac8c5becf6c99 +AUX eblits/src_compile-v2.eblit 515 RMD160 566e373f081d0310768753cde2320966ec5809a5 SHA1 af5d50abc74decb1c3f084d6d5b56dde1afe88d8 SHA256 60fe1529591f7531ad4af37fab1a52e2ffe197f27a19f269b3b62fdbc044261c +AUX eblits/src_configure-v2.eblit 10855 RMD160 27c70744216912e79707c6861bc7d00a379d690a SHA1 7629d985421b756aa57bcce51d378ff14db675c8 SHA256 cd3002b6c9bd91dc9d7471e416cc631247fb2ad9d7b68981b26a3f83f84c916a +AUX eblits/src_configure-v521.eblit 10844 RMD160 90513f59b5f17d680004d3e74581d9eedc8af490 SHA1 a369e2cf7816799f7e2bead8b6eccc2115d0ecdc SHA256 ad875ca45e9ad975c0d7a3cbedc27c5035aa048d7aa935221a15e47cbca63c3d +AUX eblits/src_configure-v53.eblit 6468 RMD160 b1cd05f6cc4ecbf90d9db075156aecc46cd87a93 SHA1 5e2a86355b5cab42e4d59a288223b165476281e2 SHA256 95f0a22481b07155f9615ee38919f0f0c814142e2cf3fcd632b4f0cf84a73232 +AUX eblits/src_configure-v54.eblit 7370 RMD160 316ebe25e04a0e0298a3016fb716f995b222765b SHA1 de8a84cb8d747f16b873249ffdfd97625cf143e8 SHA256 bb5f1c965e18d9edbe4d48e1687b003b09a82e1692a6ccda11169c10107a31f3 +AUX eblits/src_install-v2.eblit 5428 RMD160 16576daadfb29143a64ad4290df0486ba37fd0cd SHA1 9fd26ae714507bdfbfd1a5239ab6ffa67aca4953 SHA256 b40477e008fdab54d0716e1bb0b487ff9346dc9febaba9c089da450e1716b043 +AUX eblits/src_install-v3.eblit 4857 RMD160 fcd7ad250639a20e9e2dc0d5d96ece28a8b16b0e SHA1 b8756d62af95e27b75ecce3006dcd77228337a36 SHA256 a837364615c5aedf8d42733639ab3ed527114a46870505b452dd0d42c45eb542 +AUX eblits/src_install.patch 5490 RMD160 cb0df2032b855c717b36b5a65c6ec7c184090787 SHA1 3623d59894f344d5afcb340da3125824f3143159 SHA256 5e47f138054f77f3417309b35a4164ec2d7d9da9d12473df9b4f8d842f286b61 +AUX eblits/src_prepare-v2.eblit 2604 RMD160 379dbca3e2ae8c1f09f608220ec9c98d099cb792 SHA1 42afae4e07633535ecea49817f5badd559f10ff1 SHA256 fe7534260fb81a012b8021b5d555756ce8733ad192bf51cedd94f12963811790 +AUX eblits/src_prepare-v3.eblit 2649 RMD160 5f01f42eef528535866c3b5ade0ded592d1ffd48 SHA1 1bdc640ab548f4e8b78acc305fdd6ceab225daf8 SHA256 7ea3a5351fabeb050161e64c09b98ff945bbdb8b4d1a7fb83d6b4645f277b486 +AUX eblits/src_prepare-v4.eblit 2317 RMD160 22833c1caa6f7530230b0809e119eeb2dbba7b27 SHA1 2f7a5fdd113cdf026de5b565fb073e3968db946b SHA256 7c18252a49a6d8e071471d14624f284d7b3ad8b95cad4a001e10e6e521f4c9b1 +AUX eblits/src_test-v1.eblit 1557 RMD160 2afc2b505f2b4bd786635e5b7e997248e93009c3 SHA1 070c2b58b55fc2cec939d7a333057506413e8e99 SHA256 81e9ecf94793377e42508d9e57cd7ab3faff78bce722b84b63999a23bdb2098a +AUX php-fpm-r1.conf 12966 RMD160 2710840ccbd847f74af0486929b6b9af87bf2c51 SHA1 4f0cca8cf24936012c9ee5cb2eaa1a0b391e77b3 SHA256 c4308a92ade93812c6579b74a72cd1f3e1a35f7e63289722f461771d5702448c +AUX php-fpm-r4.init 1157 RMD160 19b129c9254efcbba39d4bf3f77745681497a34d SHA1 0b4b5ba0f10ca1dedc2ea6143781b3bc6fa5915c SHA256 37e34461babfb5881169f9729fbdde7d4aba533f123e2c480fe25ac3b863d3e7 +AUX php5-ldvs 22 RMD160 5846dab2745b68a88175dd4e72d0b8cf4756dd46 SHA1 592398c92575adb14ec972847ce2aca28a7b9c2c SHA256 b79d0e52b1b3b4543b31ad45525ae1c2814a27ea8e676772ab10bf6fb12dfe79 +DIST php-5.3.10.tar.bz2 11707402 RMD160 acab30a19b340f21a64e06b524906f2b064dd1c9 SHA1 689d8463b5d9e24b9bf297e35826f2ebdb69afda SHA256 339157af2b386534597d287da292f2545e81d9b452e8b3fe525fb2c534ff344a +DIST php-5.3.11.tar.bz2 11396215 RMD160 cdad550e94cb911fa68b99acba2a5925d0848cf3 SHA1 b7df71d926643b97a08ba0b103d010cbac01d5a1 SHA256 b4174c97ca8d8bcf4b52b8b9ef2c2f35e1b611a5a660e02d7cd3edf263a6bd5d +DIST php-5.3.11RC2.tar.bz2 11269745 RMD160 5126bfce7f2adc4f5098ed50902fa56f47025a6d SHA1 1ccf52990e1cc456296aa05d99c0632f8147917b SHA256 ce0297adc6a81bb38114928703dc052e709cc9847fe21d309b1c2735c4f4d1d9 +DIST php-5.3.12.tar.bz2 11394871 RMD160 5d91c2d16b54632aa123677f63776b312872997c SHA1 1aef7c01207637671299e3eb2d74eb81dd6a8f83 SHA256 91659fd645b03011e1620134fa2457fade1e502499111cef8c4e23f428ad16ac +DIST php-5.4.0.tar.bz2 11439508 RMD160 7842f4f2b0aa064e10c82b5702cb8333bcb97f24 SHA1 c7411438f10ba483ea865f7fe70efe586d67cef1 SHA256 5a6402b53aeebaccdb28d314121a68c3962a46d43457c82249bc9f4aaf516a9d +DIST php-5.4.1.tar.bz2 11145742 RMD160 9d2f0b9c43eba65ca0882d72f44d3613f2a3ecc7 SHA1 3f94f06665c80ddae286feb3bd3c80009efe38f7 SHA256 0b191b9e5466e99b3094aefdd1fbe9b21947ccc5be461f20eb20d9052f2a12ea +DIST php-5.4.1RC1.tar.bz2 11145942 RMD160 213a172122c08fe38a0577a369a9c9b599e55782 SHA1 1716f172292c74293d6de95c6e9f027eafa3aac0 SHA256 1f274b2fe4fc431a8ddf5d5be71270273b339f137567825f76278cad9b3f415e +DIST php-5.4.1RC2.tar.bz2 11147699 RMD160 0f48076bfb98540b0e248ed3f2e315d8f40f2fa7 SHA1 cf0735f64813a9cb8d487c2f4fd21c6af497b523 SHA256 f3138f8d151d19e8c26adb95e47063d710c91bdbe735ada24b6477900a79c387 +DIST php-5.4.2.tar.bz2 11450091 RMD160 b4e88bf65d9ed6488f9b9baa7ea597c47b60c7da SHA1 c25699b2b7454ac1cf481ecba6df90de13d0f3ec SHA256 7f4c13f3b8c7e217b5d0fa04d4dd5bb5d86654f8dc79f49feeffe13e510ad7ce +DIST php-patchset-5.3.10-r0.tar.bz2 7522 RMD160 84165162d1374557a297890ea546cd53a732ad22 SHA1 1dbcb722a21e4f2e0a5159403849c329c76f282d SHA256 6c12c61525095b3672fe821ae4835fe4792a498af62cc38afa624ec5ddbc554f +DIST php-patchset-5.3.10-r2.tar.bz2 7981 RMD160 e17e9ea671e2583a0422361bb80f9d7b1fde5ea7 SHA1 25f6ad8a7cbd3d1d4c3ad4d726e8bbd28c508371 SHA256 f22cef3b678eb7cc548ffce93087e85eba1d01a363c72de2b037bec967980fd0 +DIST php-patchset-5.3.11-r0.tar.bz2 7349 RMD160 403218e70b327c4ab73b713cfea4d7e05c542106 SHA1 e807b6df4049dd5aaf5068ed733bfa6b96d81060 SHA256 47f9ef1bbf9e7adfb0057b840b373980547c8ce400784da1e5f3d7f56b5385ae +DIST php-patchset-5.3.11_rc2-r0.tar.bz2 7363 RMD160 dee5776e8ad40bf727a8a71827e7f5f8bf4c521e SHA1 1a26f55317b689ee3f4f7570f08ab6fdd02b5161 SHA256 a27e7250448cde95e8d031d80d5f4aaf3a2b1579af0da8e2c88e4a28aa118791 +DIST php-patchset-5.3.12-r0.tar.bz2 7349 RMD160 c361241ce8d1f480e6906cf7d0b0e2071e44712c SHA1 8062cd7fd9a6575f3aed855936ff3e70a3ca243a SHA256 3203cda7ab2ae687a89dee35a9523a22d4fe0e223e1311550a35843129625b65 +DIST php-patchset-5.4-1.tar.bz2 6001 RMD160 0200e6ada41e471a30bfddeeb166d3254a9e2856 SHA1 3b1f71255db1c003f452c2fe41f93284a50967c4 SHA256 06834d624ce6269aa8005a28ccc0e55b2e8d500af57e4392e641978d5993a3ea +DIST php-patchset-5.4-2.tar.bz2 5824 RMD160 9a83b507c92babe3a4403841a9a63bb361cf96d2 SHA1 2b6037bb544aa3e62c9116478f350b22325ef9e7 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef +DIST suhosin-patch-5.3.9-0.9.10-gentoo.patch.gz 40949 RMD160 f9a0aa13344f066a161959978d7555796b142ac9 SHA1 8cf4c81d219a6f03a314ba736a900945eeee3a15 SHA256 3c41881e529ff070de1911fcbbda8bfcf04433e3ecbf737bafd525f015791866 +DIST suhosin-patch-5.3.9-0.9.10.patch.gz 40967 RMD160 ce43921fd9b183b154713ecda98294f6c68d5f22 SHA1 7b9ef5c3e0831154df0d6290aba0989ca90138ed SHA256 4438caeab0a10c6c94aee9f7eaa703f5799f97d4e0579f43a947bb7314e38317 +EBUILD php-5.3.10-r2.ebuild 10728 RMD160 6efa2579731ac875f7a66cc1cbf3158664d80eaf SHA1 56be71155d20d8ef7dcf22b6a79e664904486628 SHA256 96ac9ece0c03ad3e96c56a9f9a208575a76c0adb05da9f5b0643870033fb7131 +EBUILD php-5.3.10.ebuild 10717 RMD160 a0f3b9fb238ba8d08266355715b4da9daf9c475f SHA1 7a48defb26df39024ec96a04b8e6ce53d9bbbad7 SHA256 0c3497b0b0bfdd7c6d65e9ada0c3f26bd9e87607121bb381fa121a32eb141fbe +EBUILD php-5.3.11.ebuild 10718 RMD160 dc0ee3de476b2f5b1347e1b82d0de7d6e4c4d0e4 SHA1 f0962b89e7412ebbcbabe1cd319f2440f4d907a2 SHA256 6615ecd42f2812e2c462041b37711863810d380fa45d03424c5371550c8998dc +EBUILD php-5.3.11_rc2.ebuild 10735 RMD160 c71f16c312a996e38c4fe4291fed2d97505044d3 SHA1 1f3f7270a4e38ebbac0bc5c9d83ac8684954619e SHA256 aad078b004cfdd5600cafb82e3e3cf38c81c9bdc57d8ef4851eb42131f0c3815 +EBUILD php-5.3.12.ebuild 10725 RMD160 d11d9d40a650b778a4d75a11ca78d69f4623d484 SHA1 1dcb8af708deaa3a00c19c44b73cb32e0f43765a SHA256 240778782551730773274e6f7fe79101d60ead976fe3ec6bcd82132f36394107 +EBUILD php-5.4.0.ebuild 10383 RMD160 197db3ea01b2f4f08e184865a27461c1180eff14 SHA1 f44a034f7c712d76ca56153469d0b951ca4c97c0 SHA256 ad3bd3ab26b4f2f0e27a779dad9936605638bb7b7981b63f6f88f3f6b61cde7c +EBUILD php-5.4.1.ebuild 10383 RMD160 2bce8d2805a1a1ed039fcc64231d3fe21dc9c1bd SHA1 38d2e47bb5e7f87a88681d2356181768c2db9503 SHA256 8b792da02290617c02900e4a557441ee72eb9ccb5cf4afa5c334db229cf63ee8 +EBUILD php-5.4.1_rc1.ebuild 10392 RMD160 d68eff9dfbff6989288980758165affd2932bbb5 SHA1 5b0e0e968cf0967832c6a5bd5d573353ae8ba620 SHA256 300d446e3b116ba13cf5c51a6b9baacfa3d2df8921d22f46c63020da6ccb49a6 +EBUILD php-5.4.1_rc2.ebuild 10392 RMD160 463f249001785d73845dadd486b80cea2b3ddc15 SHA1 b9f1676429dc5548ecd1edc19c9ce58a8b8f18f4 SHA256 bd576d24805b82b2c4c530fc95e5332291d22d29648f881b3ff8aa3043a767c2 +EBUILD php-5.4.2.ebuild 10496 RMD160 56472f5cffa77f7fd09034d1a2856d69af38052f SHA1 648a1b78f259f4684664fd24b592cf9ad3983d10 SHA256 f536347f081062a6ccc7a27f225c7188854b3204f1be3aa6333d724c534e92e8 +MISC ChangeLog 98418 RMD160 c190169fff2693743c7fa481bb26fa658ab26e0b SHA1 a3b2f5ef51097ad1363d2e87c91792111e139a98 SHA256 8159c70c52dc488ccf4d5aa1680a45295366a3adda017c887b5554dc0ce0cc04 +MISC metadata.xml 1497 RMD160 36fa3f3676c4105cb869d88f02a5c0e5aeed991c SHA1 69cbd4cdc604044e270b350945a3d02ba723d075 SHA256 3d6a278c7a85c8b478ca03860b80a8ceda5f3a5ddc64e2d41ab9ca686e7162df 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 @@ +<IfDefine PHP5> + # Load the module first + <IfModule !mod_php5.c> + LoadModule php5_module modules/libphp5.so + </IfModule> + + # Set it to handle the files + <IfModule mod_mime.c> + AddHandler application/x-httpd-php .php .php5 .phtml + AddHandler application/x-httpd-php-source .phps + </IfModule> + + DirectoryIndex index.php index.phtml +</IfDefine> 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..b733299 --- /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="${EPREFIX}/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_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_compile-v2.eblit b/dev-lang/php/files/eblits/src_compile-v2.eblit new file mode 100644 index 0000000..6e3d277 --- /dev/null +++ b/dev-lang/php/files/eblits/src_compile-v2.eblit @@ -0,0 +1,17 @@ +# 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_compile-v2.eblit,v 1.3 2011/10/31 16:18:04 mabi Exp $ + +eblit-php-src_compile() { + # snmp seems to run during src_compile, too (bug #324739) + addpredict /usr/share/snmp/mibs/.index + + for sapi in ${SAPIS} ; do + use "${sapi}" && php_sapi_build "${sapi}" + done +} + +php_sapi_build() { + cd "${WORKDIR}/sapis-build/$1" + emake || die "emake failed" +} 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-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_configure-v53.eblit b/dev-lang/php/files/eblits/src_configure-v53.eblit new file mode 100644 index 0000000..04bc455 --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-v53.eblit @@ -0,0 +1,258 @@ +# Copyright 1999-2012 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-v53.eblit,v 1.4 2012/02/28 10:59:13 mabi 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 sqlite sqlite /usr)" + use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)" + my_conf+=" + $(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 + my_conf+=" + $(use_with oci8-instant-client oci8)" + 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)" + 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-v54.eblit b/dev-lang/php/files/eblits/src_configure-v54.eblit new file mode 100644 index 0000000..7ca5ab2 --- /dev/null +++ b/dev-lang/php/files/eblits/src_configure-v54.eblit @@ -0,0 +1,261 @@ +# 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-v54.eblit,v 1.1 2011/12/18 09:00:26 olemarkus Exp $ + +eblit-php-src_configure() { + addpredict /usr/share/snmp/mibs/.index + + PHP_DESTDIR="${EPREFIX}/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 "${EPREFIX}"/usr) + $(use_enable calendar calendar ) + $(use_enable ctype ctype ) + $(use_with curl curl "${EPREFIX}"/usr) + $(use_with curlwrappers curlwrappers "${EPREFIX}"/usr) + $(use_enable xml dom ) + $(use_with enchant enchant "${EPREFIX}"/usr) + $(use_enable exif exif ) + $(use_enable fileinfo fileinfo ) + $(use_enable filter filter ) + $(use_enable ftp ftp ) + $(use_with nls gettext "${EPREFIX}"/usr) + $(use_with gmp gmp "${EPREFIX}"/usr) + $(use_enable hash hash ) + $(use_with mhash mhash "${EPREFIX}"/usr) + $(use_with iconv iconv ) + $(use_enable intl intl ) + $(use_enable ipv6 ipv6 ) + $(use_enable json json ) + $(use_with kerberos kerberos "${EPREFIX}"/usr) + $(use_enable xml libxml ) + $(use_with xml libxml-dir "${EPREFIX}"/usr) + $(use_enable unicode mbstring ) + $(use_with crypt mcrypt "${EPREFIX}"/usr) + $(use_with mssql mssql "${EPREFIX}"/usr) + $(use_with unicode onig "${EPREFIX}"/usr) + $(use_with ssl openssl "${EPREFIX}"/usr) + $(use_with ssl openssl-dir "${EPREFIX}"/usr) + $(use_enable pcntl pcntl ) + $(use_enable phar phar ) + $(use_enable pdo pdo ) + $(use_with postgres pgsql "${EPREFIX}"/usr) + $(use_enable posix posix ) + $(use_with spell pspell "${EPREFIX}"/usr) + $(use_with recode recode "${EPREFIX}"/usr) + $(use_enable simplexml simplexml ) + $(use_enable sharedmem shmop ) + $(use_with snmp snmp "${EPREFIX}"/usr) + $(use_enable soap soap ) + $(use_enable sockets sockets ) + $(use_with sqlite3 sqlite3 "${EPREFIX}"/usr) + $(use_with sybase-ct sybase-ct "${EPREFIX}"/usr) + $(use_enable sysvipc sysvmsg ) + $(use_enable sysvipc sysvsem ) + $(use_enable sysvipc sysvshm ) + $(use_with tidy tidy "${EPREFIX}"/usr) + $(use_enable tokenizer tokenizer ) + $(use_enable wddx wddx ) + $(use_enable xml xml ) + $(use_enable xmlreader xmlreader ) + $(use_enable xmlwriter xmlwriter ) + $(use_with xmlrpc xmlrpc "${EPREFIX}"/usr) + $(use_with xsl xsl "${EPREFIX}"/usr) + $(use_enable zip zip ) + $(use_with zlib zlib "${EPREFIX}"/usr) + $(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 ${EPREFIX}/usr) + $(use_with berkdb db4 ${EPREFIX}/usr) + $(use_enable flatfile flatfile ) + $(use_with gdbm gdbm ${EPREFIX}/usr) + $(use_enable inifile inifile ) + $(use_with qdbm qdbm ${EPREFIX}/usr)" + + # Support for the GD graphics library + my_conf+=" + $(use_with truetype freetype-dir ${EPREFIX}/usr) + $(use_with truetype t1lib ${EPREFIX}/usr) + $(use_enable cjk gd-jis-conv ) + $(use_with gd jpeg-dir ${EPREFIX}/usr) + $(use_with gd png-dir ${EPREFIX}/usr) + $(use_with xpm xpm-dir ${EPREFIX}/usr)" + # enable gd last, so configure can pick up the previous settings + my_conf+=" + $(use_with gd gd ${EPREFIX}/usr)" + + # IMAP support + if use imap ; then + my_conf+=" + $(use_with imap imap ${EPREFIX}/usr) + $(use_with ssl imap-ssl ${EPREFIX}/usr)" + fi + + # Interbase/firebird support + + if use firebird ; then + my_conf+=" + $(use_with firebird interbase ${EPREFIX}/usr)" + fi + + # LDAP support + if use ldap ; then + my_conf+=" + $(use_with ldap ldap ${EPREFIX}/usr) + $(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)" + 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 ${EPREFIX}/usr)" + fi + my_conf+=" + $(use_with mysql mysql-sock ${EPREFIX}/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 ${EPREFIX}/usr/bin/mysql_config)" + fi + + # ODBC support + if use odbc ; then + my_conf+=" + $(use_with odbc unixODBC ${EPREFIX}/usr)" + fi + + if use iodbc ; then + my_conf+=" + $(use_with iodbc iodbc ${EPREFIX}/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,${EPREFIX}/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 ${EPREFIX}/usr)" + fi + my_conf+=" + $(use_with postgres pdo-pgsql ) + $(use_with sqlite3 pdo-sqlite ${EPREFIX}/usr) + $(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)" + if use oci8-instant-client ; then + my_conf+=" + $(use_with oci8-instant-client pdo-oci instantclient,${EPREFIX}/usr,${OCI8IC_PKG} )" + fi + fi + + # readline/libedit support + my_conf+=" + $(use_with readline readline ${EPREFIX}/usr) + $(use_with libedit libedit ${EPREFIX}/usr)" + + # Session support + if use session ; then + my_conf+=" + $(use_with sharedmem mm ${EPREFIX}/usr)" + 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=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/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=${EPREFIX}/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-v2.eblit b/dev-lang/php/files/eblits/src_install-v2.eblit new file mode 100644 index 0000000..7fcbbed --- /dev/null +++ b/dev-lang/php/files/eblits/src_install-v2.eblit @@ -0,0 +1,163 @@ +# 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-v2.eblit,v 1.14 2011/12/16 09:02:43 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#${EPREFIX}}/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="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)" + + # And install the modules to it + if use sharedext ; then + insinto "${extension_dir#${EPREFIX}}" + doins "${WORKDIR}/sapis-build/${first_sapi}/modules/"*$(get_modname) + fi + + # 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#${EPREFIX}}" + file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) + + if [[ "${file: -3}" == ".so" ]]; then + if [[ "${sapi}" == "apache2" ]]; then + insinto "${PHP_DESTDIR#${EPREFIX}}/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}/20php${PHP_MV}-envd" \ + "20php${SLOT}" + eprefixify "${ED}/etc/env.d/20php${SLOT}" + sed -e "s|/lib/|/$(get_libdir)/|g" -i \ + "${ED}/etc/env.d/20php${SLOT}" + sed -e "s|php5|php${SLOT}|g" -i \ + "${ED}/etc/env.d/20php${SLOT}" + + # set php-config variable correctly (bug #278439) + sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ + "${ED}/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 = "'"${EPREFIX}"'/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 = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" + + dodir "${PHP_INI_DIR#${EPREFIX}}" + insinto "${PHP_INI_DIR#${EPREFIX}}" + newins "${phpinisrc}" "${PHP_INI_FILE}" + + elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}" + elog + + dodir "${PHP_EXT_INI_DIR#${EPREFIX}}" + dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}" + + # Install any extensions built as shared objects + if use sharedext ; then + insinto "${PHP_EXT_INI_DIR#${EPREFIX}}" + for extension in "${ED}/${extension_dir#${EPREFIX}}/"*$(get_modname) ; do + extension="${extension##*/}" + inifilename="${extension/$(get_modname)/.ini}" + echo "extension=${extension}" > "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" + doins "${WORKDIR}/sapis-build/${phpsapi}/modules/$inifilename" + dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/${inifilename}" + done + fi + + # SAPI-specific handling + if [[ "${sapi}" == "apache2" ]] ; then + insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" + 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#${EPREFIX}}" + 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#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm" + 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..836ba0c --- /dev/null +++ b/dev-lang/php/files/eblits/src_install-v3.eblit @@ -0,0 +1,158 @@ +# 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-v3.eblit,v 1.5 2011/11/08 18:14:08 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#${EPREFIX}}/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="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/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}" + + if [[ "${sapi}" == "apache2" ]] ; then + # We're specifically not using emake install-sapi as libtool + # may cause unnecessary relink failures (see bug #351266) + insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/" + newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)" + keepdir "/usr/$(get_libdir)/apache2/modules" + else + # needed each time, php_install_ini would reset it + into "${PHP_DESTDIR#${EPREFIX}}" + 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}$(get_libname)" + ;; + *) + die "unhandled sapi in src_install" + ;; + esac + + if [[ "${source}" == *"$(get_libname)" ]]; then + dolib.so "${source}" || die "Unable to install ${sapi} sapi" + else + dobin "${source}" || die "Unable to install ${sapi} sapi" + fi + 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${SLOT}" + eprefixify "${ED}/etc/env.d/20php${SLOT}" + sed -e "s|/lib/|/$(get_libdir)/|g" -i \ + "${ED}/etc/env.d/20php${SLOT}" + sed -e "s|php5|php${SLOT}|g" -i \ + "${ED}/etc/env.d/20php${SLOT}" + + # set php-config variable correctly (bug #278439) + sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \ + "${ED}/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 = "'"${EPREFIX}"'/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 = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" + + dodir "${PHP_INI_DIR#${EPREFIX}}" + insinto "${PHP_INI_DIR#${EPREFIX}}" + newins "${phpinisrc}" "${PHP_INI_FILE}" + + elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}" + elog + + dodir "${PHP_EXT_INI_DIR#${EPREFIX}}" + dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}" + + # SAPI-specific handling + if [[ "${sapi}" == "apache2" ]] ; then + insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" + 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#${EPREFIX}}" + 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#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm" + 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.patch b/dev-lang/php/files/eblits/src_install.patch new file mode 100644 index 0000000..400de12 --- /dev/null +++ b/dev-lang/php/files/eblits/src_install.patch @@ -0,0 +1,138 @@ +--- src_install-v3.eblit 2012-05-05 11:20:31.000000000 +0900 ++++ /gentoo/usr/portage/dev-lang/php/files/eblits/src_install-v3.eblit 2012-05-05 12:29:49.927983645 +0900 +@@ -1,4 +1,4 @@ +-# Copyright 1999-2011 Gentoo Foundation ++# 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-v3.eblit,v 1.5 2011/11/08 18:14:08 olemarkus Exp $ + +@@ -16,7 +16,7 @@ eblit-php-src_install() { + done + + # Makefile forgets to create this before trying to write to it... +- dodir "${PHP_DESTDIR}/bin" ++ dodir "${PHP_DESTDIR#${EPREFIX}}/bin" + + # Install php environment (without any sapis) + cd "${WORKDIR}/sapis-build/$first_sapi" +@@ -24,7 +24,7 @@ eblit-php-src_install() { + install-build install-headers install-programs \ + || die "emake install failed" + +- local extension_dir="$("${D}/${PHP_DESTDIR}/bin/php-config" --extension-dir)" ++ local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)" + + # Create the directory where we'll put version-specific php scripts + keepdir /usr/share/php${PHP_MV} +@@ -41,7 +41,7 @@ eblit-php-src_install() { + # We're specifically not using emake install-sapi as libtool + # may cause unnecessary relink failures (see bug #351266) + insinto "${PHP_DESTDIR}/apache2/" +- newins ".libs/libphp5.so" "libphp${PHP_MV}.so" ++ newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)" + keepdir "/usr/$(get_libdir)/apache2/modules" + else + # needed each time, php_install_ini would reset it +@@ -57,14 +57,14 @@ eblit-php-src_install() { + source="sapi/fpm/php-fpm" + ;; + embed) +- source="libs/libphp${PHP_MV}.so" ++ source="libs/libphp${PHP_MV}$(get_libname)" + ;; + *) + die "unhandled sapi in src_install" + ;; + esac + +- if [[ "${source: -3}" == ".so" ]]; then ++ if [[ "${source}" == *"$(get_libname)" ]]; then + dolib.so "${source}" || die "Unable to install ${sapi} sapi" + else + dobin "${source}" || die "Unable to install ${sapi} sapi" +@@ -84,16 +84,17 @@ eblit-php-src_install() { + done + + # Install env.d files +- newenvd "${FILESDIR}/20php5-envd" \ ++ newenvd "${FILESDIR}/20php${PHP_MV}-envd" \ + "20php${SLOT}" ++ eprefixify "${ED}/etc/env.d/20php${SLOT}" + sed -e "s|/lib/|/$(get_libdir)/|g" -i \ +- "${D}/etc/env.d/20php${SLOT}" ++ "${ED}/etc/env.d/20php${SLOT}" + sed -e "s|php5|php${SLOT}|g" -i \ +- "${D}/etc/env.d/20php${SLOT}" ++ "${ED}/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" ++ "${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" + } + + php_install_ini() { +@@ -106,47 +107,44 @@ php_install_ini() { + 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}" ++ sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/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}" ++ sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" ++ ++ dodir "${PHP_INI_DIR#${EPREFIX}}" ++ insinto "${PHP_INI_DIR#${EPREFIX}}" + newins "${phpinisrc}" "${PHP_INI_FILE}" + +- elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR}" ++ elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}" + elog + +- dodir "${PHP_EXT_INI_DIR}" +- dodir "${PHP_EXT_INI_DIR_ACTIVE}" ++ dodir "${PHP_EXT_INI_DIR#${EPREFIX}}" ++ dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}" + + # 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" ++ insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" ++ 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 ++ [[ -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} ++ insinto "${PHP_INI_DIR#${EPREFIX}}" + 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" ++ # dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm" + fi + +- # Install PHP ini files into /usr/share/php ++ # 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 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..07f8d6f --- /dev/null +++ b/dev-lang/php/files/eblits/src_test-v1.eblit @@ -0,0 +1,54 @@ +# Copyright 1999-2012 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.3 2012/02/06 13:53:17 olemarkus Exp $ + +eblit-php-src_test() { + vecho ">>> Test phase [test]: ${CATEGORY}/${PF}" + PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php" + if [[ ! -x "${PHP_BIN}" ]] ; then + ewarn "Test phase requires USE=cli, skipping" + return + else + export TEST_PHP_EXECUTABLE="${PHP_BIN}" + 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-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-r4.init b/dev-lang/php/files/php-fpm-r4.init new file mode 100755 index 0000000..a186d83 --- /dev/null +++ b/dev-lang/php/files/php-fpm-r4.init @@ -0,0 +1,47 @@ +#!/sbin/runscript + +set_phpvars() { + PHPSLOT=${SVCNAME#php-fpm-} + [ ${PHPSLOT} = 'php-fpm' ] && PHPSLOT="$(eselect php show fpm)" + + PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf" + PHP_FPM_PID="/var/run/php-fpm-${PHPSLOT}.pid" +} + +extra_commands="depend" +extra_started_commands="reload" + +depend() { + need net + use apache2 lighttpd nginx +} + +start() { + ebegin "Starting PHP FastCGI Process Manager" + set_phpvars + start-stop-daemon --start --pidfile ${PHP_FPM_PID} --exec \ + /usr/lib/${PHPSLOT}/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" + set_phpvars + start-stop-daemon --signal QUIT --stop --exec /usr/lib/${PHPSLOT}/bin/php-fpm --pidfile ${PHP_FPM_PID} + eend $? +} + +reload() { + ebegin "Reloading PHP FastCGI Process Manager" + set_phpvars + [ -f ${PHP_FPM_PID} ] && kill -USR2 $(cat ${PHP_FPM_PID}) + 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..cbeb509 --- /dev/null +++ b/dev-lang/php/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>php</herd> + <use> + <flag name='cli'>Enable CLI SAPI</flag> + <flag name='embed'>Enable embed SAPI</flag> + <flag name='enchant'>Add supports Enchant spelling library.</flag> + <flag name='fileinfo'>Add fileinfo extension support</flag> + <flag name='filter'>Add filter extension support</flag> + <flag name='fpm'>Enable the FastCGI Process Manager SAPI</flag> + <flag name='hash'>Enable the hash extension</flag> + <flag name='json'>Enable JSON support</flag> + <flag name='ldap-sasl'>Add SASL support for the PHP LDAP extension</flag> + <flag name='mysqlnd'>Use native driver for mysql, mysqli, PDO_Mysql</flag> + <flag name='intl'>Enables the intl extension for extended internalization support</flag> + <flag name='pic'>Force shared modules to build as PIC on x86 (speed tradeoff with memory usage)</flag> + <flag name='pdo'>Enable the bundled PDO extensions</flag> + <flag name='phar'>Enables the phar extension to provide phar archive support</flag> + <flag name='suhosin'>Add Suhosin support (patch and extension from http://www.suhosin.org/)</flag> + <flag restrict=">=dev-lang/php-5.3.6_rc1" name='suhosin'>Add the Suhosin patch from http://www.suhosin.org/)</flag> + <flag name='xmlreader'>Enable XMLReader support</flag> + <flag name='xmlwriter'>Enable XMLWriter support</flag> + <flag name='zip'>Enable ZIP file support</flag> + </use> +</pkgmetadata> diff --git a/dev-lang/php/php-5.3.10-r2.ebuild b/dev-lang/php/php-5.3.10-r2.ebuild new file mode 100644 index 0000000..095f22d --- /dev/null +++ b/dev-lang/php/php-5.3.10-r2.ebuild @@ -0,0 +1,392 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.10-r2.ebuild,v 1.3 2012/03/06 08:05:46 olemarkus Exp $ + +EAPI=4 + +PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid" + +RESTRICT="mirror" + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="5.3.9-0.9.10" +FPM_VERSION="builtin" +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}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="2" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then + # in some cases we use our own suhosin patch (very recent version, + # patch conflicts, etc.) + SUHOSIN_TYPE="olemarkus" +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite sqlite3 ssl + 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="!dev-lang/php:5 + >=app-admin/eselect-php-0.6.2 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) ) + sqlite3? ( >=dev-db/sqlite-3.7.7.1 ) + 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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +DEPEND="${DEPEND} + enchant? ( !dev-php5/pecl-enchant ) + fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 ) + filter? ( !dev-php5/pecl-filter ) + json? ( !dev-php5/pecl-json ) + phar? ( !dev-php5/pecl-phar ) + zip? ( !dev-php5/pecl-zip )" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[unicode] )" + +RDEPEND="${DEPEND}" + +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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "v2" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v3 ; } +src_configure() { eblit-run src_configure v53 ; } +src_compile() { eblit-run src_compile v1 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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/php-5.3.10.ebuild b/dev-lang/php/php-5.3.10.ebuild new file mode 100644 index 0000000..b64c88c --- /dev/null +++ b/dev-lang/php/php-5.3.10.ebuild @@ -0,0 +1,391 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.10.ebuild,v 1.13 2012/03/06 08:05:46 olemarkus Exp $ + +EAPI=4 + +PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid" + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="5.3.9-0.9.10" +FPM_VERSION="builtin" +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}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="gentoo" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="0" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then + # in some cases we use our own suhosin patch (very recent version, + # patch conflicts, etc.) + SUHOSIN_TYPE="olemarkus" +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite sqlite3 ssl + 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="!dev-lang/php:5 + >=app-admin/eselect-php-0.6.2 + >=dev-libs/libpcre-8.12[unicode] + <dev-libs/libpcre-8.30 + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) ) + sqlite3? ( >=dev-db/sqlite-3.7.7.1 ) + 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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +DEPEND="${DEPEND} + enchant? ( !dev-php5/pecl-enchant ) + fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 ) + filter? ( !dev-php5/pecl-filter ) + json? ( !dev-php5/pecl-json ) + phar? ( !dev-php5/pecl-phar ) + zip? ( !dev-php5/pecl-zip )" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[unicode] )" + +RDEPEND="${DEPEND}" + +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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "v2" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v3 ; } +src_configure() { eblit-run src_configure v53 ; } +src_compile() { eblit-run src_compile v1 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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/php-5.3.11.ebuild b/dev-lang/php/php-5.3.11.ebuild new file mode 100644 index 0000000..0872dfd --- /dev/null +++ b/dev-lang/php/php-5.3.11.ebuild @@ -0,0 +1,392 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.11.ebuild,v 1.6 2012/05/03 20:27:33 maekke Exp $ + +EAPI=4 + +PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid" + +RESTRICT="mirror" + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="5.3.9-0.9.10" +FPM_VERSION="builtin" +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}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="0" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then + # in some cases we use our own suhosin patch (very recent version, + # patch conflicts, etc.) + SUHOSIN_TYPE="olemarkus" +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite sqlite3 ssl + 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="!dev-lang/php:5 + >=app-admin/eselect-php-0.6.2 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) ) + sqlite3? ( >=dev-db/sqlite-3.7.7.1 ) + 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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +DEPEND="${DEPEND} + enchant? ( !dev-php5/pecl-enchant ) + fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 ) + filter? ( !dev-php5/pecl-filter ) + json? ( !dev-php5/pecl-json ) + phar? ( !dev-php5/pecl-phar ) + zip? ( !dev-php5/pecl-zip )" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[unicode] )" + +RDEPEND="${DEPEND}" + +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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "v2" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v3 ; } +src_configure() { eblit-run src_configure v53 ; } +src_compile() { eblit-run src_compile v1 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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/php-5.3.11_rc2.ebuild b/dev-lang/php/php-5.3.11_rc2.ebuild new file mode 100644 index 0000000..2165892 --- /dev/null +++ b/dev-lang/php/php-5.3.11_rc2.ebuild @@ -0,0 +1,392 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.11_rc2.ebuild,v 1.2 2012/04/24 14:16:26 mabi Exp $ + +EAPI=4 + +PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid" + +RESTRICT="mirror" + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="5.3.9-0.9.10-gentoo" +FPM_VERSION="builtin" +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}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${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-pre" +PHP_P="${PN}-${PHP_PV}" + +PHP_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="0" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then + # in some cases we use our own suhosin patch (very recent version, + # patch conflicts, etc.) + SUHOSIN_TYPE="olemarkus" +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite sqlite3 ssl + 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="!dev-lang/php:5 + >=app-admin/eselect-php-0.6.2 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) ) + sqlite3? ( >=dev-db/sqlite-3.7.7.1 ) + 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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +DEPEND="${DEPEND} + enchant? ( !dev-php5/pecl-enchant ) + fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 ) + filter? ( !dev-php5/pecl-filter ) + json? ( !dev-php5/pecl-json ) + phar? ( !dev-php5/pecl-phar ) + zip? ( !dev-php5/pecl-zip )" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[unicode] )" + +RDEPEND="${DEPEND}" + +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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "v2" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v3 ; } +src_configure() { eblit-run src_configure v53 ; } +src_compile() { eblit-run src_compile v1 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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/php-5.3.12.ebuild b/dev-lang/php/php-5.3.12.ebuild new file mode 100644 index 0000000..023bfe0 --- /dev/null +++ b/dev-lang/php/php-5.3.12.ebuild @@ -0,0 +1,392 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.12.ebuild,v 1.1 2012/05/03 20:15:23 olemarkus Exp $ + +EAPI=4 + +PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob interbase oci8 sapdb solid" + +RESTRICT="mirror" + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="5.3.9-0.9.10" +FPM_VERSION="builtin" +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}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${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_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="0" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then + # in some cases we use our own suhosin patch (very recent version, + # patch conflicts, etc.) + SUHOSIN_TYPE="olemarkus" +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +SLOT="$(get_version_component_range 1-2)" +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite sqlite3 ssl + 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="!dev-lang/php:5 + >=app-admin/eselect-php-0.6.2 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite? ( =dev-db/sqlite-2* pdo? ( >=dev-db/sqlite-3.7.7.1 ) ) + sqlite3? ( >=dev-db/sqlite-3.7.7.1 ) + 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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +DEPEND="${DEPEND} + enchant? ( !dev-php5/pecl-enchant ) + fileinfo? ( !<dev-php5/pecl-fileinfo-1.0.4-r2 ) + filter? ( !dev-php5/pecl-filter ) + json? ( !dev-php5/pecl-json ) + phar? ( !dev-php5/pecl-phar ) + zip? ( !dev-php5/pecl-zip )" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[unicode] )" + +RDEPEND="${DEPEND}" + +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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "v2" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v3 ; } +src_configure() { eblit-run src_configure v53 ; } +src_compile() { eblit-run src_compile v1 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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/php-5.4.0.ebuild b/dev-lang/php/php-5.4.0.ebuild new file mode 100644 index 0000000..0c21370 --- /dev/null +++ b/dev-lang/php/php-5.4.0.ebuild @@ -0,0 +1,384 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.0.ebuild,v 1.3 2012/03/06 08:05:46 olemarkus Exp $ + +EAPI=4 + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="" +FPM_VERSION="builtin" +EXPECTED_TEST_FAILURES="" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +function php_get_uri () +{ + case "${1}" in + "php-stas") + echo "http://downloads.php.net/stas/${2}" + ;; + "php-pre") + echo "http://downloads.php.net/johannes/${2}" + ;; + "php") + echo "http://www.php.net/distributions/${2}" + ;; + "suhosin") + echo "http://download.suhosin.org/${2}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${2}" + ;; + "gentoo") + echo "mirror://gentoo/${2}" + ;; + *) + die "unhandled case in php_get_uri" + ;; + esac +} + +PHP_MV="$(get_major_version)" +SLOT="$(get_version_component_range 1-2)" + +# 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_PV="${PHP_PV/_alpha/alpha}" +PHP_PV="${PHP_PV/_beta/beta}" +PHP_RELEASE="php" +PHP_P="${PN}-${PHP_PV}" + +PHP_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="1" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite3 ssl + 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 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite3? ( >=dev-db/sqlite-3.7.6.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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +RDEPEND="${DEPEND}" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common v2 + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v4 ; } +src_configure() { eblit-run src_configure v54 ; } +src_compile() { eblit-run src_compile v2 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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-php/suhosin" + ewarn + fi +} diff --git a/dev-lang/php/php-5.4.1.ebuild b/dev-lang/php/php-5.4.1.ebuild new file mode 100644 index 0000000..8b0be47 --- /dev/null +++ b/dev-lang/php/php-5.4.1.ebuild @@ -0,0 +1,384 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.1.ebuild,v 1.1 2012/04/26 11:33:41 olemarkus Exp $ + +EAPI=4 + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="" +FPM_VERSION="builtin" +EXPECTED_TEST_FAILURES="" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +function php_get_uri () +{ + case "${1}" in + "php-stas") + echo "http://downloads.php.net/stas/${2}" + ;; + "php-pre") + echo "http://downloads.php.net/johannes/${2}" + ;; + "php") + echo "http://www.php.net/distributions/${2}" + ;; + "suhosin") + echo "http://download.suhosin.org/${2}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${2}" + ;; + "gentoo") + echo "mirror://gentoo/${2}" + ;; + *) + die "unhandled case in php_get_uri" + ;; + esac +} + +PHP_MV="$(get_major_version)" +SLOT="$(get_version_component_range 1-2)" + +# 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_PV="${PHP_PV/_alpha/alpha}" +PHP_PV="${PHP_PV/_beta/beta}" +PHP_RELEASE="php" +PHP_P="${PN}-${PHP_PV}" + +PHP_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="2" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite3 ssl + 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 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite3? ( >=dev-db/sqlite-3.7.6.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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +RDEPEND="${DEPEND}" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common v2 + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v4 ; } +src_configure() { eblit-run src_configure v54 ; } +src_compile() { eblit-run src_compile v2 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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-php/suhosin" + ewarn + fi +} diff --git a/dev-lang/php/php-5.4.1_rc1.ebuild b/dev-lang/php/php-5.4.1_rc1.ebuild new file mode 100644 index 0000000..4db162e --- /dev/null +++ b/dev-lang/php/php-5.4.1_rc1.ebuild @@ -0,0 +1,384 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.1_rc1.ebuild,v 1.1 2012/03/30 11:23:07 olemarkus Exp $ + +EAPI=4 + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="" +FPM_VERSION="builtin" +EXPECTED_TEST_FAILURES="" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +function php_get_uri () +{ + case "${1}" in + "php-stas") + echo "http://downloads.php.net/stas/${2}" + ;; + "php-pre") + echo "http://downloads.php.net/johannes/${2}" + ;; + "php") + echo "http://www.php.net/distributions/${2}" + ;; + "suhosin") + echo "http://download.suhosin.org/${2}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${2}" + ;; + "gentoo") + echo "mirror://gentoo/${2}" + ;; + *) + die "unhandled case in php_get_uri" + ;; + esac +} + +PHP_MV="$(get_major_version)" +SLOT="$(get_version_component_range 1-2)" + +# 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_PV="${PHP_PV/_alpha/alpha}" +PHP_PV="${PHP_PV/_beta/beta}" +PHP_RELEASE="php-stas" +PHP_P="${PN}-${PHP_PV}" + +PHP_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="2" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite3 ssl + 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 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite3? ( >=dev-db/sqlite-3.7.6.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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +RDEPEND="${DEPEND}" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common v2 + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v4 ; } +src_configure() { eblit-run src_configure v54 ; } +src_compile() { eblit-run src_compile v2 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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-php/suhosin" + ewarn + fi +} diff --git a/dev-lang/php/php-5.4.1_rc2.ebuild b/dev-lang/php/php-5.4.1_rc2.ebuild new file mode 100644 index 0000000..a08b88a --- /dev/null +++ b/dev-lang/php/php-5.4.1_rc2.ebuild @@ -0,0 +1,384 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.1_rc2.ebuild,v 1.1 2012/04/13 06:43:50 olemarkus Exp $ + +EAPI=4 + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="" +FPM_VERSION="builtin" +EXPECTED_TEST_FAILURES="" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + +function php_get_uri () +{ + case "${1}" in + "php-stas") + echo "http://downloads.php.net/stas/${2}" + ;; + "php-pre") + echo "http://downloads.php.net/johannes/${2}" + ;; + "php") + echo "http://www.php.net/distributions/${2}" + ;; + "suhosin") + echo "http://download.suhosin.org/${2}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${2}" + ;; + "gentoo") + echo "mirror://gentoo/${2}" + ;; + *) + die "unhandled case in php_get_uri" + ;; + esac +} + +PHP_MV="$(get_major_version)" +SLOT="$(get_version_component_range 1-2)" + +# 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_PV="${PHP_PV/_alpha/alpha}" +PHP_PV="${PHP_PV/_beta/beta}" +PHP_RELEASE="php-stas" +PHP_P="${PN}-${PHP_PV}" + +PHP_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="2" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite3 ssl + 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 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite3? ( >=dev-db/sqlite-3.7.6.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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +RDEPEND="${DEPEND}" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common v2 + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v4 ; } +src_configure() { eblit-run src_configure v54 ; } +src_compile() { eblit-run src_compile v2 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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-php/suhosin" + ewarn + fi +} diff --git a/dev-lang/php/php-5.4.2.ebuild b/dev-lang/php/php-5.4.2.ebuild new file mode 100644 index 0000000..48196a3 --- /dev/null +++ b/dev-lang/php/php-5.4.2.ebuild @@ -0,0 +1,384 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.2.ebuild,v 1.1 2012/05/03 20:15:23 olemarkus Exp $ + +EAPI=4 + +inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool + +SUHOSIN_VERSION="" +FPM_VERSION="builtin" +EXPECTED_TEST_FAILURES="" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +function php_get_uri () +{ + case "${1}" in + "php-stas") + echo "http://downloads.php.net/stas/${2}" + ;; + "php-pre") + echo "http://downloads.php.net/johannes/${2}" + ;; + "php") + echo "http://www.php.net/distributions/${2}" + ;; + "suhosin") + echo "http://download.suhosin.org/${2}" + ;; + "olemarkus") + echo "http://dev.gentoo.org/~olemarkus/php/${2}" + ;; + "gentoo") + echo "mirror://gentoo/${2}" + ;; + *) + die "unhandled case in php_get_uri" + ;; + esac +} + +PHP_MV="$(get_major_version)" +SLOT="$(get_version_component_range 1-2)" + +# 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_PV="${PHP_PV/_alpha/alpha}" +PHP_PV="${PHP_PV/_beta/beta}" +PHP_RELEASE="php" +PHP_P="${PN}-${PHP_PV}" + +PHP_PATCHSET_LOC="olemarkus" + +PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")" + +PHP_PATCHSET="2" +PHP_PATCHSET_URI=" + $(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-$SLOT-${PHP_PATCHSET}.tar.bz2")" + +PHP_FPM_INIT_VER="4" +PHP_FPM_CONF_VER="1" + +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, FPM/FastCGI, Apache2 and embed SAPIs." +HOMEPAGE="http://php.net/" +LICENSE="PHP-3" + +S="${WORKDIR}/${PHP_P}" + +# We can build the following SAPIs in the given order +SAPIS="embed cli cgi fpm apache2" + +# Gentoo-specific, common features +IUSE="kolab" + +# SAPIs and SAPI-specific USE flags (cli SAPI is default on): +IUSE="${IUSE} + ${SAPIS/cli/+cli} + threads" + +IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk + crypt +ctype curl curlwrappers debug doc + enchant exif frontbase +fileinfo +filter firebird + flatfile ftp gd gdbm gmp +hash +iconv imap inifile + intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash + mssql mysql mysqlnd mysqli nls + oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm + readline recode +session sharedmem + +simplexml snmp soap sockets spell sqlite3 ssl + 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 + >=dev-libs/libpcre-8.12[unicode] + apache2? ( www-servers/apache[threads=] ) + berkdb? ( =sys-libs/db-4* ) + bzip2? ( app-arch/bzip2 ) + cdb? ( || ( dev-db/cdb dev-db/tinycdb ) ) + cjk? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + crypt? ( >=dev-libs/libmcrypt-2.4 ) + curl? ( >=net-misc/curl-7.10.5 ) + enchant? ( app-text/enchant ) + exif? ( !gd? ( + virtual/jpeg + media-libs/libpng + sys-libs/zlib + ) ) + firebird? ( dev-db/firebird ) + gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib ) + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + gmp? ( >=dev-libs/gmp-4.1.2 ) + iconv? ( virtual/libiconv ) + imap? ( virtual/imap-c-client[ssl=] ) + intl? ( dev-libs/icu ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + kolab? ( >=net-libs/c-client-2004g-r1 ) + ldap? ( >=net-nds/openldap-1.2.11 ) + ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) + libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) ) + mssql? ( dev-db/freetds[mssql] ) + !mysqlnd? ( + mysql? ( virtual/mysql ) + mysqli? ( >=virtual/mysql-4.1 ) + ) + 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 ) + 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 ) + spell? ( >=app-text/aspell-0.50 ) + sqlite3? ( >=dev-db/sqlite-3.7.6.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? ( + virtual/jpeg media-libs/libpng sys-libs/zlib ) + ) + unicode? ( dev-libs/oniguruma ) + 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}" + +REQUIRED_USE=" + truetype? ( gd ) + cjk? ( gd ) + exif? ( gd ) + + xpm? ( gd ) + gd? ( zlib ) + simplexml? ( xml ) + soap? ( xml ) + wddx? ( xml ) + xmlrpc? ( || ( xml iconv ) ) + xmlreader? ( xml ) + xsl? ( xml ) + ldap-sasl? ( ldap ) + kolab? ( imap ) + mhash? ( hash ) + phar? ( hash ) + mysqlnd? ( || ( + mysql + mysqli + pdo + ) ) + + qdbm? ( !gdbm ) + readline? ( !libedit ) + recode? ( !imap !mysql !mysqli ) + sharedmem? ( !threads ) + + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" + +RDEPEND="${DEPEND}" + +[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( +=${CATEGORY}/${PN}-${SLOT}*[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 )" + +# No longer depend on the extension. The suhosin USE flag only installs the +# patch +#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )" + +# Allow users to install production version if they want to + +case "${PHP_INI_VERSION}" in + production|development) + ;; + *) + PHP_INI_VERSION="development" + ;; +esac + +PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}" +PHP_INI_FILE="php.ini" + +want_apache + +# eblit-core +# Usage: <function> [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] <function> [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 <function> [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: <function> +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: <function> [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common v2 + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: <phase> [version] +# Includes the given functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]" + eblit-core $1 $2 1 +} + +eblit-pkg pkg_setup v3 + +src_prepare() { eblit-run src_prepare v4 ; } +src_configure() { eblit-run src_configure v54 ; } +src_compile() { eblit-run src_compile v2 ; } +src_install() { eblit-run src_install v3 ; } +src_test() { eblit-run src_test v1 ; } + +#Do not use eblit for this because it will not get sourced when installing from +#binary package (bug #380845) +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 ${EPREFIX}/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 ${EPREFIX}/etc/make.conf" + ewarn "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}" + + # check for not yet migrated old style config dirs + ls "${EROOT}"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 ${EROOT}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-php/suhosin" + ewarn + fi +} |