diff options
Diffstat (limited to 'community/xdebug/xdebug.install')
-rw-r--r-- | community/xdebug/xdebug.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community/xdebug/xdebug.install b/community/xdebug/xdebug.install new file mode 100644 index 000000000..a7ec0b9cc --- /dev/null +++ b/community/xdebug/xdebug.install @@ -0,0 +1,18 @@ +post_install() { + local _configfile=/etc/php/conf.d/xdebug.ini + echo " ==> You may wish to uncomment/change the settings found in " + echo " $_configfile" + echo "" +} + +post_upgrade() { + local _configfile=/etc/php/conf.d/xdebug.ini + local PHPVER=$(php -r 'echo phpversion();') + post_install $1 + + if [ "$PHPVER" \< "5.3" ] ; then + echo " ==> You are currenty running a version of php < 5.3." + echo " When/if you upgrade php to a version >= 5.3, you will need to reinstall $pkgname." + echo "" + fi +} |