head	1.5;
access;
symbols
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.4
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.4.6.1
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.2
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.3.8.1
	netbsd-9-4-RELEASE:1.3.18.1
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.6
	netbsd-10-base:1.4
	netbsd-9-3-RELEASE:1.3.18.1
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.4
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.3.18.1
	cjep_staticlib_x:1.4.0.2
	cjep_staticlib_x-base:1.4
	netbsd-9-1-RELEASE:1.3.18.1
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.20
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.3
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.18
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.3
	netbsd-8-1-RC1:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.2.4.1
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.16
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.2.4.1
	pgoyette-compat:1.3.0.14
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.2.4.1
	matt-nb8-mediatek:1.3.0.12
	matt-nb8-mediatek-base:1.3
	perseant-stdc-iso10646:1.3.0.10
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.8
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.6
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.2.4.1.0.2
	netbsd-7-1-RELEASE:1.2.4.1
	netbsd-7-1-RC2:1.2.4.1
	netbsd-7-nhusb-base-20170116:1.2.4.1
	bouyer-socketcan:1.3.0.4
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	netbsd-7-1-RC1:1.2.4.1
	pgoyette-localcount-20161104:1.3
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.3
	netbsd-7-nhusb:1.2.0.10
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.2
	pgoyette-localcount-base:1.3
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.8
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	tls-maxphys-base:1.2
	tls-maxphys:1.2.0.6
	netbsd-7:1.2.0.4
	netbsd-7-base:1.2
	tls-earlyentropy:1.2.0.2
	tls-earlyentropy-base:1.2;
locks; strict;
comment	@# @;


1.5
date	2024.06.02.00.21.12;	author kre;	state Exp;
branches;
next	1.4;
commitid	2IiwlpME7i6JdlcF;

1.4
date	2020.10.08.13.44.36;	author kre;	state Exp;
branches
	1.4.6.1;
next	1.3;
commitid	qIhGbUEGruw5w6rC;

1.3
date	2016.06.16.15.17.56;	author agc;	state Exp;
branches
	1.3.8.1
	1.3.18.1;
next	1.2;
commitid	iHECpuQ34vdXEHaz;

1.2
date	2014.08.08.09.17.03;	author apb;	state Exp;
branches
	1.2.2.1
	1.2.4.1
	1.2.6.1
	1.2.8.1
	1.2.10.1;
next	1.1;
commitid	aZ7Ke53fEKNisxLx;

1.1
date	2014.08.08.09.06.41;	author apb;	state Exp;
branches;
next	;
commitid	faMUjGUgq3u5oxLx;

1.4.6.1
date	2024.06.20.18.07.03;	author martin;	state Exp;
branches;
next	;
commitid	oDa8dN5ubMCayKeF;

1.3.8.1
date	2020.12.07.19.52.52;	author martin;	state Exp;
branches;
next	;
commitid	CQwaCiST8CPxCQyC;

1.3.18.1
date	2020.10.11.11.26.25;	author martin;	state Exp;
branches;
next	;
commitid	PwOzakCxTuLGEtrC;

1.2.2.1
date	2014.08.08.09.17.03;	author tls;	state dead;
branches;
next	1.2.2.2;
commitid	igbBQGexpTfGAMLx;

1.2.2.2
date	2014.08.10.06.51.02;	author tls;	state Exp;
branches;
next	;
commitid	igbBQGexpTfGAMLx;

1.2.4.1
date	2016.12.13.07.29.24;	author snj;	state Exp;
branches;
next	;
commitid	IyKxG8PcDdpGhNxz;

1.2.6.1
date	2014.08.08.09.17.03;	author tls;	state dead;
branches;
next	1.2.6.2;
commitid	jTnpym9Qu0o4R1Nx;

1.2.6.2
date	2014.08.20.00.00.21;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.2.8.1
date	2016.12.13.07.28.23;	author snj;	state Exp;
branches;
next	;
commitid	zc2ZPU46EscrhNxz;

1.2.10.1
date	2017.01.18.08.46.22;	author skrll;	state Exp;
branches;
next	;
commitid	M6f3RyDtiAR3wqCz;


desc
@@


