1 # $FreeBSD: src/share/zoneinfo/Makefile,v 1.16.2.3 2002/08/07 16:31:52 ru Exp $
3 CLEANFILES
+= yearistype
5 .if defined
(LEAPSECONDS
)
6 LEAPFILE
= -L leapseconds
11 ZIC_UG_FLAGS
= -u
${BINOWN} -g
${BINGRP}
13 TZFILES
= africa antarctica asia australasia etcetera europe \
14 northamerica southamerica
16 POSIXRULES
= America
/New_York
18 .if exists
(${.OBJDIR
}/yearistype
)
19 YEARISTYPE
= ${.OBJDIR
}/yearistype
21 YEARISTYPE
= ${.CURDIR
}/yearistype
24 FILES
= iso3166.tab zone.tab
25 FILESDIR_iso3166.tab
= ${SHAREDIR}/misc
26 FILESNAME_iso3166.tab
= iso3166
27 FILESDIR_zone.tab
= ${SHAREDIR}/zoneinfo
31 yearistype
: yearistype.sh
32 cp
${.ALLSRC
} ${.TARGET
}
36 umask
022; cd
${.CURDIR
}; \
37 zic
-D
-d
${DESTDIR}/usr
/share
/zoneinfo
-p
${POSIXRULES} \
38 ${ZIC_UG_FLAGS} ${LEAPFILE} -y
${YEARISTYPE} ${TZFILES}
42 # If the file /var/db/zoneinfo exists, and it is owned by root:wheel,
43 # and the contents of it exists in /usr/share/zoneinfo, then reinstall
46 @
-if
[ -f
${DESTDIR}/var
/db
/zoneinfo
-a
-O
${DESTDIR}/var
/db
/zoneinfo \
47 -a
-G
${DESTDIR}/var
/db
/zoneinfo
]; then \
48 zf
=$$(cat
${DESTDIR}/var
/db
/zoneinfo
); \
49 if
[ -f
${DESTDIR}/usr
/share
/zoneinfo
/$${zf} ]; then \
50 if
[ ! -z
"${DESTDIR}" ]; then \
51 optC
="-C ${DESTDIR}"; \
53 echo
"Updating /etc/localtime"; \
54 tzsetup
$${optC} -r
; \
57 echo
"Run tzsetup(8) manually to update /etc/localtime."; \
60 .
include <bsd.prog.mk
>