Serge Bazanski | 8ff4b7c | 2021-08-17 19:21:18 +0200 | [diff] [blame] | 1 | # 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 | |
| 17 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 18 | |
| 19 | def 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, |
Leopold Schabel | 5c829a4 | 2023-07-14 17:41:42 +0200 | [diff] [blame] | 25 | sha256 = "ed76f2d3f9347ac6221a91ad4bd553dd0565ac188cd7490d0801d08f7171164c", |
Serge Bazanski | 8ff4b7c | 2021-08-17 19:21:18 +0200 | [diff] [blame] | 26 | build_file = "@//third_party/chrony:chrony.bzl", |
| 27 | strip_prefix = "chrony-" + version, |
Lorenz Brun | e306d78 | 2021-09-01 13:01:06 +0200 | [diff] [blame] | 28 | patch_args = ["-p1"], |
| 29 | patches = [ |
| 30 | "//third_party/chrony/patches:disable_defaults.patch", |
| 31 | "//third_party/chrony/patches:support_fixed_uids.patch", |
| 32 | ], |
Leopold Schabel | 5c829a4 | 2023-07-14 17:41:42 +0200 | [diff] [blame] | 33 | urls = ["https://download.tuxfamily.org/chrony/chrony-%s.tar.gz" % version], |
Serge Bazanski | 8ff4b7c | 2021-08-17 19:21:18 +0200 | [diff] [blame] | 34 | ) |