From owner-freebsd-questions Fri Sep 29 17:35:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id 9885B37B502 for ; Fri, 29 Sep 2000 17:35:11 -0700 (PDT) Received: (qmail 4940 invoked by uid 100); 30 Sep 2000 00:35:10 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14805.13630.557912.12644@guru.mired.org> Date: Fri, 29 Sep 2000 19:35:10 -0500 (CDT) To: Ronald G Minnich Cc: questions@freebsd.org Subject: Re: BSD config source In-Reply-To: <62734520@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ronald G Minnich writes: > well, I don't have a FreeBSD machine at present, but I want to use BSD > config for a non-kernel use. I'm failing to find the source for it handy > anywhere. Can someone send me a pointer? Please use email, I don't > subscribe to this list. The BSD config can't really be used for much besides kernels - not without some extensive reworking. The tokenizer understands all the kernel-specific keywords, and most of the grammer is consumed with kernel-specific things. Ok, most of the rework is going to be removing stuff you don't need, but it still leaves you with lots of work. If you really want to look at it, it's in /usr/src/usr.sbin/config, and you can find it in the FreeBSD CVS server. On the other hand, I once decided I needed that kind of functionality myself. I wrote a config script that used a meta-config that described the config files for the program being built. If you feel like tryig make it work on a Rexx interpreter available to you, or rewriting it in Perl/Python/tcl/whatever, you're welcome to a copy.