2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2008-10-20 22:39:25 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2008-10-20 22:39:25 +02:00
|
|
|
{
|
2022-01-28 10:22:55 +01:00
|
|
|
apps="hwclock date ntpdate ntpd ntp-keygen ntp-wait ntpdc ntpq \
|
2022-01-28 10:57:12 +01:00
|
|
|
ntptime ntptrace tzselect"
|
2022-01-28 10:22:55 +01:00
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
|
|
|
done
|
2013-05-08 16:56:34 +02:00
|
|
|
add_file "/etc/ntp.conf"
|
2022-02-01 12:37:39 +01:00
|
|
|
add_full_dir "/usr/share/zoneinfo"
|
2013-05-08 08:29:30 +02:00
|
|
|
add_dir "/var/lib/ntp"
|
2013-08-28 09:12:43 +02:00
|
|
|
chown ntp:root "$BUILDROOT/var/lib/ntp"
|
2021-09-21 11:13:49 +02:00
|
|
|
add_file "/usr/bin/archboot-tz.sh" "/usr/bin/tz"
|
2009-05-08 08:05:45 +02:00
|
|
|
# fix licenses
|
2011-05-09 14:28:33 +02:00
|
|
|
add_file "/usr/share/licenses/ntp/LICENSE"
|
2008-10-20 22:39:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2021-10-04 11:13:50 +02:00
|
|
|
This hook includes the timezone data on an archboot image.
|
2008-10-20 22:39:25 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|