1 |
olemarkus 10/10/30 21:41:10 |
2 |
|
3 |
Modified: pkg_postinst-v2.eblit src_install-v2.eblit |
4 |
Log: |
5 |
Added cgi support to minor version slotted ebuilds and made it possible to chose which version of php.ini to use |
6 |
|
7 |
(Portage version: 2.1.9.11/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 dev-lang/php/files/eblits/pkg_postinst-v2.eblit |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: pkg_postinst-v2.eblit |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/pkg_postinst-v2.eblit,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- pkg_postinst-v2.eblit 19 Oct 2010 06:20:34 -0000 1.3 |
23 |
+++ pkg_postinst-v2.eblit 30 Oct 2010 21:41:10 -0000 1.4 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2010 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $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 $ |
28 |
+# $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 $ |
29 |
|
30 |
eblit-php-pkg_postinst() { |
31 |
# Output some general info to the user |
32 |
@@ -12,20 +12,22 @@ |
33 |
|
34 |
|
35 |
# Create the symlinks for php |
36 |
- local m modules="cli apache2 fpm" |
37 |
+ local m modules="cli apache2 fpm cgi" |
38 |
for m in $modules; do |
39 |
if use $m ; then |
40 |
local ci=$(eselect php show $m) |
41 |
if [[ -z $ci ]]; then |
42 |
eselect php set $m php${SLOT} |
43 |
elif [[ $ci != "php${SLOT}" ]] ; then |
44 |
- ewarn "To switch $m to use php-${SLOT}, run" |
45 |
- ewarn " eselect php set $m php${SLOT}" |
46 |
- ewarn |
47 |
+ elog "To switch $m to use php-${SLOT}, run" |
48 |
+ elog " eselect php set $m php${SLOT}" |
49 |
+ elog |
50 |
fi |
51 |
fi |
52 |
done |
53 |
|
54 |
+ |
55 |
+ |
56 |
ewarn "You may have to recompile third-party extensions now" |
57 |
ewarn "(includes every dev-php5/pecl-* package and probably others in that category)" |
58 |
if ! use readline && use cli ; then |
59 |
@@ -33,5 +35,9 @@ |
60 |
ewarn "the readline USE flag or php -a will hang" |
61 |
fi |
62 |
ewarn |
63 |
+ ewarn "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version." |
64 |
+ ewarn "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either" |
65 |
+ ewarn "'production' or 'development' in /etc/make.conf" |
66 |
+ ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}" |
67 |
} |
68 |
|
69 |
|
70 |
|
71 |
|
72 |
1.8 dev-lang/php/files/eblits/src_install-v2.eblit |
73 |
|
74 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit?rev=1.8&view=markup |
75 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit?rev=1.8&content-type=text/plain |
76 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit?r1=1.7&r2=1.8 |
77 |
|
78 |
Index: src_install-v2.eblit |
79 |
=================================================================== |
80 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/php/files/eblits/src_install-v2.eblit,v |
81 |
retrieving revision 1.7 |
82 |
retrieving revision 1.8 |
83 |
diff -u -r1.7 -r1.8 |
84 |
--- src_install-v2.eblit 27 Oct 2010 10:33:18 -0000 1.7 |
85 |
+++ src_install-v2.eblit 30 Oct 2010 21:41:10 -0000 1.8 |
86 |
@@ -1,6 +1,6 @@ |
87 |
# Copyright 1999-2010 Gentoo Foundation |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
-# $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 $ |
90 |
+# $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 $ |
91 |
|
92 |
eblit-php-src_install() { |
93 |
# see bug #324739 for what happens when we don't have that |
94 |
@@ -145,4 +145,16 @@ |
95 |
newinitd "${FILESDIR}/php-fpm-r1.init" "php-fpm" |
96 |
# dosym "${PHP_DESTDIR}/bin/php-fpm" "/usr/bin/php-fpm" |
97 |
fi |
98 |
+ |
99 |
+ # Install PHP ini files into /usr/share/php |
100 |
+ if [[ ${SLOT} == '5.2' ]]; then |
101 |
+ newdoc php.ini-dist php.ini-development |
102 |
+ newdoc php.ini-recommended php.ini-production |
103 |
+ fi |
104 |
+ |
105 |
+ if [[ ${SLOT} == '5.3' ]]; then |
106 |
+ dodoc php.ini-development |
107 |
+ dodoc php.ini-production |
108 |
+ fi |
109 |
+ |
110 |
} |