1 |
On Mon, 2014-06-30 at 22:09 +0000, Robin H. Johnson wrote: |
2 |
> On Mon, Jun 30, 2014 at 03:11:57PM -0500, William Hubbs wrote: |
3 |
> > On Mon, Jun 30, 2014 at 12:46:38PM -0700, C.J. Adams-Collier KF7BMP wrote: |
4 |
> > > Which brings me to the question, does there exist a parser/generator for |
5 |
> > > the /etc/conf.d/net.* files? If not, would Gentoo like me to contribute |
6 |
> > > my work on the generator, and would one of you point me to the parser? |
7 |
> > |
8 |
> > The files in /etc/conf.d are just posix shell code; they are sourced in |
9 |
> > /lib*/rc/runscript.sh. The actions taken depend on the service script |
10 |
> > that reads the files. |
11 |
> > |
12 |
> > I'll let the netifrc maintainers speak up wrt whether they would be |
13 |
> > interested in a generator for /etc/conf.d/net.*. |
14 |
> I'm certainly interested in a generator for the simple versions, but |
15 |
> it's going to remain shell code, because there are some really complex |
16 |
> configs out there, that sanely use variables to abstract & reduce |
17 |
> complexity. |
18 |
> |
19 |
> As such, a parser should probably just source it, and be prepared to say |
20 |
> 'this is too complex, do it yourself'. |
21 |
|
22 |
Thanks Robin. I'll keep that in mind as I work on this. Good to know |
23 |
there's interest in the work. I've got a basic package started and have |
24 |
most of the functionality stubbed out. Next step is to write some |
25 |
tests. |