Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 05:48:37 +0900
From:      poyopoyo@puripuri.plala.or.jp
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        hackers@freebsd.org, David Wolfskill <david@catwhisker.org>
Subject:   Re: Keeping /etc/localtime up-to-date
Message-ID:  <86bp0wp9wa.wl%poyopoyo@puripuri.plala.or.jp>
In-Reply-To: <4D8F9E9A.50604@FreeBSD.org>
References:  <20110327153835.GA87420@albert.catwhisker.org> <4D8F9E9A.50604@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bp0wp9wa.wl%poyopoyo>