Re: [uClinux-dev] [PATCH] mkconfig: allow people to control default vendor

2009-07-06 Thread David McCullough

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
  echodefault 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
  echoprompt \Vendor\
 -echodefault DEFAULTS_SECURECOMPUTING
 +echodefault 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.comhttp://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 -	1.34
+++ config/mkconfig	6 Jul 2009 11:44:00 -
@@ -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

Re: [uClinux-dev] [PATCH] mkconfig: allow people to control default vendor

2009-03-05 Thread Mike Frysinger
On Saturday 29 November 2008 20:37:03 Mike Frysinger wrote:
 On Thursday 06 November 2008 20:38:45 Mike Frysinger wrote:
  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.

 ping ...

double ping ...
-mike


signature.asc
Description: This is a digitally signed message part.
___
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

Re: [uClinux-dev] [PATCH] mkconfig: allow people to control default vendor

2008-11-29 Thread Mike Frysinger
On Thursday 06 November 2008 20:38:45 Mike Frysinger wrote:
 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.

ping ...
-mike


signature.asc
Description: This is a digitally signed message part.
___
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

[uClinux-dev] [PATCH] mkconfig: allow people to control default vendor

2008-11-06 Thread Mike Frysinger
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 [EMAIL PROTECTED]
---
 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 @@ echostring
 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