Add a preventative rm of /etc/localtime in the install rule just in

case it's a link (in which case the subsequent install will fall over).
Submitted by:	jkh
This commit is contained in:
Jordan K. Hubbard 1994-08-11 00:54:30 +00:00
parent bfc54eff9f
commit 0419c5b941
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2020

View File

@ -130,6 +130,7 @@ right_posix: right_only other_two
install: maninstall ${DATA} ${REDO}
(cd ${.CURDIR}/datfiles && ../obj/zic -d ${TZDIR} -p ${POSIXRULES})
rm -f ${DESTDIR}/etc/localtime
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
chown -R ${BINOWN}.${BINGRP} ${TZDIR}