From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 27 20:58:41 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30281106564A; Sun, 27 Mar 2011 20:58:41 +0000 (UTC) (envelope-from poyopoyo@puripuri.plala.or.jp) Received: from msa03a.plala.or.jp (msa03.plala.or.jp [58.93.240.3]) by mx1.freebsd.org (Postfix) with ESMTP id 79F438FC12; Sun, 27 Mar 2011 20:58:39 +0000 (UTC) Received: from i125-202-4-145.s02.a026.ap.plala.or.jp ([125.202.4.145]) by msa01b.plala.or.jp with ESMTP id <20110327204838.CMSD29071.msa01b.plala.or.jp@i125-202-4-145.s02.a026.ap.plala.or.jp>; Mon, 28 Mar 2011 05:48:38 +0900 Date: Mon, 28 Mar 2011 05:48:37 +0900 Message-ID: <86bp0wp9wa.wl%poyopoyo@puripuri.plala.or.jp> From: poyopoyo@puripuri.plala.or.jp To: Doug Barton In-Reply-To: <4D8F9E9A.50604@FreeBSD.org> References: <20110327153835.GA87420@albert.catwhisker.org> <4D8F9E9A.50604@FreeBSD.org> Mail-Followup-To: Doug Barton , David Wolfskill , hackers@freebsd.org User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.2 (amd64-portbld-freebsd9.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-VirusScan: Outbound; msa01b; Mon, 28 Mar 2011 05:48:38 +0900 X-Mailman-Approved-At: Mon, 28 Mar 2011 02:49:45 +0000 Cc: hackers@freebsd.org, David Wolfskill Subject: Re: Keeping /etc/localtime up-to-date X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2011 20:58:41 -0000 At Sun, 27 Mar 2011 13:31:22 -0700, Doug Barton wrote: > This is more along the lines of something that would be easy to work > with in mergemaster. If I can tell what file in /usr/share/zoneinfo to > compare /etc/localtime to (ideally with fully path), I'm happy to > provide a mechanism in mergemaster to make sure it stays up to date. tzsetup(8) creates /var/db/zoneinfo which contains path to the installed zoneinfo file relative to /usr/share/zineinfo/. $ cat /var/db/zoneinfo Asia/Tokyo $ md5 -q /etc/localtime /usr/share/zoneinfo/$(cat /var/db/zoneinfo) f17769e8eb35e7a08cfedfe9b2f6b5ef f17769e8eb35e7a08cfedfe9b2f6b5ef -- kuro