1.5
log
@
Install /usr/share/zoneinfo/leap-seconds.list

Requested by Mallory Adams in tech-userlevel@@ a couple of weeks ago.

XXX pullup -10
@
text
@#	$NetBSD: Makefile,v 1.4 2020/10/08 13:44:36 kre Exp $

.include <bsd.own.mk>
.include "../../Makefile.inc"

.PATH: ${TZDISTDIR}

# If you want something other than Eastern United States time as a template
# for handling POSIX-style time zone environment variables,
# change the line below (after finding the zone you want in the
# time zone files, or adding it to a time zone file).
# (When a POSIX-style environment variable is handled, the rules in the
# template file are used to determine "spring forward" and "fall back" days and
# times; the environment variable itself specifies UT offsets of standard and
# summer time.)
# Alternately, if you discover you've got the wrong time zone, you can just
#	zic -p rightzone
# to correct things.
# Use the command
#	make zonenames
# to get a list of the values you can use for POSIXRULES.
# If you want POSIX compatibility, use "America/New_York".

POSIXRULES=	America/New_York

# "Compiled" time zone information is placed in the "TZDIR" directory
# (and subdirectories).
# Use an absolute path name for TZDIR unless you're just testing the software.
# Note: ${DESTDIR} is prepended to this for the actual copy.

TZDIR=	/usr/share/zoneinfo

# If you always want time values interpreted as "seconds since the epoch
# (not counting leap seconds)", use
#	REDO=		posix_only
# below.  If you always want right time values interpreted as "seconds since
# the epoch" (counting leap seconds)", use
#	REDO=		right_only
# below.  If you want both sets of data available, with leap seconds not
# counted normally, use
#	REDO=		posix_right
# below.  If you want both sets of data available, with leap seconds counted
# normally, use
#	REDO=		right_posix
# below.

REDO=		posix_only

PRIMARY_YDATA=	africa antarctica asia australasia \
		europe northamerica southamerica
YDATA=		$(PRIMARY_YDATA) etcetera backward
NDATA=		factory
TDATA=		$(YDATA) $(NDATA)
ZONETABLES=	zone1970.tab zone.tab
TABDATA=	iso3166.tab leapseconds leap-seconds.list $(ZONETABLES)
DATA=		$(YDATA) $(NDATA) $(TABDATA)

TZBUILDDIR=	${.OBJDIR}/builddir

.PHONY:	posix_only
posix_only: ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -d ${TZBUILDDIR} -L /dev/null ${TDATA}

.PHONY:	right_only
right_only: leapseconds ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -d ${TZBUILDDIR} -L leapseconds ${TDATA}

.PHONY:	other_two
other_two: leapseconds ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}

.PHONY:	posix_right
posix_right: posix_only other_two

.PHONY:	right_posix
right_posix: right_only other_two

.if ${MKUNPRIVED} == "no"
TOOL_PAX.unpriv=-pe
.else
TOOL_PAX.unpriv=
.endif

