From owner-freebsd-arch Thu Feb 13 3:23: 4 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54B6D37B401 for ; Thu, 13 Feb 2003 03:23:03 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id C395043FA3 for ; Thu, 13 Feb 2003 03:22:59 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd06.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18jHRl-00011V-07; Thu, 13 Feb 2003 12:22:29 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[217.229.216.98]) by fmrl06.sul.t-online.com with esmtp id 18jHRb-1Y7gy8C; Thu, 13 Feb 2003 12:22:19 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id h1DBMI8Z016474; Thu, 13 Feb 2003 12:22:18 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.6/8.12.6) with SMTP id h1DBMIQE000814; Thu, 13 Feb 2003 12:22:18 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Thu, 13 Feb 2003 12:22:18 +0100 From: Alexander Leidinger To: Mike Makonnen Cc: drosih@rpi.edu, wollman@lcs.mit.edu, wes@softweyr.com, arch@FreeBSD.ORG Subject: Re: syslog.conf syntax change (multiple program/host specifications) Message-Id: <20030213122218.3d72c6ba.Alexander@Leidinger.net> In-Reply-To: <20030213041709.XOQ23484.out001.verizon.net@kokeb.ambesa.net> References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302120632.36583.wes@softweyr.com> <200302121411.h1CEBRSe025071@khavrinen.lcs.mit.edu> <200302121521.33506.wes@softweyr.com> <200302121615.h1CGFdGG025691@khavrinen.lcs.mit.edu> <20030213041709.XOQ23484.out001.verizon.net@kokeb.ambesa.net> X-Mailer: Sylpheed version 0.8.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 12 Feb 2003 23:17:08 -0500 Mike Makonnen wrote: > never work. The current file layouts are too entrenched. What would work; > however, is XML as an intermediate data layout. The XML would sit between some > program the user can use to make choices and the underlying text file. Take > rc.conf for example. You could put all that data in XML format and some gui > would let the user choose whatever he/she wanted and that would then be piped > through an XSLT script that renders it in the current key=value layout. The data > would be kept in defaults/rc.conf.xml and defaults/rc.conf would just become > another generated file. How do you want to solve the problem of: - T1: a human edited /etc/rc.conf without updating the .xml - T2: someone else (or the same human) uses the GUI to change something --> the hand edited change in rc.conf is lost If you have a parser for rc.conf -> .xml (note: I also have some special r.conf's with "if, else, ...") then you can directly use this parser in the GUI instead of translating it into xml. OT-Question: should we "export" existing parsers into share/ so interested people just have to look into share/parsers/ instead of searching it in /usr/src? Bye, Alexander. -- Secret hacker rule #11: hackers read manuals. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message