From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1ImiWg-0000cn-Ox for garchives@archives.gentoo.org; Tue, 30 Oct 2007 04:16:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9U4Fa7x001500; Tue, 30 Oct 2007 04:15:36 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9U4DcWD031356 for ; Tue, 30 Oct 2007 04:13:38 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 18ECC64EF3 for ; Tue, 30 Oct 2007 04:13:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.3 X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.5 tests=[AWL=0.232, BAYES_00=-2.599, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sIdtPOEmBnvR for ; Tue, 30 Oct 2007 04:13:28 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 9CE9464EEE for ; Tue, 30 Oct 2007 04:13:28 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Imi8R-0003O8-GM for gentoo-dev@gentoo.org; Tue, 30 Oct 2007 03:51:23 +0000 Received: from 82.152.223.124 ([82.152.223.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Oct 2007 03:51:23 +0000 Received: from slong by 82.152.223.124 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Oct 2007 03:51:23 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Steve Long Subject: [gentoo-dev] Re: Re: Re: Opinions Wanted - Arrays again :) Date: Tue, 30 Oct 2007 03:55:55 +0000 Message-ID: References: <1193326831.4245.16.camel@uberlaptop.marples.name> <20071025213113.GJ29642@supernova> <1193348959.2910.9.camel@uberpc.marples.name> <20071025225641.GK29642@supernova> <1193380105.2913.1.camel@uberpc.marples.name> <4721BE92.4070200@thefreemanclan.net> <1193395366.4312.14.camel@uberlaptop.marples.name> <1193418183.3487.3.camel@uberpc.marples.name> <1193643300.28689.28.camel@nc.nor.wtbts.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.152.223.124 User-Agent: KNode/0.10.4 Sender: news X-Archives-Salt: 0a73b3f2-eec0-4d0a-8934-d1d54cd034ea X-Archives-Hash: f70cb2763a59594af2354265d1ed47f1 Natanael Copa wrote: > On Sun, 2007-10-28 at 06:46 +0000, Steve Long wrote: > >> Failing that, a plaintext config file along the lines discussed in [1] >> would be cool. awk could parse it pretty quickly. >> >> [1] http://modeemi.fi/~tuomov/b//archives/2007/01/20/T11_58_29/ > > Something like Debian's /etc/network/interfaces? > > http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/interfaces.5.gz > Looks good to me :D Nice and simple to parse. > Why re-invent yet another format when there already are many out there, > well tested over years. > I totally agree. Bug me (igli) in #friendly-coders if you're on IRC and I'll help with it; but I'm not a network guy, so someone else will have to lead the work (i'm not that motivated basically, but it looks like an easy job-- there's always existing code fall back on, much as it pains me to read it ;) QA would need to be sorted too. *shrug* I'd do the function too, though, since it matches existing configs and you'd probably end up calling it (or a variant) in any case. Not sure how the mapping thing would fit into it (not my bailiwick) but the existing stuff I've seen so far can all be done with the function call. If I'm wrong I'm sure someone will correct me (gently, I hope ;) -- gentoo-dev@gentoo.org mailing list