.if ${MKSHARE} != "no"
afterinstall: ${DATA} ${REDO} ${TABDATA}
	${_MKMSG_CREATE} ${POSIXRULES}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -d ${TZBUILDDIR} -p ${POSIXRULES}
	cd ${TZBUILDDIR} && \
	    find . -type f -print | xargs ${TOOL_STAT} -qf '%d,%i %N' | sort \
	| while read devino tzfile; do \
		destfile=${DESTDIR}${TZDIR}/$${tzfile#./}; \
		destdir=$$(dirname $${destfile}); \
		if [ ! -d "$$destdir" ]; then \
			${_MKSHMSG_INSTALL} $$destdir; \
			${_MKSHECHO} ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} \
			$$destdir; \
			${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} $$destdir; \
		fi; \
		if [ "$$devino" = "$$lastdevino" ]; then \
			if  ldevino=$$(${TOOL_STAT} -qf '%d %i' $$lastfile) && \
			    tdevino=$$(${TOOL_STAT} -qf '%d %i' $$destfile) && \
			    [ "$$ldevino" = "$$tdevino" ]; then \
				continue; \
			fi; \
			${_MKSHMSG_INSTALL} $$destfile; \
			${_MKSHECHO} ${INSTALL_LINK} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$lastfile $$destfile; \
			${INSTALL_LINK} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$lastfile $$destfile; \
		else \
			lastdevino=$$devino; \
			lastfile=$$destfile; \
			cmp -s $$tzfile $$destfile >/dev/null 2>&1 && continue;\
			${_MKSHMSG_INSTALL} $$destfile; \
			${_MKSHECHO} ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$tzfile $$destfile; \
			${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$tzfile $$destfile; \
		fi; \
	done
	for f in ${TABDATA}; do \
		${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
			${TZDISTDIR}/$$f ${DESTDIR}${TZDIR}; \
	done
	${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
		${TZDISTDIR}/TZDATA_VERSION ${DESTDIR}${TZDIR}/TZDATA_VERSION
.else	# ${MKSHARE} == "no"
afterinstall:
.endif	# ${MKSHARE} == "no"

clean:
	-rm -rf ${TZBUILDDIR}

.include <bsd.prog.mk>
@


1.4
log
@
tzdata 2020b: the ancient systemv and pacificnew zone files are gone,
as is the yearistype.sh script (2020b zic, if/when that gets included
in NetBSD won't support it).,
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/06/16 15:17:56 agc Exp $
d55 1
a55 1
TABDATA=	iso3166.tab leapseconds $(ZONETABLES)
@


1.4.6.1
log
@Pull up following revision(s) (requested by kre in ticket #705):

	external/public-domain/tz/share/zoneinfo/Makefile: revision 1.5
	distrib/sets/lists/base/mi: revision 1.1345

Install /usr/share/zoneinfo/leap-seconds.list

Requested by Mallory Adams in tech-userlevel@@ a couple of weeks ago.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2020/10/08 13:44:36 kre Exp $
d55 1
a55 1
TABDATA=	iso3166.tab leapseconds leap-seconds.list $(ZONETABLES)
@


1.3
log
@Record the tzdata version in a separate file in the share/zoneinfo directory.

The file is kept up to date by the tzdata2netbsd script
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2014/08/08 09:17:03 apb Exp $
a48 3
# Since "." may not be in PATH...
YEARISTYPE=	"${HOST_SH} ${TZDISTDIR}/yearistype.sh"

d51 2
a52 2
YDATA=		$(PRIMARY_YDATA) pacificnew etcetera backward
NDATA=		systemv factory
d56 1
a56 1
DATA=		$(YDATA) $(NDATA) $(TABDATA) # yearistype.sh
d65 1
a65 1
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L /dev/null ${TDATA}
d72 1
a72 1
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L leapseconds ${TDATA}
d79 1
a79 1
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
d81 1
a81 1
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}
d100 1
a100 1
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -p ${POSIXRULES}
@


1.3.8.1
log
@Pull up the following, requested by kre in ticket #1631:

	external/public-domain/tz/dist/systemv          delete
	external/public-domain/tz/dist/pacificnew       delete
	external/public-domain/tz/dist/yearistype.sh    delete
	external/public-domain/tz/dist/Makefile         up to 1.1.1.29
	external/public-domain/tz/dist/NEWS             up to 1.1.1.32
	external/public-domain/tz/dist/README           up to 1.1.1.9
	external/public-domain/tz/dist/TZDATA_VERSION   up to 1.22
	external/public-domain/tz/dist/africa           up to 1.1.1.23
	external/public-domain/tz/dist/antarctica       up to 1.1.1.13
	external/public-domain/tz/dist/asia             up to 1.1.1.27
	external/public-domain/tz/dist/australasia      up to 1.1.1.20
	external/public-domain/tz/dist/backward         up to 1.1.1.11
	external/public-domain/tz/dist/backzone         up to 1.1.1.19
	external/public-domain/tz/dist/checktab.awk     up to 1.1.1.10
	external/public-domain/tz/dist/etcetera         up to 1.1.1.4
	external/public-domain/tz/dist/europe           up to 1.1.1.29
	external/public-domain/tz/dist/factory          up to 1.1.1.4
	external/public-domain/tz/dist/iso3166.tab      up to 1.1.1.6
	external/public-domain/tz/dist/leap-seconds.list up to 1.1.1.14
	external/public-domain/tz/dist/leapseconds      up to 1.1.1.16
	external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.11
	external/public-domain/tz/dist/northamerica     up to 1.1.1.26
	external/public-domain/tz/dist/southamerica     up to 1.1.1.17
	external/public-domain/tz/dist/theory.html      up to 1.1.1.11
	external/public-domain/tz/dist/version          up to 1.1.1.19
	external/public-domain/tz/dist/ziguard.awk      up to 1.1.1.5
	external/public-domain/tz/dist/zishrink.awk     up to 1.1.1.7
	external/public-domain/tz/dist/zone.tab         up to 1.1.1.18
	external/public-domain/tz/dist/zone1970.tab     up to 1.1.1.20
	external/public-domain/tz/dist/zoneinfo2tdf.pl  up to 1.1.1.4
	distrib/sets/lists/base/mi			(apply patch)
	doc/3RDPARTY					(apply patch)
	external/public-domain/tz/share/zoneinfo/Makefile	(apply patch)

Update tzdate from 2018i to 2020d
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/06/16 15:17:56 agc Exp $
d54 2
a55 2
YDATA=		$(PRIMARY_YDATA) etcetera backward
NDATA=		factory
@


1.3.18.1
log
@Pull up the following, requested by kre in #1108:

	external/public-domain/tz/dist/systemv          delete
	external/public-domain/tz/dist/pacificnew       delete
	external/public-domain/tz/dist/yearistype.sh    delete
	external/public-domain/tz/dist/Makefile         up to 1.1.1.27
	external/public-domain/tz/dist/NEWS             up to 1.1.1.30
	external/public-domain/tz/dist/README           up to 1.1.1.9
	external/public-domain/tz/dist/TZDATA_VERSION   up to 1.20
	external/public-domain/tz/dist/africa           up to 1.1.1.23
	external/public-domain/tz/dist/antarctica       up to 1.1.1.13
	external/public-domain/tz/dist/asia             up to 1.1.1.26
	external/public-domain/tz/dist/australasia      up to 1.1.1.19
	external/public-domain/tz/dist/backzone         up to 1.1.1.19
	external/public-domain/tz/dist/europe           up to 1.1.1.27
	external/public-domain/tz/dist/leap-seconds.list up to 1.1.1.14
	external/public-domain/tz/dist/leapseconds      up to 1.1.1.16
	external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.11
	external/public-domain/tz/dist/northamerica     up to 1.1.1.26
	external/public-domain/tz/dist/southamerica     up to 1.1.1.17
	external/public-domain/tz/dist/theory.html      up to 1.1.1.11
	external/public-domain/tz/dist/version          up to 1.1.1.17
	external/public-domain/tz/dist/zishrink.awk     up to 1.1.1.7
	external/public-domain/tz/dist/zoneinfo2tdf.pl  up to 1.1.1.4
	external/public-domain/tz/share/zoneinfo/Makefile	1.4
	distrib/sets/lists/base/mi			1.1266
	doc/3RDPARTY					1.1750 (patch)

Import tzdata2020b:
  Revised predictions for Morocco's changes starting in 2023.
  Canada's Yukon changes to -07 on 2020-11-01, not 2020-03-08.
  Macquarie Island has stayed in sync with Tasmania since 2011.
  Casey, Antarctica is at +08 in winter and +11 in summer.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/06/16 15:17:56 agc Exp $
d49 3
d54 2
a55 2
YDATA=		$(PRIMARY_YDATA) etcetera backward
NDATA=		factory
d59 1
a59 1
DATA=		$(YDATA) $(NDATA) $(TABDATA)
d68 1
a68 1
	    ${TOOL_ZIC} -d ${TZBUILDDIR} -L /dev/null ${TDATA}
d75 1
a75 1
	    ${TOOL_ZIC} -d ${TZBUILDDIR} -L leapseconds ${TDATA}
d82 1
a82 1
	    ${TOOL_ZIC} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
d84 1
a84 1
	    ${TOOL_ZIC} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}
d103 1
a103 1
	    ${TOOL_ZIC} -d ${TZBUILDDIR} -p ${POSIXRULES}
@


1.2
log
@Adapt to the new source location under src/public-domain/tz.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2014/08/08 09:06:41 apb Exp $
d141 2
@


1.2.10.1
log
@Sync with netbsd-5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.4.1 2016/12/13 07:29:24 snj Exp $
a140 2
	${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
		${TZDISTDIR}/TZDATA_VERSION ${DESTDIR}${TZDIR}/TZDATA_VERSION
@


1.2.4.1
log
@Pull up following revision(s) (requested by kre in ticket #1324):
	distrib/sets/lists/base/mi: 1.1125, 1.1128, 1.1132, 1.1137, 1.1139, 1.1140
	external/public-domain/tz/dist/CONTRIBUTING: up to 1.1.1.3
	external/public-domain/tz/dist/LICENSE: up to 1.1.1.2
	external/public-domain/tz/dist/Makefile: up to 1.1.1.16
	external/public-domain/tz/dist/NEWS: up to 1.1.1.16
	external/public-domain/tz/dist/README: up to 1.1.1.5
	external/public-domain/tz/dist/TZDATA_VERSION: up to 1.6
	external/public-domain/tz/dist/Theory: up to 1.1.1.9
	external/public-domain/tz/dist/africa: up to 1.1.1.9
	external/public-domain/tz/dist/antarctica: up to 1.1.1.7
	external/public-domain/tz/dist/asia: up to 1.1.1.15
	external/public-domain/tz/dist/australasia: up to 1.1.1.10
	external/public-domain/tz/dist/backward: up to 1.1.1.6
	external/public-domain/tz/dist/backzone: up to 1.1.1.10
	external/public-domain/tz/dist/etcetera: up to 1.1.1.2
	external/public-domain/tz/dist/europe: up to 1.1.1.16
	external/public-domain/tz/dist/factory: up to 1.1.1.2
	external/public-domain/tz/dist/iso3166.tab: up to 1.1.1.4
	external/public-domain/tz/dist/leap-seconds.list: up to 1.1.1.6
	external/public-domain/tz/dist/leapseconds: up to 1.1.1.7
	external/public-domain/tz/dist/northamerica: up to 1.1.1.14
	external/public-domain/tz/dist/southamerica: up to 1.1.1.10
	external/public-domain/tz/dist/version: up to 1.1.1.3
	external/public-domain/tz/dist/zone.tab: up to 1.1.1.10
	external/public-domain/tz/dist/zone1970.tab: up to 1.1.1.12
	external/public-domain/tz/share/zoneinfo/Makefile: up to 1.3
	external/public-domain/tz/tzdata2netbsd: up to 1.11
Update tzdata to 2016j.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/06/16 15:17:56 agc Exp $
a140 2
	${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
		${TZDISTDIR}/TZDATA_VERSION ${DESTDIR}${TZDIR}/TZDATA_VERSION
@


1.2.8.1
log
@Pull up following revision(s) (requested by kre in ticket #1324):
	distrib/sets/lists/base/mi: 1.1125, 1.1128, 1.1132, 1.1137, 1.1139, 1.1140
	external/public-domain/tz/dist/CONTRIBUTING: up to 1.1.1.3
	external/public-domain/tz/dist/LICENSE: up to 1.1.1.2
	external/public-domain/tz/dist/Makefile: up to 1.1.1.16
	external/public-domain/tz/dist/NEWS: up to 1.1.1.16
	external/public-domain/tz/dist/README: up to 1.1.1.5
	external/public-domain/tz/dist/TZDATA_VERSION: up to 1.6
	external/public-domain/tz/dist/Theory: up to 1.1.1.9
	external/public-domain/tz/dist/africa: up to 1.1.1.9
	external/public-domain/tz/dist/antarctica: up to 1.1.1.7
	external/public-domain/tz/dist/asia: up to 1.1.1.15
	external/public-domain/tz/dist/australasia: up to 1.1.1.10
	external/public-domain/tz/dist/backward: up to 1.1.1.6
	external/public-domain/tz/dist/backzone: up to 1.1.1.10
	external/public-domain/tz/dist/etcetera: up to 1.1.1.2
	external/public-domain/tz/dist/europe: up to 1.1.1.16
	external/public-domain/tz/dist/factory: up to 1.1.1.2
	external/public-domain/tz/dist/iso3166.tab: up to 1.1.1.4
	external/public-domain/tz/dist/leap-seconds.list: up to 1.1.1.6
	external/public-domain/tz/dist/leapseconds: up to 1.1.1.7
	external/public-domain/tz/dist/northamerica: up to 1.1.1.14
	external/public-domain/tz/dist/southamerica: up to 1.1.1.10
	external/public-domain/tz/dist/version: up to 1.1.1.3
	external/public-domain/tz/dist/zone.tab: up to 1.1.1.10
	external/public-domain/tz/dist/zone1970.tab: up to 1.1.1.12
	external/public-domain/tz/share/zoneinfo/Makefile: up to 1.3
	external/public-domain/tz/tzdata2netbsd: up to 1.11
Update tzdata to 2016j.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/06/16 15:17:56 agc Exp $
a140 2
	${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
		${TZDISTDIR}/TZDATA_VERSION ${DESTDIR}${TZDIR}/TZDATA_VERSION
@


1.2.6.1
log
@file Makefile was added on branch tls-maxphys on 2014-08-20 00:00:21 +0000
@
text
@d1 148
@


1.2.6.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 148
#	$NetBSD$

.include <bsd.own.mk>
.include "../../Makefile.inc"

.PATH: ${TZDISTDIR}

# If you want something other than Eastern United States time as a template
# for handling POSIX-style time zone environment variables,
# change the line below (after finding the zone you want in the
# time zone files, or adding it to a time zone file).
# (When a POSIX-style environment variable is handled, the rules in the
# template file are used to determine "spring forward" and "fall back" days and
# times; the environment variable itself specifies UT offsets of standard and
# summer time.)
# Alternately, if you discover you've got the wrong time zone, you can just
#	zic -p rightzone
# to correct things.
# Use the command
#	make zonenames
# to get a list of the values you can use for POSIXRULES.
# If you want POSIX compatibility, use "America/New_York".

POSIXRULES=	America/New_York

# "Compiled" time zone information is placed in the "TZDIR" directory
# (and subdirectories).
# Use an absolute path name for TZDIR unless you're just testing the software.
# Note: ${DESTDIR} is prepended to this for the actual copy.

TZDIR=	/usr/share/zoneinfo

# If you always want time values interpreted as "seconds since the epoch
# (not counting leap seconds)", use
#	REDO=		posix_only
# below.  If you always want right time values interpreted as "seconds since
# the epoch" (counting leap seconds)", use
#	REDO=		right_only
# below.  If you want both sets of data available, with leap seconds not
# counted normally, use
#	REDO=		posix_right
# below.  If you want both sets of data available, with leap seconds counted
# normally, use
#	REDO=		right_posix
# below.

REDO=		posix_only

# Since "." may not be in PATH...
YEARISTYPE=	"${HOST_SH} ${TZDISTDIR}/yearistype.sh"

PRIMARY_YDATA=	africa antarctica asia australasia \
		europe northamerica southamerica
YDATA=		$(PRIMARY_YDATA) pacificnew etcetera backward
NDATA=		systemv factory
TDATA=		$(YDATA) $(NDATA)
ZONETABLES=	zone1970.tab zone.tab
TABDATA=	iso3166.tab leapseconds $(ZONETABLES)
DATA=		$(YDATA) $(NDATA) $(TABDATA) # yearistype.sh

TZBUILDDIR=	${.OBJDIR}/builddir

.PHONY:	posix_only
posix_only: ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L /dev/null ${TDATA}

.PHONY:	right_only
right_only: leapseconds ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L leapseconds ${TDATA}

.PHONY:	other_two
other_two: leapseconds ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}

.PHONY:	posix_right
posix_right: posix_only other_two

.PHONY:	right_posix
right_posix: right_only other_two

.if ${MKUNPRIVED} == "no"
TOOL_PAX.unpriv=-pe
.else
TOOL_PAX.unpriv=
.endif

.if ${MKSHARE} != "no"
afterinstall: ${DATA} ${REDO} ${TABDATA}
	${_MKMSG_CREATE} ${POSIXRULES}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -p ${POSIXRULES}
	cd ${TZBUILDDIR} && \
	    find . -type f -print | xargs ${TOOL_STAT} -qf '%d,%i %N' | sort \
	| while read devino tzfile; do \
		destfile=${DESTDIR}${TZDIR}/$${tzfile#./}; \
		destdir=$$(dirname $${destfile}); \
		if [ ! -d "$$destdir" ]; then \
			${_MKSHMSG_INSTALL} $$destdir; \
			${_MKSHECHO} ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} \
			$$destdir; \
			${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} $$destdir; \
		fi; \
		if [ "$$devino" = "$$lastdevino" ]; then \
			if  ldevino=$$(${TOOL_STAT} -qf '%d %i' $$lastfile) && \
			    tdevino=$$(${TOOL_STAT} -qf '%d %i' $$destfile) && \
			    [ "$$ldevino" = "$$tdevino" ]; then \
				continue; \
			fi; \
			${_MKSHMSG_INSTALL} $$destfile; \
			${_MKSHECHO} ${INSTALL_LINK} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$lastfile $$destfile; \
			${INSTALL_LINK} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$lastfile $$destfile; \
		else \
			lastdevino=$$devino; \
			lastfile=$$destfile; \
			cmp -s $$tzfile $$destfile >/dev/null 2>&1 && continue;\
			${_MKSHMSG_INSTALL} $$destfile; \
			${_MKSHECHO} ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$tzfile $$destfile; \
			${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$tzfile $$destfile; \
		fi; \
	done
	for f in ${TABDATA}; do \
		${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
			${TZDISTDIR}/$$f ${DESTDIR}${TZDIR}; \
	done
.else	# ${MKSHARE} == "no"
afterinstall:
.endif	# ${MKSHARE} == "no"

clean:
	-rm -rf ${TZBUILDDIR}

.include <bsd.prog.mk>
@


1.2.2.1
log
@file Makefile was added on branch tls-earlyentropy on 2014-08-10 06:51:02 +0000
@
text
@d1 148
@


1.2.2.2
log
@Rebase.
@
text
@a0 148
#	$NetBSD: Makefile,v 1.2 2014/08/08 09:17:03 apb Exp $

.include <bsd.own.mk>
.include "../../Makefile.inc"

.PATH: ${TZDISTDIR}

# If you want something other than Eastern United States time as a template
# for handling POSIX-style time zone environment variables,
# change the line below (after finding the zone you want in the
# time zone files, or adding it to a time zone file).
# (When a POSIX-style environment variable is handled, the rules in the
# template file are used to determine "spring forward" and "fall back" days and
# times; the environment variable itself specifies UT offsets of standard and
# summer time.)
# Alternately, if you discover you've got the wrong time zone, you can just
#	zic -p rightzone
# to correct things.
# Use the command
#	make zonenames
# to get a list of the values you can use for POSIXRULES.
# If you want POSIX compatibility, use "America/New_York".

POSIXRULES=	America/New_York

# "Compiled" time zone information is placed in the "TZDIR" directory
# (and subdirectories).
# Use an absolute path name for TZDIR unless you're just testing the software.
# Note: ${DESTDIR} is prepended to this for the actual copy.

TZDIR=	/usr/share/zoneinfo

# If you always want time values interpreted as "seconds since the epoch
# (not counting leap seconds)", use
#	REDO=		posix_only
# below.  If you always want right time values interpreted as "seconds since
# the epoch" (counting leap seconds)", use
#	REDO=		right_only
# below.  If you want both sets of data available, with leap seconds not
# counted normally, use
#	REDO=		posix_right
# below.  If you want both sets of data available, with leap seconds counted
# normally, use
#	REDO=		right_posix
# below.

REDO=		posix_only

# Since "." may not be in PATH...
YEARISTYPE=	"${HOST_SH} ${TZDISTDIR}/yearistype.sh"

PRIMARY_YDATA=	africa antarctica asia australasia \
		europe northamerica southamerica
YDATA=		$(PRIMARY_YDATA) pacificnew etcetera backward
NDATA=		systemv factory
TDATA=		$(YDATA) $(NDATA)
ZONETABLES=	zone1970.tab zone.tab
TABDATA=	iso3166.tab leapseconds $(ZONETABLES)
DATA=		$(YDATA) $(NDATA) $(TABDATA) # yearistype.sh

TZBUILDDIR=	${.OBJDIR}/builddir

.PHONY:	posix_only
posix_only: ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L /dev/null ${TDATA}

.PHONY:	right_only
right_only: leapseconds ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L leapseconds ${TDATA}

.PHONY:	other_two
other_two: leapseconds ${TDATA}
	${_MKTARGET_CREATE}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}

.PHONY:	posix_right
posix_right: posix_only other_two

.PHONY:	right_posix
right_posix: right_only other_two

.if ${MKUNPRIVED} == "no"
TOOL_PAX.unpriv=-pe
.else
TOOL_PAX.unpriv=
.endif

.if ${MKSHARE} != "no"
afterinstall: ${DATA} ${REDO} ${TABDATA}
	${_MKMSG_CREATE} ${POSIXRULES}
	mkdir -p ${TZBUILDDIR}
	cd ${TZDISTDIR} && \
	    ${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -p ${POSIXRULES}
	cd ${TZBUILDDIR} && \
	    find . -type f -print | xargs ${TOOL_STAT} -qf '%d,%i %N' | sort \
	| while read devino tzfile; do \
		destfile=${DESTDIR}${TZDIR}/$${tzfile#./}; \
		destdir=$$(dirname $${destfile}); \
		if [ ! -d "$$destdir" ]; then \
			${_MKSHMSG_INSTALL} $$destdir; \
			${_MKSHECHO} ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} \
			$$destdir; \
			${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} $$destdir; \
		fi; \
		if [ "$$devino" = "$$lastdevino" ]; then \
			if  ldevino=$$(${TOOL_STAT} -qf '%d %i' $$lastfile) && \
			    tdevino=$$(${TOOL_STAT} -qf '%d %i' $$destfile) && \
			    [ "$$ldevino" = "$$tdevino" ]; then \
				continue; \
			fi; \
			${_MKSHMSG_INSTALL} $$destfile; \
			${_MKSHECHO} ${INSTALL_LINK} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$lastfile $$destfile; \
			${INSTALL_LINK} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$lastfile $$destfile; \
		else \
			lastdevino=$$devino; \
			lastfile=$$destfile; \
			cmp -s $$tzfile $$destfile >/dev/null 2>&1 && continue;\
			${_MKSHMSG_INSTALL} $$destfile; \
			${_MKSHECHO} ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$tzfile $$destfile; \
			${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
			    -m ${NONBINMODE} $$tzfile $$destfile; \
		fi; \
	done
	for f in ${TABDATA}; do \
		${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
			${TZDISTDIR}/$$f ${DESTDIR}${TZDIR}; \
	done
.else	# ${MKSHARE} == "no"
afterinstall:
.endif	# ${MKSHARE} == "no"

clean:
	-rm -rf ${TZBUILDDIR}

.include <bsd.prog.mk>
@


1.1
log
@Copy src/share/zoneinfo/Makefile (revision 1.47) to
src/external/public-domain/tz/share/zoneinfo/Makefile.

This is a verbatim copy, as part of moving the zoneinfo sources in the
NetBSD tree.  It will need to be edited before it works.
@
text
@d1 1
a1 1
#	$NetBSD$
d4 3
d50 1
a50 1
YEARISTYPE=	"${HOST_SH} ${.CURDIR}/yearistype.sh"
d67 1
a67 1
	cd ${.CURDIR} && \
d74 1
a74 1
	cd ${.CURDIR} && \
d81 1
a81 1
	cd ${.CURDIR} && \
d83 1
a83 1
	cd ${.CURDIR} && \
d102 1
a102 1
	cd ${.CURDIR} && \
d139 1
a139 1
			${.CURDIR}/$$f ${DESTDIR}${TZDIR}; \
@

