[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] parser/generator for /etc/conf.d/net*
From:       "C.J. Adams-Collier KF7BMP" <cjac () colliertech ! org>
Date:       2014-06-30 22:24:57
Message-ID: 1404167097.10064.5.camel () foxtrot ! esd ! colliertech ! org
[Download RAW message or body]


On Mon, 2014-06-30 at 22:09 +0000, Robin H. Johnson wrote:
> On Mon, Jun 30, 2014 at 03:11:57PM -0500, William Hubbs wrote:
> > On Mon, Jun 30, 2014 at 12:46:38PM -0700, C.J. Adams-Collier KF7BMP wrote:
> > > Which brings me to the question, does there exist a parser/generator for
> > > the /etc/conf.d/net.* files?  If not, would Gentoo like me to contribute
> > > my work on the generator, and would one of you point me to the parser?
> > 
> > The files in /etc/conf.d are just posix shell code; they are sourced in
> > /lib*/rc/runscript.sh. The actions taken depend on the service script
> > that reads the files.
> > 
> > I'll let the netifrc maintainers speak up wrt whether they would be
> > interested in a generator for /etc/conf.d/net.*.
> I'm certainly interested in a generator for the simple versions, but
> it's going to remain shell code, because there are some really complex
> configs out there, that sanely use variables to abstract & reduce
> complexity.
> 
> As such, a parser should probably just source it, and be prepared to say
> 'this is too complex, do it yourself'.

Thanks Robin.  I'll keep that in mind as I work on this.  Good to know
there's interest in the work.  I've got a basic package started and have
most of the functionality stubbed out.  Next step is to write some
tests.


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic