1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/misc/zoneinfo/pkg-install
Mathieu Arnold 961c1a655a Update to 2016f. [1]
While there, clean things up a bit and really do staging.

PR:		211260 [1]
Submitted by:	devel stasyan com
MFH:		2016Q3
With hat:	portmgr
Sponsored by:	Absolight
2016-07-21 10:00:57 +00:00

15 lines
337 B
Bash

#!/bin/sh
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
if [ -f /var/db/zoneinfo -a -O /var/db/zoneinfo -a -G /var/db/zoneinfo ]; then
if [ -f /usr/share/zoneinfo/$(cat /var/db/zoneinfo) ]; then
tzsetup -r
echo "/etc/localtime is updated."
fi
else
echo "Now run tzsetup(8) again to install the right file to /etc/localtime."
fi