libfetch: don't include fragments in HTTP requests
[dragonfly.git] / share / zoneinfo / Makefile
blob689756a31d3f9fa3c24acb1f98cfcb72cc2189d2
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
7 .else
8 LEAPFILE=
9 .endif
11 ZIC_UG_FLAGS= -u ${BINOWN} -g ${BINGRP}
13 TZFILES= africa antarctica asia australasia etcetera europe \
14 northamerica southamerica
15 TZFILES+= backward
16 POSIXRULES= America/New_York
18 .if exists(${.OBJDIR}/yearistype)
19 YEARISTYPE= ${.OBJDIR}/yearistype
20 .else
21 YEARISTYPE= ${.CURDIR}/yearistype
22 .endif
24 FILES= iso3166.tab zone.tab
25 FILESDIR_iso3166.tab= ${SHAREDIR}/misc
26 FILESNAME_iso3166.tab= iso3166
27 FILESDIR_zone.tab= ${SHAREDIR}/zoneinfo
29 all: yearistype
31 yearistype: yearistype.sh
32 cp ${.ALLSRC} ${.TARGET}
33 chmod +x ${.TARGET}
35 beforeinstall:
36 umask 022; cd ${.CURDIR}; \
37 zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
38 ${ZIC_UG_FLAGS} ${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
40 afterinstall:
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
44 # it.
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}"; \
52 fi; \
53 echo "Updating /etc/localtime"; \
54 tzsetup $${optC} -r; \
55 fi; \
56 else \
57 echo "Run tzsetup(8) manually to update /etc/localtime."; \
60 .include <bsd.prog.mk>