Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 12266 Details for
Bug 21440
PEAR install missing from php-4.3.1-r2 and mod_php-4.3.1-r3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
My mod_php ebuild
mod_php-4.3.1-r3.ebuild (text/plain), 2.51 KB, created by
Matthew Walker
on 2003-05-21 15:18:02 UTC
(
hide
)
Description:
My mod_php ebuild
Filename:
MIME Type:
Creator:
Matthew Walker
Created:
2003-05-21 15:18:02 UTC
Size:
2.51 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.1-r3.ebuild,v 1.8 2003/05/14 20:08:59 robbat2 Exp $ > >inherit php eutils > >IUSE="${IUSE} apache2" > >DESCRIPTION="Apache module for PHP" >KEYWORDS="~x86 ~sparc ~ppc ~alpha ~hppa ~arm ~sparc" >SLOT="0" > >DEPEND="${DEPEND} > || ( > apache2? ( >=net-www/apache-2.0.43-r1 ) > >=net-www/apache-1.3.26-r2 > )" > >src_compile() { > #no readline on server SAPI > myconf="${myconf} --without-readline " > > # Every Apache2 MPM EXCEPT prefork needs Zend Thread Safety > if [ "`use apache2`" ]; then > APACHE2_MPM="`apache2 -l |egrep 'worker|prechild|leader|threadpool|prefork'|xargs|cut -d. -f1`" > case "${APACHE2_MPM}" in > prefork) ;; > *) myconf="${myconf} --enable-experimental-zts" ;; > esac; > fi > > # optional support for apache2 > use apache2 \ > && myconf="${myconf} --with-apxs2=/usr/sbin/apxs2" \ > || myconf="${myconf} --with-apxs=/usr/sbin/apxs" > > #php CGI stuff > #--enable-discard-path --enable-force-cgi-redirect > > php_src_compile >} > > >src_install() { > php_src_install > > cp php.ini-dist php.ini > insinto /etc/php4 > doins php.ini > > if [ "`use apache2`" ] ; then > dosym /usr/lib/apache2-extramodules /etc/php4/lib > exeinto /usr/lib/apache2-extramodules > doexe .libs/libphp4.so > insinto /etc/apache2/conf/modules.d > doins ${FILESDIR}/70_mod_php.conf > dosym /etc/php4/php.ini /etc/apache2/conf/php.ini > else > dosym /usr/lib/apache-extramodules /etc/php4/lib > exeinto /usr/lib/apache-extramodules > doexe .libs/libphp4.so > insinto /etc/apache/conf/addon-modules > doins ${FILESDIR}/mod_php.conf > dosym /etc/php4/php.ini /etc/apache/conf/php.ini > dosym /etc/php4/php.ini /etc/apache/conf/addon-modules/php.ini > fi >} > >pkg_postinst() { > einfo > einfo "To have Apache run php programs, please do the following:" > if [ "`use apache2`" ] ; then > einfo "Edit /etc/conf.d/apache2 and add \"-D PHP4\"" > einfo > einfo "Please note Apache 2 support in php is currently experimental" > else > einfo "1. Execute the command:" > einfo " \"ebuild /var/db/pkg/dev-php/${PF}/${PF}.ebuild config\"" > einfo "2. Edit /etc/conf.d/apache and add \"-D PHP4\"" > einfo > einfo "That will include the php mime types in your configuration" > einfo "automagically and setup Apache to load php when it starts." > fi >} > >pkg_config() { > ${ROOT}/usr/sbin/apacheaddmod \ > ${ROOT}/etc/apache/conf/apache.conf \ > extramodules/libphp4.so mod_php4.c php4_module \ > before=perl define=PHP4 addconf=conf/addon-modules/mod_php.conf > :; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 21440
: 12266 |
12267