mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-09 11:27:43 +00:00
Från: Brad House <brad@mainstreetsoftworks.com>
Till: buildroot@uclibc.org Ämne: [Buildroot] [patch] php fixes and updates Datum: Tue, 14 Aug 2007 16:39:03 -0400 (22.39 CEST) Changes: - fastcgi config option - force php to find the php.ini in /etc (it seems to default to /lib for some reason) - build with posix support, a lot of php scripts require this apparently - strip the php binary when installing to TARGET_DIR - actually 'uninstall' php on a php-clean -Brad
This commit is contained in:
parent
f60308be15
commit
4955099de0
@ -24,6 +24,13 @@ config BR2_PACKAGE_PHP_CGI
|
|||||||
cgi interface for php
|
cgi interface for php
|
||||||
you must have at least cli or cgi selected.
|
you must have at least cli or cgi selected.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PHP_FASTCGI
|
||||||
|
bool "fastcgi"
|
||||||
|
depends on BR2_PACKAGE_PHP_CGI
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
fast cgi interface for php
|
||||||
|
|
||||||
config BR2_PACKAGE_PHP_OPENSSL
|
config BR2_PACKAGE_PHP_OPENSSL
|
||||||
bool "openssl support"
|
bool "openssl support"
|
||||||
depends on BR2_PACKAGE_PHP && BR2_PACKAGE_OPENSSL
|
depends on BR2_PACKAGE_PHP && BR2_PACKAGE_OPENSSL
|
||||||
|
@ -19,10 +19,13 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_PHP_CGI),y)
|
ifneq ($(BR2_PACKAGE_PHP_CGI),y)
|
||||||
PHP_CGI="--disable-cgi"
|
PHP_CGI=--disable-cgi
|
||||||
else
|
else
|
||||||
PHP_CGI="--enable-cgi"
|
PHP_CGI=--enable-cgi
|
||||||
PHP_TARGET_DEPS+=$(TARGET_DIR)/usr/bin/php-cgi
|
PHP_TARGET_DEPS+=$(TARGET_DIR)/usr/bin/php-cgi
|
||||||
|
ifeq ($(BR2_PACKAGE_PHP_FASTCGI),y)
|
||||||
|
PHP_CGI+=--enable-fastcgi
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_PHP_OPENSSL),y)
|
ifeq ($(BR2_PACKAGE_PHP_OPENSSL),y)
|
||||||
@ -69,6 +72,7 @@ $(PHP_DIR)/.configured: $(PHP_DIR)/.unpacked
|
|||||||
--sbindir=/usr/sbin \
|
--sbindir=/usr/sbin \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
|
--with-config-file-path=/etc \
|
||||||
--datadir=/usr/share/misc \
|
--datadir=/usr/share/misc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
@ -77,6 +81,7 @@ $(PHP_DIR)/.configured: $(PHP_DIR)/.unpacked
|
|||||||
--enable-spl \
|
--enable-spl \
|
||||||
--enable-session \
|
--enable-session \
|
||||||
--enable-sockets \
|
--enable-sockets \
|
||||||
|
--enable-posix \
|
||||||
--with-pcre-regex \
|
--with-pcre-regex \
|
||||||
--without-pear \
|
--without-pear \
|
||||||
--disable-ipv6 \
|
--disable-ipv6 \
|
||||||
@ -100,10 +105,12 @@ $(PHP_DIR)/.staged: $(PHP_DIR)/.built
|
|||||||
$(TARGET_DIR)/usr/bin/php: $(PHP_DIR)/.staged
|
$(TARGET_DIR)/usr/bin/php: $(PHP_DIR)/.staged
|
||||||
cp -dpf $(STAGING_DIR)/usr/bin/php $(TARGET_DIR)/usr/bin/php
|
cp -dpf $(STAGING_DIR)/usr/bin/php $(TARGET_DIR)/usr/bin/php
|
||||||
chmod 755 $(TARGET_DIR)/usr/bin/php
|
chmod 755 $(TARGET_DIR)/usr/bin/php
|
||||||
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/php
|
||||||
|
|
||||||
$(TARGET_DIR)/usr/bin/php-cgi: $(PHP_DIR)/.staged
|
$(TARGET_DIR)/usr/bin/php-cgi: $(PHP_DIR)/.staged
|
||||||
cp -dpf $(STAGING_DIR)/usr/bin/php-cgi $(TARGET_DIR)/usr/bin/php-cgi
|
cp -dpf $(STAGING_DIR)/usr/bin/php-cgi $(TARGET_DIR)/usr/bin/php-cgi
|
||||||
chmod 755 $(TARGET_DIR)/usr/bin/php-cgi
|
chmod 755 $(TARGET_DIR)/usr/bin/php-cgi
|
||||||
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/php-cgi
|
||||||
|
|
||||||
$(TARGET_DIR)/etc/php.ini: $(PHP_DIR)/.staged
|
$(TARGET_DIR)/etc/php.ini: $(PHP_DIR)/.staged
|
||||||
cp $(PHP_DIR)/php.ini-dist $(TARGET_DIR)/etc/php.ini
|
cp $(PHP_DIR)/php.ini-dist $(TARGET_DIR)/etc/php.ini
|
||||||
@ -112,6 +119,9 @@ php: uclibc $(PHP_DEPS) $(PHP_TARGET_DEPS) $(TARGET_DIR)/etc/php.ini
|
|||||||
|
|
||||||
php-clean:
|
php-clean:
|
||||||
rm -f $(PHP_DIR)/.configured $(PHP_DIR)/.built $(PHP_DIR)/.staged
|
rm -f $(PHP_DIR)/.configured $(PHP_DIR)/.built $(PHP_DIR)/.staged
|
||||||
|
rm -f $(TARGET_DIR)/usr/bin/php $(TARGET_DIR)/usr/bin/php-cgi
|
||||||
|
rm -f $(STAGING_DIR)/usr/bin/php* $(STAGING_DIR)/usr/man/man1/php*
|
||||||
|
rm -rf $(STAGING_DIR)/usr/include/php
|
||||||
-$(MAKE) -C $(PHP_DIR) clean
|
-$(MAKE) -C $(PHP_DIR) clean
|
||||||
|
|
||||||
php-dirclean:
|
php-dirclean:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user