From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 21:48:43 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 1E5D116A400 for ; Fri, 9 Mar 2007 21:48:43 +0000 (UTC) (envelope-from dan@dpcsys.com) Received: from ns.beach.net (ns.beach.net [12.130.64.129]) by mx1.freebsd.org (Postfix) with ESMTP id 06D4613C461 for ; Fri, 9 Mar 2007 21:48:41 +0000 (UTC) (envelope-from dan@dpcsys.com) Received: from [192.168.1.228] (busarow.beach.net [69.51.81.91] (may be forged)) by ns.beach.net (8.13.7/8.13.7) with ESMTP id l29Lmf3R028365; Fri, 9 Mar 2007 13:48:41 -0800 (PST) In-Reply-To: <45F1BDC2.8030507@pixelhammer.com> References: <010801c7624c$709ecb80$6501a8c0@GRANT> <200703091640.18154.v.cristescu@lamit.ro> <3CA73050-6661-47A5-976F-07DEB390E133@dpcsys.com> <45F1BDC2.8030507@pixelhammer.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <36B16658-0629-43AC-8871-8544F041108C@dpcsys.com> Content-Transfer-Encoding: 7bit From: Dan Busarow Date: Fri, 9 Mar 2007 14:48:36 -0700 To: DAve X-Mailer: Apple Mail (2.752.2) 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 21:48:43 -0000 On Mar 9, 2007, at 1:04 PM, DAve wrote: > 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. Thanks for cathing and posting that Dave. It is indeed supposed to be tzdata2007c.tar.gz Dan