Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 14093 Details for
Bug 23844
Updated php-ext eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated php-ext.eclass
php-ext.eclass.diff (text/plain), 2.27 KB, created by
Stuart Herbert (RETIRED)
on 2003-07-01 18:56:24 UTC
(
hide
)
Description:
Updated php-ext.eclass
Filename:
MIME Type:
Creator:
Stuart Herbert (RETIRED)
Created:
2003-07-01 18:56:24 UTC
Size:
2.27 KB
patch
obsolete
>--- /usr/portage/eclass/php-ext.eclass 2003-06-28 21:51:58.000000000 +0100 >+++ ./php-ext.eclass 2003-07-02 02:45:15.000000000 +0100 >@@ -32,6 +32,30 @@ > =sys-devel/m4-1.4 > >=sys-devel/libtool-1.4.3" > >+php-ext_buildinilist () { >+ # work out the list of .ini files to edit/add to >+ >+ if [ -z "${PHPSAPILIST}" ]; then >+ PHPSAPILIST="apache1 apache2 cli" >+ fi >+ >+ PHPINIFILELIST="" >+ >+ for x in ${PHPSAPILIST} ; do >+ if [ -f /etc/php/${x}-php4/php.ini ]; then >+ PHPINIFILELIST="${PHPINIFILELIST} /etc/php/${x}-php4/php.ini" >+ fi >+ done >+ >+ if [[ ${PHPINIFILELIST} = "" ]]; then >+ msg="No PHP ini files found for this extension" >+ eerror ${msg} >+ die ${msg} >+ fi >+ >+# einfo "php.ini files found in $PHPINIFILELIST" >+} >+ > php-ext_src_compile() { > #phpize creates configure out of config.m4 > phpize >@@ -50,19 +74,53 @@ > > php-ext_pkg_postinst() { > if [ "$PHP_EXT_INI" = "yes" ] ; then >- if [ `grep ${EXT_DIR}/${PHP_EXT_NAME}.so /etc/php4/php.ini` ] ; then >- einfo "No changes made to php.ini" >- else >- if [ "$PHP_EXT_ZENDEXT" = "yes" ] ; then >- echo zend_extension=${EXT_DIR}/${PHP_EXT_NAME}.so >> /etc/php4/php.ini >- else >- echo extension=${EXT_DIR}/${PHP_EXT_NAME}.so >> /etc/php4/php.ini >- fi >- >- einfo "${PHP_EXT_NAME} has been added to php.ini" >- einfo "Please check phpinfo() output to verify that ${PHP_EXT_NAME} is loaded." >- fi >+ php-ext_buildinilist >+ php-ext_addextension "${EXT_DIR}/${PHP_EXT_NAME}.so" >+ fi >+} >+ >+php-ext_extension_is_present () { >+ grep "^$1=$2" $3 > /dev/null 2>&1 >+} >+ >+php-ext_addextensiontoinifile () { >+ php-ext_extension_is_present $1 $2 $3 && return >+ >+ einfo "Extension added to $3" >+ echo "$1=$2" >> $3 >+} >+ >+php-ext_addextension () { >+ if [ "${PHP_EXT_ZENDEXT}" = "yes" ]; then >+ ext="zend_extension" > else >- einfo "No changes made to php.ini" >+ ext="extension" > fi >+ >+ for x in ${PHPINIFILELIST} ; do >+ php-ext_addextensiontoinifile "$ext" "$1" "$x" >+ done >+} >+ >+php-ext_setting_is_present () { >+ grep "^$1=" $2 > /dev/null 2>&1 > } >+ >+# $1 - setting name >+# $2 - setting value >+# $3 - file to add to >+ >+php-ext_addtoinifile () { >+ php-ext_setting_is_present $1 $3 && return >+ >+ einfo "Added '$1=$2' to $3" >+ echo "$1=$2" >> $3 >+} >+ >+php-ext_addtoinifiles () { >+ for x in ${PHPINIFILELIST} ; do >+ php-ext_addtoinifile $1 $2 $x >+ done >+} >+ >+
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23844
: 14093