#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>

build ()
{
    map add_binary hwclock ntpdate ntpd ntp-keygen ntp-wait ntpdc ntpq \
          ntptime ntptrace tzselect
    add_file "/etc/ntp.conf"
    add_full_dir "/usr/share/zoneinfo"
    add_dir "/var/lib/ntp"
    chown ntp:root "$BUILDROOT/var/lib/ntp"
    add_file "/usr/bin/archboot-tz.sh" "/usr/bin/tz"
    # fix licenses
    add_file "/usr/share/licenses/ntp/LICENSE"
}

help ()
{
cat<<HELPEOF
  This hook includes the timezone data on an archboot image.
HELPEOF
}
