From 3415b63b70414f36c0076c46a7d4f1a45eccd344 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Fri, 7 Dec 2007 09:45:33 -0500 Subject: [PATCH] Fixed util-vserver.conf to look for wget and vconfig in bindir, but the others in sbindir --- security/util-vserver/util-vserver.conf | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/security/util-vserver/util-vserver.conf b/security/util-vserver/util-vserver.conf index 41a4379c9..b0d1cb581 100644 --- a/security/util-vserver/util-vserver.conf +++ b/security/util-vserver/util-vserver.conf @@ -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