diff options
author | 2010-10-30 21:41:10 +0000 | |
---|---|---|
committer | 2010-10-30 21:41:10 +0000 | |
commit | 8ca293a1a2aca5bcc29980757cec1809c6459462 (patch) | |
tree | a103b7e3988391f80b91526c35388641f4397148 /dev-lang/php/files | |
parent | Version bump, readd wrongly dropped ppc* keywords, readd wrongly removed mini... (diff) | |
download | gentoo-2-8ca293a1a2aca5bcc29980757cec1809c6459462.tar.gz gentoo-2-8ca293a1a2aca5bcc29980757cec1809c6459462.tar.bz2 gentoo-2-8ca293a1a2aca5bcc29980757cec1809c6459462.zip |
Added cgi support to minor version slotted ebuilds and made it possible to chose which version of php.ini to use
(Portage version: 2.1.9.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/php/files')
-rw-r--r-- | dev-lang/php/files/eblits/pkg_postinst-v2.eblit | 16 | ||||
-rw-r--r-- | dev-lang/php/files/eblits/src_install-v2.eblit | 14 |
2 files changed, 24 insertions, 6 deletions
diff --git a/dev-lang/php/files/eblits/pkg_postinst-v2.eblit b/dev-lang/php/files/eblits/pkg_postinst-v2.eblit index 7f5e8274e20b..f2c2a14da09b 100644 --- a/dev-lang/php/files/eblits/pkg_postinst-v2.eblit +++ b/dev-lang/php/files/eblits/pkg_postinst-v2.eblit @@ -1,6 +1,6 @@ # 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/pkg_postinst-v2.eblit,v 1.3 2010/10/19 06:20:34 olemarkus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit,v 1.4 2010/10/30 21:41:10 olemarkus Exp $ eblit-php-pkg_postinst() { # Output some general info to the user @@ -12,20 +12,22 @@ eblit-php-pkg_postinst() { # Create the symlinks for php - local m modules="cli apache2 fpm" + local m modules="cli apache2 fpm cgi" for m in $modules; do if use $m ; then local ci=$(eselect php show $m) if [[ -z $ci ]]; then eselect php set $m php${SLOT} elif [[ $ci != "php${SLOT}" ]] ; then - ewarn "To switch $m to use php-${SLOT}, run" - ewarn " eselect php set $m php${SLOT}" - ewarn + elog "To switch $m to use php-${SLOT}, run" + elog " eselect php set $m php${SLOT}" + elog fi fi done + + ewarn "You may have to recompile third-party extensions now" ewarn "(includes every dev-php5/pecl-* package and probably others in that category)" if ! use readline && use cli ; then @@ -33,5 +35,9 @@ eblit-php-pkg_postinst() { ewarn "the readline USE flag or php -a will hang" fi ewarn + ewarn "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version." + ewarn "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either" + ewarn "'production' or 'development' in /etc/make.conf" + ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}" } diff --git a/dev-lang/php/files/eblits/src_install-v2.eblit b/dev-lang/php/files/eblits/src_install-v2.eblit index 91bec5ff069f..36e3675e6912 100644 --- a/dev-lang/php/files/eblits/src_install-v2.eblit +++ b/dev-lang/php/files/eblits/src_install-v2.eblit @@ -1,6 +1,6 @@ # 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.7 2010/10/27 10:33:18 olemarkus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit,v 1.8 2010/10/30 21:41:10 olemarkus Exp $ eblit-php-src_install() { # see bug #324739 for what happens when we don't have that @@ -145,4 +145,16 @@ php_install_ini() { newinitd "${FILESDIR}/php-fpm-r1.init" "php-fpm" # dosym "${PHP_DESTDIR}/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 + } |