blob: 9bd8eaafcd217651213eaa74bc3d7e5d2b388952 [file] [log] [blame]
# chrony NTP daemon
#
# From the chrony website (https://chrony.tuxfamily.org/):
#
# chrony is a versatile implementation of the Network Time
# Protocol (NTP). It can synchronise the system clock with NTP servers,
# reference clocks (e.g. GPS receiver), and manual input using
# wristwatch and keyboard. It can also operate as an NTPv4 (RFC 5905)
# server and peer to provide a time service to other computers in the
# network.
licenses(["restricted"])
chrony_version_dir = "chrony_3_3"
package_group(
name = "internal",
packages = [
"//third_party/chrony",
"//third_party/chrony/" + chrony_version_dir,
],
)
package(default_visibility = ["//third_party/chrony:internal"])
exports_files(["LICENSE"])
genrule(
name = "chrony_daemon",
srcs = ["//third_party/chrony/" + chrony_version_dir + ":chronyd"],
outs = ["chronyd"],
cmd = "cp $< $@",
visibility = ["//visibility:public"],
)
genrule(
name = "chrony_client",
srcs = ["//third_party/chrony/" + chrony_version_dir + ":chronyc"],
outs = ["chronyc"],
cmd = "cp $< $@",
visibility = ["//visibility:public"],
)