Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] parser/generator for /etc/conf.d/net*
Date: Mon, 30 Jun 2014 22:09:51
Message-Id: robbat2-20140630T220758-983990276Z@orbis-terrarum.net
In Reply to: Re: [gentoo-dev] parser/generator for /etc/conf.d/net* by William Hubbs
1 On Mon, Jun 30, 2014 at 03:11:57PM -0500, William Hubbs wrote:
2 > On Mon, Jun 30, 2014 at 12:46:38PM -0700, C.J. Adams-Collier KF7BMP wrote:
3 > > Which brings me to the question, does there exist a parser/generator for
4 > > the /etc/conf.d/net.* files? If not, would Gentoo like me to contribute
5 > > my work on the generator, and would one of you point me to the parser?
6 >
7 > The files in /etc/conf.d are just posix shell code; they are sourced in
8 > /lib*/rc/runscript.sh. The actions taken depend on the service script
9 > that reads the files.
10 >
11 > I'll let the netifrc maintainers speak up wrt whether they would be
12 > interested in a generator for /etc/conf.d/net.*.
13 I'm certainly interested in a generator for the simple versions, but
14 it's going to remain shell code, because there are some really complex
15 configs out there, that sanely use variables to abstract & reduce
16 complexity.
17
18 As such, a parser should probably just source it, and be prepared to say
19 'this is too complex, do it yourself'.
20
21 --
22 Robin Hugh Johnson
23 Gentoo Linux: Developer, Infrastructure Lead
24 E-Mail : robbat2@g.o
25 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

Replies

Subject Author
Re: [gentoo-dev] parser/generator for /etc/conf.d/net* "C.J. Adams-Collier KF7BMP" <cjac@×××××××××××.org>