@ -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 - 201 0 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,27 +34,35 @@ 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]' )
pkgprefix -t $y
# if no fixed path was provided by setting $x_path use pkgprefix
if [ -z "$x_path" ]; then
pkgprefix -t $y
# where is it?
# where is it?
case "$x" in
case "$x" in
wget|vconfig)
wget|vconfig)
x_path=bindir ;;
x_path=bindir ;;
*)
*)
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