blob: 64b4f47c6bb1c0a836b59ab9a7ad1b37829a233b [file] [log] [blame]
Serge Bazanski8ff4b7c2021-08-17 19:21:18 +02001# Copyright 2020 The Monogon Project Authors.
2#
3# SPDX-License-Identifier: Apache-2.0
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
18
19def chrony_external(name):
20 # ONCHANGE(//third_party/chrony:chrony.bzl): version needs to be kept in sync
21 version = "4.1"
22
23 http_archive(
24 name = name,
25 sha256 = "61a1b0879432695735a1e2a14e5d1ae499d3be15099c767501fbe695f46861da",
26 build_file = "@//third_party/chrony:chrony.bzl",
27 strip_prefix = "chrony-" + version,
Lorenz Brune306d782021-09-01 13:01:06 +020028 patch_args = ["-p1"],
29 patches = [
30 "//third_party/chrony/patches:disable_defaults.patch",
31 "//third_party/chrony/patches:support_fixed_uids.patch",
32 ],
Serge Bazanski8ff4b7c2021-08-17 19:21:18 +020033 urls = ["https://git.tuxfamily.org/chrony/chrony.git/snapshot/chrony-%s.tar.gz" % version],
34 )