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