diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2012-11-28 22:17:09 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-12-04 10:44:20 +0100 |
commit | 8424c379fba43c5073b1ca12ba6cb0546c822f3a (patch) | |
tree | 2c619df27ea044793c208417c40cfb13d7cdcb4b /meta-oe/recipes-devtools/php/php.inc | |
parent | 94a59521dc54409ca2438ff5496991ed3e8d43b9 (diff) | |
download | meta-openembedded-8424c379fba43c5073b1ca12ba6cb0546c822f3a.tar.gz |
php: add apache configuration for php-fpm
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-devtools/php/php.inc')
-rw-r--r-- | meta-oe/recipes-devtools/php/php.inc | 8 |
1 files changed, 6 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" |
8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" | 8 | DEPENDS_virtclass-native = "zlib-native libxml2-native" |
9 | 9 | ||
10 | INC_PR = "r2" | 10 | INC_PR = "r3" |
11 | 11 | ||
12 | SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2" | 12 | SRC_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 | ||
75 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | 77 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" |
76 | 78 | ||
77 | RDEPENDS_${PN}-pear = "${PN}" | 79 | RDEPENDS_${PN}-pear = "${PN}" |
78 | RDEPENDS_${PN}-cli = "${PN}" | 80 | RDEPENDS_${PN}-cli = "${PN}" |
@@ -86,7 +88,9 @@ FILES_${PN}-doc += "${libdir}/php/doc" | |||
86 | FILES_${PN}-cli = "${bindir}/php" | 88 | FILES_${PN}-cli = "${bindir}/php" |
87 | FILES_${PN}-cgi = "${bindir}/php-cgi" | 89 | FILES_${PN}-cgi = "${bindir}/php-cgi" |
88 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" | 90 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" |
91 | FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" | ||
89 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" | 92 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" |
93 | CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" | ||
90 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" | 94 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" |
91 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" | 95 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" |
92 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ | 96 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ |