From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 20:04:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FB5016A401 for ; Fri, 9 Mar 2007 20:04:48 +0000 (UTC) (envelope-from dave.list@pixelhammer.com) Received: from smtp1.tls.net (smtp1.tls.net [65.196.224.82]) by mx1.freebsd.org (Postfix) with SMTP id 0F21713C481 for ; Fri, 9 Mar 2007 20:04:47 +0000 (UTC) (envelope-from dave.list@pixelhammer.com) Received: (qmail 77416 invoked by uid 89); 9 Mar 2007 20:05:23 -0000 Received: by simscan 1.2.3 ppid: 77404, pid: 77413, t: 0.1546s scanners: attach: 1.2.3 clamav: 0.88.5/m:42/d:2702 Received: from 64-184-10-26.bb.hrtc.net (HELO ?192.168.0.105?) (ldg%tls.net@64.184.10.26) by auth-smtp1.tls.net with SMTP; 9 Mar 2007 20:05:23 -0000 Message-ID: <45F1BDC2.8030507@pixelhammer.com> Date: Fri, 09 Mar 2007 15:04:18 -0500 From: DAve User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Dan Busarow References: <010801c7624c$709ecb80$6501a8c0@GRANT> <200703091640.18154.v.cristescu@lamit.ro> <3CA73050-6661-47A5-976F-07DEB390E133@dpcsys.com> In-Reply-To: <3CA73050-6661-47A5-976F-07DEB390E133@dpcsys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org Questions -" Subject: Re: zoneinfo FreeBSD 4.4 - 4.11 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 20:04:48 -0000 Dan Busarow wrote: > > On Mar 9, 2007, at 7:40 AM, Vasile Cristescu wrote: > >> On Friday 09 March 2007 15:11, Grant Peel wrote: >>> Hi all, >>> >>> I got all my servers playiung nice with the new port for zoneinfo, >>> all but >>> one which is a simple slave nameserver ruynning FreeBSD 4.4. >>> >>> When I installed the port on it, and try to run make, I get this: >>> >>> voyager ROOT /usr/gpeel/zoneinfo > make >>> zoneinfo-: You need to define PORTNAME and PORTVERSION instead of >>> PKGNAME. >>> (This port is too old for your bsd.port.mk, please update it to match >>> your bsd.port.mk.) >>> *** Error code 1 >>> >>> Stop. >>> >>> I have been reading lots about simply updateing the zone file itself, >>> but >>> have not been undersztanding what I am seeing. If anyone could >>> simplify, I >>> would appreciate it. >>> > > Grant, > > Search for an email I sent to the list on 2/22 with Subject > > Determining daylight savings changes on BSD > > It has the steps needed to update manually from source. > > Here's the steps > > If you can't use the ports to update your time zone files here is the > manual procedure. > > 1. create a new directory and cd into it > e.g. # mkdir myzoneinfo; cd myzoneinfo > > 2. # fetch ftp://elsie.nci.nih.gov/pub/tzdata2007b.tar.gz > > 3. # tar -zxvf tzdata2007b.tar.gz > > 4. you will now have a bunch of files in the directory extracted from > tzdata2007b. > you need to edit zone.tab and comment out these lines > > #AX +6006+01957 Europe/Mariehamn > #GG +4927-00232 Europe/Guernsey > #IM +5409-00428 Europe/Isle_of_Man > #JE +4912-00207 Europe/Jersey > #ME +4226+01916 Europe/Podgorica > #RS +4450+02030 Europe/Belgrade > #TL -0833+12535 Asia/Dili > > 5. run this command > # zic -d ./zoneinfo -p America/Los_Angeles -m 0644 -y ./yearistype \ > africa antarctica asia australasia etcetera europe \ > factory northamerica southamerica systemv > > that's all one long line > the zic command will create a new directory named zoneinfo and > fill it with the new zoneinfo files. You can compare it to > /usr/share/zoneinfo > > 6. install the new files by running > # cp -R -p ./zoneinfo/ /usr/share/zoneinfo > # cp ./zone.tab /usr/share/zoneinfo > # tzsetup > > 7. to verify that all went well run > # zdump -v /etc/localtime | grep 2007 > your should get > > /etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 > PST isdst=0 gmtoff=-28800 > /etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 > PDT isdst=1 gmtoff=-25200 > /etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 > PDT isdst=1 gmtoff=-25200 > /etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 > PST isdst=0 gmtoff=-28800 > > > I've done this on 1/2 dozen older 4.x and 5.x servers and it works fine. Just a heads up, that file is now tzdata2007c.tar.gz, created on Feb 26th. At least I couldn't grab tzdata2007b.tar.gz anymore. DAve -- Three years now I've asked Google why they don't have a logo change for Memorial Day. Why do they choose to do logos for other non-international holidays, but nothing for Veterans? Maybe they forgot who made that choice possible.