|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# |
|
|
|
# Filename: package/.../php/php.conf |
|
|
|
# Filename: package/.../php/php.conf |
|
|
|
# Copyright (C) 2006 - 2008 The OpenSDE Project |
|
|
|
# Copyright (C) 2006 - 2010 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# |
|
|
|
# |
|
|
@ -25,6 +25,9 @@ var_append confopt ' ' "--with-libdir=${libdir##*/}" |
|
|
|
# global php.ini goes into sysconfdir |
|
|
|
# global php.ini goes into sysconfdir |
|
|
|
var_append confopt ' ' "--with-config-file-path=$sysconfdir" |
|
|
|
var_append confopt ' ' "--with-config-file-path=$sysconfdir" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sockets does not need any external lib. We have to enable it explicitly |
|
|
|
|
|
|
|
var_append confopt ' ' "--enable-sockets" |
|
|
|
|
|
|
|
|
|
|
|
if pkginstalled apache; then |
|
|
|
if pkginstalled apache; then |
|
|
|
pkgprefix -t apache |
|
|
|
pkgprefix -t apache |
|
|
|
var_append extraconfopt " " "--with-apxs2=$( pkgprefix sbindir apache )/apxs" |
|
|
|
var_append extraconfopt " " "--with-apxs2=$( pkgprefix sbindir apache )/apxs" |
|
|
@ -98,6 +101,17 @@ if [ "$SDECFG_PKG_PHP_EXTRACONFOPT" ]; then |
|
|
|
var_append extraconfopt " " "$SDECFG_PKG_PHP_EXTRACONFOPT" |
|
|
|
var_append extraconfopt " " "$SDECFG_PKG_PHP_EXTRACONFOPT" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_PHP_FPM" ]; then |
|
|
|
|
|
|
|
var_append extraconfopt " " "--enable-fpm" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fpm_patch() { |
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_PHP_FPM" ]; then |
|
|
|
|
|
|
|
var_append patchfiles "$confdir/php-5.2.11-fpm-0.5.13.diff" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hook_add prepatch 5 'fpm_patch' |
|
|
|
hook_add postmake 5 'cp php.ini-* $root$docdir' |
|
|
|
hook_add postmake 5 'cp php.ini-* $root$docdir' |
|
|
|
|
|
|
|
|
|
|
|
# HACK ALERT |
|
|
|
# HACK ALERT |
|
|
|