Browse Source

util-vserver: provide the right path to 'cp', 'mv' and ln' from coreutils

Note:
Because we mangle the install path for certain binaries from '/usr/bin' to
'/bin' we cannot use `pkgprefix bindir coreutils` to determine the path
because it will return '/usr/bin'. To solve this kind of issue we set a
fixed path fori those special cases.
user/chris/old/ruby
Christian Wiese 16 years ago
parent
commit
6035aa3274
  1. 16
      security/util-vserver/util-vserver.conf

16
security/util-vserver/util-vserver.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../util-vserver/util-vserver.conf # Filename: package/.../util-vserver/util-vserver.conf
# Copyright (C) 2006 - 2009 The OpenSDE Project # Copyright (C) 2006 - 2010 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -34,19 +34,24 @@ var_remove_regex makeopt ' ' 'CC=.*'
# some help to crosscompile # some help to crosscompile
# #
for x in ip iptables vconfig wget; do for x in ip iptables vconfig wget cp mv ln; do
# which package? # which package or fixed path?
x_path=
case "$x" in case "$x" in
ip) ip)
y="iproute2" ;; y="iproute2" ;;
vconfig) vconfig)
y="vlan" ;; y="vlan" ;;
cp|mv|ln)
x_path="/bin" ;;
*) *)
y="$x" ;; y="$x" ;;
esac esac
z=$( echo "$x" | tr '[a-z]' '[A-Z]' ) z=$( echo "$x" | tr '[a-z]' '[A-Z]' )
# if no fixed path was provided by setting $x_path use pkgprefix
if [ -z "$x_path" ]; then
pkgprefix -t $y pkgprefix -t $y
# where is it? # where is it?
@ -56,5 +61,8 @@ for x in ip iptables vconfig wget; do
*) *)
x_path=sbindir ;; x_path=sbindir ;;
esac esac
var_append configcache ' ' ac_cv_path_$z=$( pkgprefix $x_path $y )/$x x_path="$( pkgprefix $x_path $y )"
fi
var_append configcache ' ' ac_cv_path_$z=$x_path/$x
done done

Loading…
Cancel
Save