CVS commit: src/external/public-domain/tz/share/zoneinfo

2024-06-01 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Jun  2 00:21:12 UTC 2024

Modified Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
Install /usr/share/zoneinfo/leap-seconds.list

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

XXX pullup -10


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/public-domain/tz/share/zoneinfo/Makefile
diff -u src/external/public-domain/tz/share/zoneinfo/Makefile:1.4 src/external/public-domain/tz/share/zoneinfo/Makefile:1.5
--- src/external/public-domain/tz/share/zoneinfo/Makefile:1.4	Thu Oct  8 13:44:36 2020
+++ src/external/public-domain/tz/share/zoneinfo/Makefile	Sun Jun  2 00:21:12 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2020/10/08 13:44:36 kre Exp $
+#	$NetBSD: Makefile,v 1.5 2024/06/02 00:21:12 kre Exp $
 
 .include 
 .include "../../Makefile.inc"
@@ -52,7 +52,7 @@ YDATA=		$(PRIMARY_YDATA) etcetera backwa
 NDATA=		factory
 TDATA=		$(YDATA) $(NDATA)
 ZONETABLES=	zone1970.tab zone.tab
-TABDATA=	iso3166.tab leapseconds $(ZONETABLES)
+TABDATA=	iso3166.tab leapseconds leap-seconds.list $(ZONETABLES)
 DATA=		$(YDATA) $(NDATA) $(TABDATA)
 
 TZBUILDDIR=	${.OBJDIR}/builddir



CVS commit: src/external/public-domain/tz/share/zoneinfo

2024-06-01 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Jun  2 00:21:12 UTC 2024

Modified Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
Install /usr/share/zoneinfo/leap-seconds.list

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

XXX pullup -10


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/public-domain/tz/share/zoneinfo

2020-10-08 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Oct  8 13:44:36 UTC 2020

Modified Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
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).,


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/public-domain/tz/share/zoneinfo

2020-10-08 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Oct  8 13:44:36 UTC 2020

Modified Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
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).,


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/public-domain/tz/share/zoneinfo/Makefile
diff -u src/external/public-domain/tz/share/zoneinfo/Makefile:1.3 src/external/public-domain/tz/share/zoneinfo/Makefile:1.4
--- src/external/public-domain/tz/share/zoneinfo/Makefile:1.3	Thu Jun 16 15:17:56 2016
+++ src/external/public-domain/tz/share/zoneinfo/Makefile	Thu Oct  8 13:44:36 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2016/06/16 15:17:56 agc Exp $
+#	$NetBSD: Makefile,v 1.4 2020/10/08 13:44:36 kre Exp $
 
 .include 
 .include "../../Makefile.inc"
@@ -46,17 +46,14 @@ TZDIR=	/usr/share/zoneinfo
 
 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
+YDATA=		$(PRIMARY_YDATA) etcetera backward
+NDATA=		factory
 TDATA=		$(YDATA) $(NDATA)
 ZONETABLES=	zone1970.tab zone.tab
 TABDATA=	iso3166.tab leapseconds $(ZONETABLES)
-DATA=		$(YDATA) $(NDATA) $(TABDATA) # yearistype.sh
+DATA=		$(YDATA) $(NDATA) $(TABDATA)
 
 TZBUILDDIR=	${.OBJDIR}/builddir
 
@@ -65,23 +62,23 @@ posix_only: ${TDATA}
 	${_MKTARGET_CREATE}
 	mkdir -p ${TZBUILDDIR}
 	cd ${TZDISTDIR} && \
-	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L /dev/null ${TDATA}
+	${TOOL_ZIC} -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}
+	${TOOL_ZIC} -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}
+	${TOOL_ZIC} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
 	cd ${TZDISTDIR} && \
-	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}
+	${TOOL_ZIC} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}
 
 .PHONY:	posix_right
 posix_right: posix_only other_two
@@ -100,7 +97,7 @@ afterinstall: ${DATA} ${REDO} ${TABDATA}
 	${_MKMSG_CREATE} ${POSIXRULES}
 	mkdir -p ${TZBUILDDIR}
 	cd ${TZDISTDIR} && \
