Jivin Mike Frysinger lays it down ...
> Rather than forcing SECURECOMPUTING as the default vendor, allow people to
> tweak this locally with a config/vendor-default file.  If said file does not
> exist, then we still get SECURECOMPUTING as the default.
> 
> Signed-off-by: Mike Frysinger <vap...@gentoo.org>

Applied using the following patch, same net outcome :-)

Thanks,
Davidm

> ---
>  config/mkconfig |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/config/mkconfig b/config/mkconfig
> index e110aac..71bc31a 100755
> --- a/config/mkconfig
> +++ b/config/mkconfig
> @@ -30,6 +30,12 @@ echo "     string"
>  echo "       default 4.0"
>  echo
>  
> +if [ -e config/vendor-default ] ; then
> +     vendor=$(cat config/vendor-default)
> +else
> +     vendor="SECURECOMPUTING"
> +fi
> +
>  #
>  # Figure out the vendor/products dynamically, allows people to add there
>  # own without messin with the config.in file
> @@ -40,7 +46,7 @@ echo "comment \"Select the Vendor you wish to target\""
>  echo
>  echo "choice"
>  echo "       prompt \"Vendor\""
> -echo "       default DEFAULTS_SECURECOMPUTING"
> +echo "       default DEFAULTS_${vendor}"
>  echo
>  
>  pfile=/tmp/products.$$
> -- 
> 1.6.0.3
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
David McCullough,  david_mccullo...@securecomputing.com,  Ph:+61 734352815
McAfee - SnapGear  http://www.snapgear.com                http://www.uCdot.org
Index: config/mkconfig
===================================================================
RCS file: /cvs/sw/new-wave/config/mkconfig,v
retrieving revision 1.34
diff -u -r1.34 mkconfig
--- config/mkconfig	5 Jul 2009 23:58:19 -0000	1.34
+++ config/mkconfig	6 Jul 2009 11:44:00 -0000
@@ -21,6 +21,15 @@
 	echo
 }
 
+default_vendor()
+{
+	if [ -f config/vendor-default ] ; then
+		fix_name "`cat config/vendor-default`"
+	else
+		fix_name McAfee
+	fi
+}
+
 #############################################################################
 
 echo "mainmenu \"Embedded Linux Configuration\""
@@ -40,7 +49,7 @@
 echo
 echo "choice"
 echo "	prompt \"Vendor\""
-echo "	default DEFAULTS_MCAFEE"
+echo "	default DEFAULTS_`default_vendor`"
 echo
 
 pfile=/tmp/products.$$
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to