summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/php
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/php')
-rw-r--r--meta-oe/recipes-devtools/php/php.inc8
-rw-r--r--meta-oe/recipes-devtools/php/php/php-fpm-apache.conf6
-rw-r--r--meta-oe/recipes-devtools/php/php_5.3.19.bb1
3 files changed, 13 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 7850c1ea5..5e5a087dc 100644
--- a/meta-oe/recipes-devtools/php/php.inc
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -7,7 +7,7 @@ DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native mysql5 \
7 libc-client openssl sqlite3" 7 libc-client openssl sqlite3"
8DEPENDS_virtclass-native = "zlib-native libxml2-native" 8DEPENDS_virtclass-native = "zlib-native libxml2-native"
9 9
10INC_PR = "r2" 10INC_PR = "r3"
11 11
12SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" 12SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2"
13 13
@@ -65,6 +65,8 @@ do_install_append_pn-php() {
65 rm -rf ${D}/.[a-z]* 65 rm -rf ${D}/.[a-z]*
66 sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf 66 sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}/${sysconfdir}/pear.conf
67 install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf 67 install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf
68 install -d ${D}/${sysconfdir}/apache2/conf.d
69 install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf
68 install -d ${D}${sysconfdir}/init.d 70 install -d ${D}${sysconfdir}/init.d
69 sed -i 's:=/usr/sbin:=${sbindir}:g' ${S}/sapi/fpm/init.d.php-fpm 71 sed -i 's:=/usr/sbin:=${sbindir}:g' ${S}/sapi/fpm/init.d.php-fpm
70 sed -i 's:=/etc:=${sysconfdir}:g' ${S}/sapi/fpm/init.d.php-fpm 72 sed -i 's:=/etc:=${sysconfdir}:g' ${S}/sapi/fpm/init.d.php-fpm
@@ -72,7 +74,7 @@ do_install_append_pn-php() {
72 install -m 0755 ${S}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm 74 install -m 0755 ${S}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm
73} 75}
74 76
75PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" 77PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}"
76 78
77RDEPENDS_${PN}-pear = "${PN}" 79RDEPENDS_${PN}-pear = "${PN}"
78RDEPENDS_${PN}-cli = "${PN}" 80RDEPENDS_${PN}-cli = "${PN}"
@@ -86,7 +88,9 @@ FILES_${PN}-doc += "${libdir}/php/doc"
86FILES_${PN}-cli = "${bindir}/php" 88FILES_${PN}-cli = "${bindir}/php"
87FILES_${PN}-cgi = "${bindir}/php-cgi" 89FILES_${PN}-cgi = "${bindir}/php-cgi"
88FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" 90FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm"
91FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf"
89CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" 92CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf"
93CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf"
90INITSCRIPT_NAME_${PN}-fpm = "php-fpm" 94INITSCRIPT_NAME_${PN}-fpm = "php-fpm"
91INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" 95INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60"
92FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ 96FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \
diff --git a/meta-oe/recipes-devtools/php/php/php-fpm-apache.conf b/meta-oe/recipes-devtools/php/php/php-fpm-apache.conf
new file mode 100644
index 000000000..77cdd82a7
--- /dev/null
+++ b/meta-oe/recipes-devtools/php/php/php-fpm-apache.conf
@@ -0,0 +1,6 @@
1# Taken from http://wiki.apache.org/httpd/PHP-FPM
2
3LoadModule proxy_module lib/apache2/modules/mod_proxy.so
4LoadModule proxy_fcgi_module lib/apache2/modules/mod_proxy_fcgi.so
5
6ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/usr/share/apache2/htdocs/
diff --git a/meta-oe/recipes-devtools/php/php_5.3.19.bb b/meta-oe/recipes-devtools/php/php_5.3.19.bb
index 27baa1d79..8204104b7 100644
--- a/meta-oe/recipes-devtools/php/php_5.3.19.bb
+++ b/meta-oe/recipes-devtools/php/php_5.3.19.bb
@@ -15,6 +15,7 @@ SRC_URI_append_pn-php += "file://iconv.patch \
15 file://php_exec_native.patch \ 15 file://php_exec_native.patch \
16 file://fix-fpm-cross-compile.patch \ 16 file://fix-fpm-cross-compile.patch \
17 file://php-fpm.conf \ 17 file://php-fpm.conf \
18 file://php-fpm-apache.conf \
18 " 19 "
19 20
20SRC_URI[md5sum] = "e1d2a3ec7849d4b3032bd1abf1916aa4" 21SRC_URI[md5sum] = "e1d2a3ec7849d4b3032bd1abf1916aa4"