-	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -p ${POSIXRULES}
+	${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 \



CVS commit: src/external/public-domain/tz/share/zoneinfo

2014-08-08 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Aug  8 09:06:41 UTC 2014

Added Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/public-domain/tz/share/zoneinfo/Makefile
diff -u /dev/null src/external/public-domain/tz/share/zoneinfo/Makefile:1.1
--- /dev/null	Fri Aug  8 09:06:41 2014
+++ src/external/public-domain/tz/share/zoneinfo/Makefile	Fri Aug  8 09:06:41 2014
@@ -0,0 +1,145 @@
+#	$NetBSD: Makefile,v 1.1 2014/08/08 09:06:41 apb Exp $
+
+.include bsd.own.mk
+
+# 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} ${.CURDIR}/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 ${.CURDIR}  \
+	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L /dev/null ${TDATA}
+
+.PHONY:	right_only
+right_only: leapseconds ${TDATA}
+	${_MKTARGET_CREATE}
+	mkdir -p ${TZBUILDDIR}
+	cd ${.CURDIR}  \
+	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L leapseconds ${TDATA}
+
+.PHONY:	other_two
+other_two: leapseconds ${TDATA}
+	${_MKTARGET_CREATE}
+	mkdir -p ${TZBUILDDIR}
+	cd ${.CURDIR}  \
+	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
+	cd ${.CURDIR}  \
+	${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 ${.CURDIR}  \
+	${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; \
+			

CVS commit: src/external/public-domain/tz/share/zoneinfo

2014-08-08 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Aug  8 09:17:03 UTC 2014

Modified Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
Adapt to the new source location under src/public-domain/tz.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/public-domain/tz/share/zoneinfo/Makefile
diff -u src/external/public-domain/tz/share/zoneinfo/Makefile:1.1 src/external/public-domain/tz/share/zoneinfo/Makefile:1.2
--- src/external/public-domain/tz/share/zoneinfo/Makefile:1.1	Fri Aug  8 09:06:41 2014
+++ src/external/public-domain/tz/share/zoneinfo/Makefile	Fri Aug  8 09:17:03 2014
@@ -1,6 +1,9 @@
-#	$NetBSD: Makefile,v 1.1 2014/08/08 09:06:41 apb Exp $
+#	$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,
@@ -44,7 +47,7 @@ TZDIR=	/usr/share/zoneinfo
 REDO=		posix_only
 
 # Since . may not be in PATH...
-YEARISTYPE=	${HOST_SH} ${.CURDIR}/yearistype.sh
+YEARISTYPE=	${HOST_SH} ${TZDISTDIR}/yearistype.sh
 
 PRIMARY_YDATA=	africa antarctica asia australasia \
 		europe northamerica southamerica
@@ -61,23 +64,23 @@ TZBUILDDIR=	${.OBJDIR}/builddir
 posix_only: ${TDATA}
 	${_MKTARGET_CREATE}
 	mkdir -p ${TZBUILDDIR}
-	cd ${.CURDIR}  \
+	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 ${.CURDIR}  \
+	cd ${TZDISTDIR}  \
 	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -L leapseconds ${TDATA}
 
 .PHONY:	other_two
 other_two: leapseconds ${TDATA}
 	${_MKTARGET_CREATE}
 	mkdir -p ${TZBUILDDIR}
-	cd ${.CURDIR}  \
+	cd ${TZDISTDIR}  \
 	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/posix -L /dev/null ${TDATA}
-	cd ${.CURDIR}  \
+	cd ${TZDISTDIR}  \
 	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR}/right -L leapseconds ${TDATA}
 
 .PHONY:	posix_right
@@ -96,7 +99,7 @@ TOOL_PAX.unpriv=
 afterinstall: ${DATA} ${REDO} ${TABDATA}
 	${_MKMSG_CREATE} ${POSIXRULES}
 	mkdir -p ${TZBUILDDIR}
-	cd ${.CURDIR}  \
+	cd ${TZDISTDIR}  \
 	${TOOL_ZIC} -y ${YEARISTYPE} -d ${TZBUILDDIR} -p ${POSIXRULES}
 	cd ${TZBUILDDIR}  \
 	find . -type f -print | xargs ${TOOL_STAT} -qf '%d,%i %N' | sort \
@@ -133,7 +136,7 @@ afterinstall: ${DATA} ${REDO} ${TABDATA}
 	done
 	for f in ${TABDATA}; do \
 		${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
-			${.CURDIR}/$$f ${DESTDIR}${TZDIR}; \
+			${TZDISTDIR}/$$f ${DESTDIR}${TZDIR}; \
 	done
 .else	# ${MKSHARE} == no
 afterinstall:



CVS commit: src/external/public-domain/tz/share/zoneinfo

2014-08-08 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Aug  8 09:06:41 UTC 2014

Added Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/public-domain/tz/share/zoneinfo

2014-08-08 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Aug  8 09:17:03 UTC 2014

Modified Files:
src/external/public-domain/tz/share/zoneinfo: Makefile

Log Message:
Adapt to the new source location under src/public-domain/tz.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/public-domain/tz/share/zoneinfo/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.