summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2015-12-06 17:51:54 -0500
committerMichael Orlitzky <mjo@gentoo.org>2015-12-06 17:51:54 -0500
commit51718ab9de457d9a30f15903436f4cafe1010105 (patch)
tree1128128e92f6ff09d55a08735d4e3c7c65a53ac7 /src
parentUse AC_PROG_SED to determine POSIX-compatible sed path. (diff)
downloadeselect-php-51718ab9de457d9a30f15903436f4cafe1010105.tar.gz
eselect-php-51718ab9de457d9a30f15903436f4cafe1010105.tar.bz2
eselect-php-51718ab9de457d9a30f15903436f4cafe1010105.zip
Use AC_PROG_LN_S macro to replace "ln -s".
Diffstat (limited to 'src')
-rw-r--r--src/php.eselect.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/php.eselect.in b/src/php.eselect.in
index d7a7337..79c307c 100644
--- a/src/php.eselect.in
+++ b/src/php.eselect.in
@@ -235,7 +235,7 @@ set_apache2() {
[[ -z $t ]] && die -q "Bad target"
for libdir in $(get_libdirs); do
rm -f "${EROOT}${libdir}"/apache2/modules/libphp{5,7}$(get_libname)
- ln -sf ../../$t/apache2/libphp${t:3:1}$(get_libname) "${EROOT}"${libdir}/apache2/modules/ || \
+ @LN_S@ --force ../../$t/apache2/libphp${t:3:1}$(get_libname) "${EROOT}"${libdir}/apache2/modules/ || \
die -q "Failed to set symlink for ${EPREFIX}${libdir}/apache2/modules/libphp${t:3:1}$(get_libname)"
done
echo "You have to run \`${EPREFIX}/etc/init.d/apache2 restart' for the changes to take effect"
@@ -245,7 +245,7 @@ set_cli() {
local file libdir t=$(resolv_target cli $1)
[[ -z $t ]] && die -q "Bad target"
for file in php phpize php-config; do
- ln -sf ../..$(get_active_libdir)/$t/bin/$file "${EROOT}"/usr/bin/$file || \
+ @LN_S@ --force ../..$(get_active_libdir)/$t/bin/$file "${EROOT}"/usr/bin/$file || \
die -q "Failed to create symlink for ${file}"
done
}
@@ -253,14 +253,14 @@ set_cli() {
set_cgi() {
t=$(resolv_target cgi $1)
[[ -z $t ]] && die -q "Bad target"
- ln -sf ../..$(get_active_libdir)/$t/bin/php-cgi "${EROOT}"/usr/bin/php-cgi || \
+ @LN_S@ --force ../..$(get_active_libdir)/$t/bin/php-cgi "${EROOT}"/usr/bin/php-cgi || \
die -q "Failed to create symlink for php-cgi"
}
set_fpm() {
local t=$(resolv_target fpm $1)
[[ -z $t ]] && die -q "Bad target"
- ln -sf ../..$(get_active_libdir)/$t/bin/php-fpm "${EROOT}"/usr/bin/php-fpm || \
+ @LN_S@ --force ../..$(get_active_libdir)/$t/bin/php-fpm "${EROOT}"/usr/bin/php-fpm || \
die -q "Failed to create symlink for the php-fpm binary"
echo "You have to run \`${EPREFIX}/etc/init.d/php-fpm restart' for the changes to take effect"
}