yaf.sh 367 B

12345678910111213141516
  1. #!/bin/bash
  2. fw_depends php5
  3. RETCODE=$(fw_exists ${IROOT}/yaf.installed)
  4. [ ! "$RETCODE" == 0 ] || { \
  5. source $IROOT/yaf.installed
  6. return 0; }
  7. # Enable the PHP yaf extension
  8. sed -i 's|;extension=yaf.so|extension=yaf.so|g' $PHP_HOME/lib/php.ini
  9. printf "\n" | $PHP_HOME/bin/pecl -q install -f yaf-2.2.9
  10. echo "" > $IROOT/yaf.installed
  11. source $IROOT/yaf.installed