From 5fd83771641d15c418f747bd343ba6738d3875f7 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 9 May 2021 14:20:58 -0400 Subject: Import macOS userland adv_cmds-176 basic_cmds-55 bootstrap_cmds-116.100.1 developer_cmds-66 diskdev_cmds-667.40.1 doc_cmds-53.60.1 file_cmds-321.40.3 mail_cmds-35 misc_cmds-34 network_cmds-606.40.1 patch_cmds-17 remote_cmds-63 shell_cmds-216.60.1 system_cmds-880.60.2 text_cmds-106 --- system_cmds/zic.tproj/Makefile.zoneinfo.dist | 90 ++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 system_cmds/zic.tproj/Makefile.zoneinfo.dist (limited to 'system_cmds/zic.tproj/Makefile.zoneinfo.dist') diff --git a/system_cmds/zic.tproj/Makefile.zoneinfo.dist b/system_cmds/zic.tproj/Makefile.zoneinfo.dist new file mode 100644 index 0000000..1e21e89 --- /dev/null +++ b/system_cmds/zic.tproj/Makefile.zoneinfo.dist @@ -0,0 +1,90 @@ +# $NetBSD: Makefile,v 1.14 1995/04/22 12:10:17 cgd Exp $ + +# Change the line below for your time zone (after finding the zone you want in +# the time zone files, or adding it to a time zone file). +# Alternately, if you discover you've got the wrong time zone, you can just +# zic -l rightzone + +################################################################################ +# NOTE: THIS MAKEFILE IS FOR REFERENCE ONLY AND IS NOT ACTUALLY EXECUTED AT +# BUILD TIME +################################################################################ + +# This line has been moved to /usr/src/etc/Makefile +LOCALTIME= US/Pacific + +# 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). +# Alternately, if you discover you've got the wrong time zone, you can just +# zic -p rightzone + +POSIXRULES= US/Pacific + +# Use an absolute path name for TZDIR unless you're just testing the software. + +TZDIR= ${DESTDIR}/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= ${.CURDIR}/datfiles/yearistype.sh +YEARISTYPECOPY= ${.OBJDIR}/yearistypecopy + +YDATA= africa antarctica asia australasia \ + europe northamerica southamerica pacificnew etcetera factory \ + backward +NDATA= systemv +TDATA= $(YDATA) $(NDATA) +DATA= $(YDATA) $(NDATA) leapseconds # yearistype.sh +USNO= usno1988 usno1989 + +ZIC=zic + +${YEARISTYPECOPY}: + cp ${YEARISTYPE} yearistypecopy + chmod u+x yearistypecopy + +posix_only: ${TDATA} ${YEARISTYPECOPY} + (cd ${.CURDIR}/datfiles; \ + ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L /dev/null ${TDATA}) + +right_only: leapseconds ${TDATA} ${YEARISTYPECOPY} + (cd ${.CURDIR}/datfiles; \ + ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L leapseconds ${TDATA}) + +other_two: leapseconds ${TDATA} ${YEARISTYPECOPY} + (cd ${.CURDIR}/datfiles; \ + ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/posix -L /dev/null ${TDATA}) + (cd ${.CURDIR}/datfiles; \ + ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/right -L leapseconds ${TDATA}) + +posix_right: posix_only other_two + +right_posix: right_only other_two + +realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY} + (cd ${.CURDIR}/datfiles; \ + ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES}) + chown -R ${BINOWN}:${BINGRP} ${TZDIR} + find ${TZDIR} -type f | xargs chmod a=r + +CLEANFILES+= yearistypecopy + +.PATH: ${.CURDIR}/datfiles +.include -- cgit v1.2.3-56-ge451