$OpenBSD: patch-usr_local_bin_pear,v 1.2 2011/11/16 13:29:13 robert Exp $ --- usr/local/bin/pear.orig Wed Nov 16 14:15:00 2011 +++ usr/local/bin/pear Wed Nov 16 14:15:49 2011 @@ -4,10 +4,10 @@ if test "x$PHP_PEAR_PHP_BIN" != "x"; then PHP="$PHP_PEAR_PHP_BIN" else - if test "/usr/local/bin/php" = '@'php_bin'@'; then + if test "php-${MODPHP_BIN}" = '@'php_bin'@'; then PHP=php else - PHP="/usr/local/bin/php" + PHP="${MODPHP_BIN}" fi fi