|
Lines 49-55
Link Here
|
| 49 |
into "${PHP_DESTDIR#${EPREFIX}}" |
50 |
into "${PHP_DESTDIR#${EPREFIX}}" |
| 50 |
file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) |
51 |
file=$(find "${SAPI_DIR}/${sapi}/" -type f | head -n 1) |
| 51 |
|
52 |
|
| 52 |
if [[ "${file: -3}" == ".so" ]]; then |
53 |
local modname |
|
|
54 |
modname=$(get_modname) |
| 55 |
if [[ "${file: -${#modname}}" == ${modname} ]]; then |
| 53 |
if [[ "${sapi}" == "apache2" ]]; then |
56 |
if [[ "${sapi}" == "apache2" ]]; then |
| 54 |
insinto "${PHP_DESTDIR#${EPREFIX}}/../apache2/modules/" |
57 |
insinto "${PHP_DESTDIR#${EPREFIX}}/../apache2/modules/" |
| 55 |
newins "${file}" "${file/*\/}" |
58 |
newins "${file}" "${file/*\/}" |
|
Lines 131-136
Link Here
|
| 131 |
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" |
136 |
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" |
| 132 |
newins "${FILESDIR}/70_mod_php${PHP_MV}_concurr.conf-apache2-r1" \ |
137 |
newins "${FILESDIR}/70_mod_php${PHP_MV}_concurr.conf-apache2-r1" \ |
| 133 |
"70_mod_php${PHP_MV}_concurr.conf" |
138 |
"70_mod_php${PHP_MV}_concurr.conf" |
|
|
139 |
[[ ${CHOST} == *-darwin* ]] && sed -i 's!libphp5\.so!libphp5.bundle!' "${D}/${APACHE_MODULES_CONFDIR}/70_mod_php${PHP_MV}_concurr.conf" |
| 134 |
|
140 |
|
| 135 |
# Put the ld version script in the right place so |
141 |
# Put the ld version script in the right place so |
| 136 |
# it's always accessible |
142 |
# it's always accessible |
|
Lines 141-146
Link Here
|
| 141 |
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" |
147 |
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}" |
| 142 |
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2-r1" \ |
148 |
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2-r1" \ |
| 143 |
"70_mod_php${PHP_MV}.conf" |
149 |
"70_mod_php${PHP_MV}.conf" |
|
|
150 |
[[ ${CHOST} == *-darwin* ]] && sed -i 's!libphp5\.so!libphp5.bundle!' "${D}/${APACHE_MODULES_CONFDIR}/70_mod_php${PHP_MV}.conf" |
| 144 |
fi |
151 |
fi |
| 145 |
fi |
152 |
fi |
| 146 |
|
153 |
|