diff options
Diffstat (limited to 'meta-oe/recipes-devtools/php/php.inc')
-rw-r--r-- | meta-oe/recipes-devtools/php/php.inc | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc index 10dc15437..7850c1ea5 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 = "r1" | 10 | INC_PR = "r2" |
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 | ||
@@ -20,7 +20,7 @@ SSTATE_SCAN_FILES += "build-defs.h" | |||
20 | # Common EXTRA_OECONF | 20 | # Common EXTRA_OECONF |
21 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" | 21 | COMMON_EXTRA_OECONF = "--enable-sockets --enable-pcntl --enable-shared" |
22 | EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \ | 22 | EXTRA_OECONF = "--enable-mbstring --enable-discard-path --enable-wddx \ |
23 | --enable-magic-quotes --enable-fastcgi \ | 23 | --enable-magic-quotes --enable-fastcgi --enable-fpm \ |
24 | --with-imap=${STAGING_DIR_HOST} \ | 24 | --with-imap=${STAGING_DIR_HOST} \ |
25 | --with-gettext=${STAGING_LIBDIR}/.. \ | 25 | --with-gettext=${STAGING_LIBDIR}/.. \ |
26 | --with-imap-ssl=${STAGING_DIR_HOST} \ | 26 | --with-imap-ssl=${STAGING_DIR_HOST} \ |
@@ -57,25 +57,38 @@ do_install () { | |||
57 | 57 | ||
58 | # fixme | 58 | # fixme |
59 | do_install_append_pn-php() { | 59 | do_install_append_pn-php() { |
60 | mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir} ${D}/${sysconfdir} | 60 | install -d ${D}/${sysconfdir}/ |
61 | mv ${D}/${STAGING_DIR_NATIVE}/${sysconfdir}/* ${D}/${sysconfdir}/ | ||
61 | rm -rf ${D}/${STAGING_DIR_NATIVE} | 62 | rm -rf ${D}/${STAGING_DIR_NATIVE} |
62 | rm -rf ${D}/.registry | 63 | rm -rf ${D}/.registry |
63 | rm -rf ${D}/.channels | 64 | rm -rf ${D}/.channels |
64 | rm -rf ${D}/.[a-z]* | 65 | rm -rf ${D}/.[a-z]* |
65 | 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 | ||
68 | install -d ${D}${sysconfdir}/init.d | ||
69 | 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 | ||
71 | sed -i 's:=/var:=${localstatedir}:g' ${S}/sapi/fpm/init.d.php-fpm | ||
72 | install -m 0755 ${S}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm | ||
66 | } | 73 | } |
67 | 74 | ||
68 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" | 75 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" |
69 | 76 | ||
70 | RDEPENDS_${PN}-pear = "${PN}" | 77 | RDEPENDS_${PN}-pear = "${PN}" |
71 | RDEPENDS_${PN}-cli = "${PN}" | 78 | RDEPENDS_${PN}-cli = "${PN}" |
72 | RDEPENDS_${PN}-dev = "${PN}" | 79 | RDEPENDS_${PN}-dev = "${PN}" |
73 | 80 | ||
81 | INITSCRIPT_PACKAGES = "${PN}-fpm" | ||
82 | inherit update-rc.d | ||
74 | 83 | ||
75 | FILES_${PN}-dbg =+ "${bindir}/.debug" | 84 | FILES_${PN}-dbg =+ "${bindir}/.debug" |
76 | FILES_${PN}-doc += "${libdir}/php/doc" | 85 | FILES_${PN}-doc += "${libdir}/php/doc" |
77 | FILES_${PN}-cli = "${bindir}/php" | 86 | FILES_${PN}-cli = "${bindir}/php" |
78 | FILES_${PN}-cgi = "${bindir}/php-cgi" | 87 | FILES_${PN}-cgi = "${bindir}/php-cgi" |
88 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm" | ||
89 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" | ||
90 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" | ||
91 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" | ||
79 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ | 92 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${libdir}/php/PEAR \ |
80 | ${libdir}/php/PEAR.php ${libdir}/php/System.php \ | 93 | ${libdir}/php/PEAR.php ${libdir}/php/System.php \ |
81 | ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \ | 94 | ${libdir}php/peclcmd.php ${libdir}/php/pearcmd.php \ |