|
|
@ -44,14 +44,26 @@ hook_add postmake 5 "vserver_tests" |
|
|
|
# some help to crosscompile |
|
|
|
# |
|
|
|
for x in ip iptables vconfig wget; do |
|
|
|
# which package? |
|
|
|
case "$x" in |
|
|
|
ip) y=iproute2 ;; |
|
|
|
ip) |
|
|
|
y="iproute2" ;; |
|
|
|
vconfig) |
|
|
|
y=vlan ;; |
|
|
|
y="vlan" ;; |
|
|
|
*) |
|
|
|
y="$x" ;; |
|
|
|
esac |
|
|
|
|
|
|
|
z=$( echo "$x" | tr '[a-z]' '[A-Z]' ) |
|
|
|
|
|
|
|
pkgprefix -t $y |
|
|
|
var_append configcache ' ' ac_cv_path_$z=$( pkgprefix bindir $y )/$x |
|
|
|
|
|
|
|
# where is it? |
|
|
|
case "$x" in |
|
|
|
wget|vconfig) |
|
|
|
x_path=bindir ;; |
|
|
|
*) |
|
|
|
x_path=sbindir ;; |
|
|
|
esac |
|
|
|
var_append configcache ' ' ac_cv_path_$z=$( pkgprefix $x_path $y )/$x |
|
|
|
done |