summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/php.eselect.in.in')
-rw-r--r--src/php.eselect.in.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/php.eselect.in.in b/src/php.eselect.in.in
index e1edb42..d3428bd 100644
--- a/src/php.eselect.in.in
+++ b/src/php.eselect.in.in
@@ -88,7 +88,7 @@ sapi_active_link_target_dir() {
local sapi="${1}"
local target="${2}"
- local link_target_dir="@libdir@/${target}/bin"
+ local link_target_dir="@LIBDIR@/${target}/bin"
if [[ "${sapi}" == "apache2" ]] ; then
link_target_dir+="/../apache2"
fi
@@ -116,11 +116,11 @@ sapi_active_link_dir() {
local sapi="${1}"
case "${sapi}" in
- apache2) echo "@libdir@/apache2/modules" ;;
- cli) echo "@bindir@" ;;
- fpm) echo "@bindir@" ;;
- cgi) echo "@bindir@" ;;
- phpdbg) echo "@bindir@" ;;
+ apache2) echo "@LIBDIR@/apache2/modules" ;;
+ cli) echo "@BINDIR@" ;;
+ fpm) echo "@BINDIR@" ;;
+ cgi) echo "@BINDIR@" ;;
+ phpdbg) echo "@BINDIR@" ;;
*) die "invalid SAPI name: ${sapi}" ;;
esac
}
@@ -198,7 +198,7 @@ cleanup_sapi() {
fi
if [[ "${sapi}" == "apache2" ]] ; then
- rm -f "@libdir@"/apache2/modules/libphp[57].so \
+ rm -f "@LIBDIR@"/apache2/modules/libphp[57].so \
|| die "failed to remove old libphp.so symlink"
fi
@@ -258,7 +258,7 @@ find_sapi_targets() {
esac
for target in $(find_targets); do
- local pattern="@libdir@/${target}/${pattern_suffix}"
+ local pattern="@LIBDIR@/${target}/${pattern_suffix}"
for file in $pattern; do
[[ -f "${file}" ]] && echo "${target}"
@@ -313,7 +313,7 @@ get_sapi_active_target() {
#
write_mod_php_conf() {
local target="${1}"
- local conf_dir="@localstatedir@/lib/eselect-php"
+ local conf_dir="@LOCALSTATEDIR@/lib/eselect-php"
local conf_path="${conf_dir}/mod_php.conf"
@MKDIR_P@ "${conf_dir}" || die "failed to create ${conf_dir}"