From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A437813877A for ; Mon, 30 Jun 2014 22:25:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35C7FE086D; Mon, 30 Jun 2014 22:25:06 +0000 (UTC) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3A255E0835 for ; Mon, 30 Jun 2014 22:25:05 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id fp1so8982992pdb.11 for ; Mon, 30 Jun 2014 15:25:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version; bh=FOQ3ebjS2yz6RgGGBjHm+Y8F3P2CYP98/FfnuCXiETs=; b=DoVKIcAXXN0EO788gRQXpKK+ZLG+6e42a77JTf9QaZRmmavYVc3Ahwh1Wh3UsUy4zP hBEjnUApPBDutOsjVzS9n78bmbaZV6flUyOCZOX2zvi8UeovExfdimHaVnBg2/Xlsp0Z /EQu/h29J+6MgS+umcqTH5jTLebS/knRqohGHAAxKjRA3pClHnCaYfjDEmNq/yiTRad7 yR6G5t/bkKDnw0PLiY5cDNcqdO4uGTE4jhcjj8Z8rdXmm9Mysub40DfAv0zlc/jt0dgY rDHfFJm/Q5yPVsK0eGGY5yUKmDQjjv6iHTk9aqa2qaEaDBmk6Gn/+ynHHHmonj5K9BXc 0nQw== X-Gm-Message-State: ALoCoQm+DYFWrk21V4OKiQSEdAiXEEMhuGGgaND/6WmlnKpx4DH84iu8X14xYIZKHlG/YQGGNOze X-Received: by 10.68.166.36 with SMTP id zd4mr56268464pbb.54.1404167104192; Mon, 30 Jun 2014 15:25:04 -0700 (PDT) Received: from ?IPv6:2607:ff08:f5:1337::2a? ([2607:ff08:f5:1337::2a]) by mx.google.com with ESMTPSA id vy5sm105862390pac.13.2014.06.30.15.25.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 15:25:03 -0700 (PDT) Message-ID: <1404167097.10064.5.camel@foxtrot.esd.colliertech.org> Subject: Re: [gentoo-dev] parser/generator for /etc/conf.d/net* From: "C.J. Adams-Collier KF7BMP" To: gentoo-dev@lists.gentoo.org Date: Mon, 30 Jun 2014 15:24:57 -0700 In-Reply-To: References: <1404157598.6809.9.camel@foxtrot.esd.colliertech.org> <20140630201157.GA3174@linux1> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-nqaXjWhmOve015F9wxUf" X-Mailer: Evolution 3.4.4-3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Archives-Salt: 0407c3ba-fe8f-4e9e-a60b-158a14ab2e75 X-Archives-Hash: 528953bc76ce0bc8ea4ce53fdda9fd81 --=-nqaXjWhmOve015F9wxUf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wro= te: > > > 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 contrib= ute > > > my work on the generator, and would one of you point me to the parser= ? > >=20 > > 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. > >=20 > > 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. >=20 > 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. --=-nqaXjWhmOve015F9wxUf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAABCAAGBQJTseO5AAoJEEyimPmPQm23QWoH/RiDxcUjHB3C1O8zzUxRSJMI 0A2PiyiRH43Iacqe87u37oXy3uB8yjmtLe+gsXwjAUgVd3UCGeakG9cprtLN+Nre kZyfJjvr2XNLKozbvcZ3KNY3BhRM66SRex3Y7Cs3+ZuSr++7MeUPzNuQO78m5n22 XkDL6PotgRv3rimOfGSkQRwjfFPh60qndkCaAbI5ZrEQUOtk5qNbuDRJ/AKzYgvF 0Wex+/CUvd/+OMdMkwckSxqNin2VBlYfGPBBxYFajQc7QHDGZucpheChBKthyurE 7j7VfV4RCXBIFFQLBxtiM8//krDPzIdA4V3/86M2z90thf9wA4MoVhdRr7RlELw= =DIWf -----END PGP SIGNATURE----- --=-nqaXjWhmOve015F9wxUf--