|
1 | 1 | class Freediameter < Formula |
2 | 2 | desc "Open source Diameter (Authentication) protocol implementation" |
3 | 3 | homepage "https://github.com/freeDiameter/freeDiameter" |
| 4 | + url "https://github.com/freeDiameter/freeDiameter/archive/refs/tags/1.6.0.tar.gz" |
| 5 | + sha256 "0bb4ed33ada0b57ab681d86ae3fe0e3a9ce95892f492c401cbb68a87ec1d47bc" |
4 | 6 | license "BSD-3-Clause" |
5 | 7 | head "https://github.com/freeDiameter/freeDiameter.git", branch: "master" |
6 | | - |
7 | | - stable do |
8 | | - url "https://github.com/freeDiameter/freeDiameter/archive/refs/tags/1.5.0.tar.gz" |
9 | | - sha256 "cc4ceafd9d0d4a6a5e3aa02bf557906fe755df9ec14d16c4fcd5dab6930296aa" |
10 | | - |
11 | | - # Backport support for `libidn2`. Remove in the next release. |
12 | | - patch do |
13 | | - url "https://github.com/freeDiameter/freeDiameter/commit/da679d27c546e11f6e41ad8882699f726e58a9f7.patch?full_index=1" |
14 | | - sha256 "123fe68ede4713b8e78efa49bfe9db592291cc3c821bbdc58f930a1f291423b1" |
15 | | - end |
16 | | - |
17 | | - # Bump minimum required cmake version to 3.10. Remove in the next release. |
18 | | - # Backport of: https://github.com/freeDiameter/freeDiameter/commit/45106adf3bf4192b274ef6c5536200a0e19c84f2 |
19 | | - patch :DATA |
20 | | - end |
21 | | - |
22 | 8 | livecheck do |
23 | 9 | url :stable |
24 | 10 | regex(/^v?(\d+(?:\.\d+)+)$/i) |
25 | 11 | end |
26 | 12 |
|
27 | | - no_autobump! because: :requires_manual_review |
28 | | - |
29 | 13 | bottle do |
30 | | - rebuild 2 |
31 | | - sha256 arm64_tahoe: "5eafa2b1cff32588e446f38812e5d28bdbbdc3efca9c5d04d3d8c75aadc63c1a" |
32 | | - sha256 arm64_sequoia: "3a0fdc3ba68de137c1c7565a2bf1952cf239c35717276e185ef2c57d8f042a0f" |
33 | | - sha256 arm64_sonoma: "77cce28c5fae584b97aefe1d124bf14da292e5f40f62a4bfccb4b545feecf9f8" |
34 | | - sha256 arm64_ventura: "a0a2bb922fe5286a90703eaf346ab465702d3bb43040b11f4c49f2b4296ec768" |
35 | | - sha256 sonoma: "40a30f89b5587df10f03275e37b9d17c4ca3a59098f2efddf5e521b9a71276b6" |
36 | | - sha256 ventura: "3b25d64d36dabbcdd24ca3d2c02bf05f8bff8ddcdb764f58d01c3fed25a50e57" |
37 | | - sha256 cellar: :any_skip_relocation, arm64_linux: "7f092135225eda295f1bd57f85b49c8b4cdcdf9241878b0d7c9971f28eb5a570" |
38 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "224a65066b5831f9a7c9d07c2f4439075fe60f8e287c3a4e19fbfc163124e5b7" |
| 14 | + sha256 arm64_tahoe: "d88969b28d22359bcee5f87c000240bc2703bdbff5af20f8b47c3bfafaa8925b" |
| 15 | + sha256 arm64_sequoia: "0dcb6c8ca66c2195ef3a78ab62b0e32b6303c7ea4bb31c3b5244a2c22bc643a9" |
| 16 | + sha256 arm64_sonoma: "f6407fa06f58db5b23da3d1a888a96bc68d2231cf35bd5dd8bf30129a6fcdd1e" |
| 17 | + sha256 sonoma: "b9afd84d7c426896a62987a0ad22e6504f5b4fda0ab85b2555bdce78e7c0d314" |
| 18 | + sha256 cellar: :any_skip_relocation, arm64_linux: "2de09eb57cad6101295a235df9a462d905f2a95a820ea2e80d77b8f81ff6deb8" |
| 19 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "9f337536d0f52776b2c4daa5968b309d169f572a8132b14cfe263cf10ed79c8e" |
39 | 20 | end |
40 | 21 |
|
41 | 22 | depends_on "cmake" => :build |
@@ -90,54 +71,3 @@ def caveats |
90 | 71 | assert_match version.to_s, shell_output("#{bin}/freeDiameterd --version") |
91 | 72 | end |
92 | 73 | end |
93 | | - |
94 | | -__END__ |
95 | | ---- a/CMakeLists.txt |
96 | | -+++ b/CMakeLists.txt |
97 | | -@@ -1,5 +1,8 @@ |
98 | | - # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org) |
99 | | - |
100 | | -+# CMake version |
101 | | -+CMAKE_MINIMUM_REQUIRED(VERSION 3.10) |
102 | | -+ |
103 | | - # Name of the project |
104 | | - PROJECT("freeDiameter") |
105 | | - |
106 | | -@@ -19,9 +22,6 @@ SET(FD_PROJECT_VERSION_API 6) |
107 | | - # The test framework, using CTest and CDash. |
108 | | - INCLUDE(CTest) |
109 | | - |
110 | | --# CMake version |
111 | | --CMAKE_MINIMUM_REQUIRED(VERSION 2.6) |
112 | | -- |
113 | | - # Location of additional CMake modules |
114 | | - SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") |
115 | | - |
116 | | ---- a/libfdcore/CMakeLists.txt |
117 | | -+++ b/libfdcore/CMakeLists.txt |
118 | | -@@ -2,10 +2,7 @@ |
119 | | - Project("freeDiameter core library" C) |
120 | | - |
121 | | - # Configuration for newer cmake |
122 | | --cmake_policy(VERSION 2.6) |
123 | | --if (POLICY CMP0022) |
124 | | -- cmake_policy(SET CMP0022 OLD) |
125 | | --endif (POLICY CMP0022) |
126 | | -+cmake_policy(VERSION 3.10) |
127 | | - |
128 | | - # Configuration parser |
129 | | - BISON_FILE(fdd.y) |
130 | | ---- a/libfdproto/CMakeLists.txt |
131 | | -+++ b/libfdproto/CMakeLists.txt |
132 | | -@@ -2,10 +2,7 @@ |
133 | | - Project("libfdproto" C) |
134 | | - |
135 | | - # Configuration for newer cmake |
136 | | --cmake_policy(VERSION 2.6) |
137 | | --if (POLICY CMP0022) |
138 | | -- cmake_policy(SET CMP0022 OLD) |
139 | | --endif (POLICY CMP0022) |
140 | | -+cmake_policy(VERSION 3.10) |
141 | | - |
142 | | - # List of source files for the library |
143 | | - SET(LFDPROTO_SRC |
0 commit comments