diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-04 20:58:12 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-04 20:58:12 +0000 |
commit | ee0bbc04ff0314526400e8b721dbcccb32eda913 (patch) | |
tree | 8fbbfa6859f587facbe091036b291e5a45c2a40a | |
parent | 7685dd41e1fe71ab80be283a4fac1671678dbad6 (diff) | |
download | buildroot-novena-ee0bbc04ff0314526400e8b721dbcccb32eda913.tar.gz buildroot-novena-ee0bbc04ff0314526400e8b721dbcccb32eda913.zip |
php: only overwrite php.ini if not present in target_skeleton
Allow platforms to provide a custom php.ini in their target_skeleton.
-rw-r--r-- | package/php/php.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/php/php.mk b/package/php/php.mk index 1f20039f8..ac8f9cdc2 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -169,7 +169,8 @@ $(PHP_HOOK_POST_INSTALL): rm -rf $(TARGET_DIR)/usr/lib/php rm -f $(TARGET_DIR)/usr/bin/phpize rm -f $(TARGET_DIR)/usr/bin/php-config - $(INSTALL) -m 0755 $(BR2_PACKAGE_PHP_CONFIG) $(TARGET_DIR)/etc/php.ini + if [ ! -f $(TARGET_DIR)/etc/php.ini ]; then \ + $(INSTALL) -m 0755 $(BR2_PACKAGE_PHP_CONFIG) $(TARGET_DIR)/etc/php.ini; fi $(PHP_TARGET_UNINSTALL): $(call MESSAGE,"Uninstalling") |