From brandon@cold.org  Fri Apr 25 10:22:15 1997
Received: from cold.org (cold.org [206.81.134.103])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA28351
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Apr 1997 10:22:14 -0700 (PDT)
Received: (from brandon@localhost) by cold.org (8.8.5/8.8.3) id LAA02517; Fri, 25 Apr 1997 11:22:14 -0600 (MDT)
Message-Id: <199704251722.LAA02517@cold.org>
Date: Fri, 25 Apr 1997 11:22:14 -0600 (MDT)
From: brandon@cold.org
Reply-To: brandon@cold.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: kernel config wrapper 'doconfig'
X-Send-Pr-Version: 3.2

>Number:         3386
>Category:       bin
>Synopsis:       kernel 'config' wrapper 'doconfig' ala Digital Unix's doconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 25 10:30:01 PDT 1997
>Closed-Date:    Sun Aug 2 23:34:59 PDT 1998
>Last-Modified:  Sun Aug  2 23:35:25 PDT 1998
>Originator:     Brandon Gillespie
>Release:        FreeBSD 2.2-970205-GAMMA i386
>Organization:
>Environment:

	

>Description:

This is a kernel 'config' wrapper for the simple people, based off the
'doconfig' command in Digital Unix.  It is actually composed of two
commands written in perl4: doconfig and autokernconf.  doconfig calls
autokernconf if no config file is specified--in the future it is intended
that autokernconf can be crufted up to chew on the output of dmesg and
other sources to give a somewhat intelligently defaulted kernel config
template, based off the GENERIC template.  For now it just copies GENERIC
and changes ident as appropriate.

The two commands are self-contained, and can be found at:

       ftp://ftp.cold.org/pub/brandon/doconfig.tar.gz

The syntax of 'doconfig' is:

Syntax: doconfig [options]

Options:

  -c FILE   Use specified config file.  If no path is given, it will assume
            the file exists in /usr/src/sys/i386/conf.  If the full path is
            given, it will copy the config file to /usr/src/sys/i386/conf.
            If this option is used, doconfig will not run an editor on the
            config file, unless the -e option is specified.
  -i        Install kernel into the root directory (will move /kernel to
            /kernel.DATE).
  -r        Reboot after successfully building and installing.  This option
            also installs the kernel (as -i would)--user will be prompted
            before the reboot occurs.
  -e [PATH] Use specified editor to edit script.  If editor is not specified,
            will use EDITOR environment variable, or /usr/bin/vi
  -g        passed to 'config'
  -p        passed to 'config'
  -n        passed to 'config'

I have tested it in both 2.1.7 and 2.2, and it works fine.

>How-To-Repeat:

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: asami 
Responsible-Changed-When: Tue May 20 21:57:34 PDT 1997 
Responsible-Changed-Why:  
Misfiled PR. 

From: Jacques Vidrine <n@nectar.com>
To: freebsd-gnats-submit@freebsd.org, brandon@cold.org
Cc:  Subject: Re: bin/3386: kernel 'config' wrapper 'doconfig' ala Digital Unix's 
 doconfig
Date: Mon, 27 Jul 1998 18:33:00 -0500

 Hello Brandon,
 
 Are you still maintaining this utility?  I've made a 
 FreeBSD port of it that I would commit, but:
 
 * If you are not maintaining it, there's probably no
   point in making a port of it.
 * There is at least one buglet that needs fixing ... doconfig 
   does not recognize the ``-a'' option as documented.
 
 Let me know,
 -- 
 Jacques Vidrine <n@nectar.com>

From: Brandon Gillespie <brandon@roguetrader.com>
To: Jacques Vidrine <n@nectar.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/3386: kernel 'config' wrapper 'doconfig' ala Digital Unix's  doconfig
Date: Tue, 28 Jul 1998 01:39:40 -0600 (MDT)

 On Mon, 27 Jul 1998, Jacques Vidrine wrote:
 
 > Hello Brandon,
 > 
 > Are you still maintaining this utility?  I've made a 
 > FreeBSD port of it that I would commit, but:
 > 
 > * If you are not maintaining it, there's probably no
 >   point in making a port of it.
 > * There is at least one buglet that needs fixing ... doconfig 
 >   does not recognize the ``-a'' option as documented.
 > 
 
 yes, I am, I was actually working on the backend of doconfig for
 automating the generation of kernel config files--and was holding off
 committing doconfig to the proper tree (per jordan's instructions);
 I've just been extremely busy lately (switched jobs, get/have to work
 on HP's :)  but a port would probably be great (if not just a package).
 
 You can grab the slightly newer version at:
 
     ftp://ftp.cold.org/pub/brandon/doconfig-1.1.tar.gz
 
 It doesn't include any but the core/skeleton autokernconf, and in addition
 assumes it will be placed in /usr/sbin.  Change $autokernconf in doconfig
 if it is put anywhere else.
 
 -Brandon
 
State-Changed-From-To: open->closed 
State-Changed-By: nectar 
State-Changed-When: Sun Aug 2 23:34:59 PDT 1998 
State-Changed-Why:  
Committed as ports/sysutils/doconfig.  Thanks! 
>Unformatted:
