From owner-freebsd-sysinstall@FreeBSD.ORG Wed Jan 4 04:08:07 2012 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E90FF106566C; Wed, 4 Jan 2012 04:08:07 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id A20B38FC08; Wed, 4 Jan 2012 04:08:07 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa06 [127.0.0.1]) by ltcfislmsgpa06.fnfis.com (8.14.4/8.14.4) with SMTP id q043QIMa022985; Tue, 3 Jan 2012 22:08:05 -0600 Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa06.fnfis.com with ESMTP id 124c8srh0t-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 03 Jan 2012 22:08:05 -0600 Received: from [10.0.0.104] (10.14.152.28) by smtp.fisglobal.com (10.132.206.31) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 3 Jan 2012 22:08:03 -0600 MIME-Version: 1.0 (Apple Message framework v1084) From: Devin Teske In-Reply-To: Date: Tue, 3 Jan 2012 20:07:59 -0800 Message-ID: References: <4F03AF24.70102@freebsd.org> <4F03BE93.9040708@fuzzwad.org> <964E978A-C016-4A53-A034-8959140CDF68@fisglobal.com> To: Eitan Adler X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.28] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2012-01-03_03:2012-01-03, 2012-01-03, 1970-01-01 signatures=0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Devin, Garrett Cooper , Marcel Moolenaar , Lawrence Stewart , freebsd-sysinstall@freebsd.org Subject: Re: sysinstall as a post-install tool X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 04:08:08 -0000 On Jan 3, 2012, at 7:30 PM, Eitan Adler wrote: > On Tue, Jan 3, 2012 at 10:14 PM, Devin Teske = wrote: >> host-setup actually leverages the power and safety of my sysrc(8) utility >> (just added to ports tree as sysutils/sysrc). >>=20 >> In fact, sysrc was written as a test-script solely to feed back into >> host-setup so that we could replace sysinstall's Configure menu. We're j= ust >> not there with all the menu items (but we've got the most important ones= -- >> IMHO -- and made them rock-stable). >=20 > I want to see these tools in the base system. I should mention one more tool that plays into all this... tzdialog. Part of the puzzle to completing our quest of "replacing sysinstall" involv= ed rewriting tzsetup(8). Largely because we had written host-setup(1) to wo= rk with Xdialog(1) and therefore thought that it would be better to have a = tzsetup(8) that also supported Xdialog(1) rather than launching it within a= n xterm(1) (which was not-so-nice, but does work). In rewriting tzsetup(8) to produce tzdialog(1), I strived _very_ hard to ac= tually make it so that you can literally line up the C-code with the sh(1)-= code. Picking out comments that are word-for-word the same is one thing, bu= t re-using variable names and even going as far as to invent struct-analogs= with the same names is another story. All the sh(1)-code follows the exact= same logic as the C-code. When the C-code opens the ISO-3166 table from NI= ST and parses-out the data it needs, so does the sh(1)-code. Line-for-line,= we try to mimic the C-code for the express purpose that we can perhaps rep= lace tzsetup(8), but I'll let you be the judge. I mention all this, because host-setup(1) will automatically pick-up on the= existence of tzdialog(8) and prefer it as a drop-in replacement for tzsetu= p(8), should tzdialog(8) be installed and available. Thus, achieving the ab= ility to actually set the time-zone via host-setup from a menu-item configu= red in a window manager or display manager (HINT: We've got our fvwm2 confi= guration configured with "exec host-setup -sX" which correctly hands-off th= e "-X" flag to tzdialog). I haven't yet tossed the idea out there yet for creating a port for tzdialo= g(8) -- this is the first that I'm suggesting -- but since I'm going to mak= e a request to submit host-setup(8), I'd figure I ought to make a request f= or tzdialog too, since the former can take advantage of the latter if/when = installed. --=20 Devin Links: http://druidbsd.sourceforge.net/ http://druidbsd.sourceforge.net/download/tzdialog.txt _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.