From b8fe2370f1ef96834ab0be9595fb1935cef96b1c Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Wed, 21 Oct 2009 21:04:46 +0000 Subject: If /var/db/zoneinfo exist, then reinstall the currently zoneinfo. If not, urge the user to run tzsetup(8) --- misc/zoneinfo/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'misc/zoneinfo/Makefile') diff --git a/misc/zoneinfo/Makefile b/misc/zoneinfo/Makefile index c32b35b16fd6..42fbfdde83b0 100644 --- a/misc/zoneinfo/Makefile +++ b/misc/zoneinfo/Makefile @@ -58,7 +58,13 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/zone.tab ${PREFIX}/share/zoneinfo post-install: - @${CAT} ${PKGMESSAGE} + if [ -f /var/db/zoneinfo -a -O /var/db/zoneinfo -a \ + -G /var/db/zoneinfo -a \ + -f /usr/share/zoneinfo/$$(cat /var/db/zoneinfo) ]; then \ + tzsetup -r; \ + else \ + ${CAT} ${PKGMESSAGE}; \ + fi test-patches: .for M in ${MISSING} -- cgit v1.2.3