mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 17:24:23 +01:00
c15219878a
as the previous one, and better integrated with the build scheme. Define OLDTIMEZONES to get backward-compatibility links added. Define LEAPSECONDS if you want leap-second support.
40 lines
777 B
Makefile
40 lines
777 B
Makefile
# $Id$
|
|
|
|
NOBIN=
|
|
CLEANFILES+= yearistype
|
|
|
|
.if defined(LEAPSECONDS)
|
|
LEAPFILE= leapseconds
|
|
.else
|
|
LEAPFILE= /dev/null
|
|
.endif
|
|
|
|
TZFILES= africa antarctica asia australasia etcetera europe \
|
|
factory northamerica pacificnew southamerica systemv
|
|
POSIXRULES= America/New_York
|
|
|
|
.if defined(OLDTIMEZONES)
|
|
TZFILES+= backward
|
|
.endif
|
|
|
|
.if exists(${.CURDIR}/obj/.)
|
|
YEARISTYPE=${.CURDIR}/obj/yearistype
|
|
.else
|
|
YEARISTYPE=${.CURDIR}/yearistype
|
|
.endif
|
|
|
|
all: yearistype
|
|
depend:
|
|
|
|
yearistype: yearistype.sh
|
|
cp ${.CURDIR}/yearistype.sh yearistype
|
|
chmod +x yearistype
|
|
|
|
afterinstall: yearistype
|
|
umask 022; cd ${.CURDIR}; \
|
|
zic -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
|
|
-L ${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
|
|
chown -R bin.bin ${DESTDIR}/usr/share/zoneinfo/*
|
|
|
|
.include <bsd.prog.mk>
|