From ce3edc3a22f1ca85496811139b6488e565b45cb8 Mon Sep 17 00:00:00 2001
From: Ruslan Ermilov <ru@FreeBSD.org>
Date: Tue, 11 Sep 2001 14:27:11 +0000
Subject: [PATCH] Don't create missing directories; that's the duty of
 mtree(8).

Don't depend on chown(8) in ${INSTALLTMP}; -u/-g have been
supported since at least RELENG_4_BP.
---
 share/zoneinfo/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index 670f4fef32a2..6ce6503d10ce 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -30,12 +30,10 @@ yearistype: yearistype.sh
 
 beforeinstall:
 	umask 022; cd ${.CURDIR}; \
-	zic -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
+	zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
+	    -u ${BINOWN} -g ${BINGRP} \
 	    ${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
 	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
 	    ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
 
-afterinstall:
-	chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/share/zoneinfo/*
-
 .include <bsd.prog.mk>