|
1 | 1 | class VulsioGost < Formula |
2 | 2 | desc "Local CVE tracker & notification system" |
3 | 3 | homepage "https://github.com/vulsio/gost" |
4 | | - url "https://github.com/vulsio/gost/archive/refs/tags/v0.6.1.tar.gz" |
5 | | - sha256 "8812f4874acb1ccb565def5732bedf6dbf43e46ed1de3324b8ecdd908d5943dd" |
| 4 | + url "https://github.com/vulsio/gost/archive/refs/tags/v0.7.0.tar.gz" |
| 5 | + sha256 "e20b39dff98c82a791ae9e5ac40ce78f6e25a5beac3ce7b4d53a3c0b45794f04" |
6 | 6 | license "MIT" |
7 | 7 |
|
8 | 8 | bottle do |
9 | | - rebuild 1 |
10 | | - sha256 cellar: :any_skip_relocation, arm64_tahoe: "c4a53e4b807b85cf00e833102650028ff9e0033dd04b61a28d4e23fdec98732f" |
11 | | - sha256 cellar: :any_skip_relocation, arm64_sequoia: "c4a53e4b807b85cf00e833102650028ff9e0033dd04b61a28d4e23fdec98732f" |
12 | | - sha256 cellar: :any_skip_relocation, arm64_sonoma: "c4a53e4b807b85cf00e833102650028ff9e0033dd04b61a28d4e23fdec98732f" |
13 | | - sha256 cellar: :any_skip_relocation, arm64_ventura: "c4a53e4b807b85cf00e833102650028ff9e0033dd04b61a28d4e23fdec98732f" |
14 | | - sha256 cellar: :any_skip_relocation, sonoma: "b9d48f771f5f28f6ebcdde2751feb98855dcdae0e95d026ae72e7787309f2835" |
15 | | - sha256 cellar: :any_skip_relocation, ventura: "b9d48f771f5f28f6ebcdde2751feb98855dcdae0e95d026ae72e7787309f2835" |
16 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "993bf1845ac3db8067ac54af6625a966217ce79b75c5a029e214da48076d0a52" |
| 9 | + sha256 cellar: :any_skip_relocation, arm64_tahoe: "35a73401f7fa6b69b6af81402d8116722f47a846a8853fe87d34a5139c9f7bc1" |
| 10 | + sha256 cellar: :any_skip_relocation, arm64_sequoia: "35a73401f7fa6b69b6af81402d8116722f47a846a8853fe87d34a5139c9f7bc1" |
| 11 | + sha256 cellar: :any_skip_relocation, arm64_sonoma: "35a73401f7fa6b69b6af81402d8116722f47a846a8853fe87d34a5139c9f7bc1" |
| 12 | + sha256 cellar: :any_skip_relocation, sonoma: "0cd5c4ecf1ff7ce9d33aa4b3f6e95c5ba82810c8c0452b28466a7007f4ab3b00" |
| 13 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "68e4b8cff66df393723fad3e63f4bc186f5ee9dde268c2f3b9d1075ada5812d2" |
17 | 14 | end |
18 | 15 |
|
19 | 16 | depends_on "go" => :build |
20 | 17 |
|
21 | 18 | conflicts_with "gost", because: "both install `gost` binaries" |
22 | 19 |
|
23 | | - # Backport fix for fetching Debian CVE DB |
24 | | - patch do |
25 | | - url "https://github.com/vulsio/gost/commit/e609fd898e22ce4e75f09e90e0a2c4fef7671111.patch?full_index=1" |
26 | | - sha256 "9eeed9c0a0e1b4ca38176851207556d6f51d0e9f0b53819e846fef3d1acaf84d" |
27 | | - end |
28 | | - |
29 | 20 | def install |
30 | 21 | ldflags = %W[ |
31 | 22 | -s -w |
32 | 23 | -X github.com/vulsio/gost/config.Version=#{version} |
33 | 24 | -X github.com/vulsio/gost/config.Revision=#{tap.user} |
34 | 25 | ] |
35 | | - system "go", "build", *std_go_args(output: bin/"gost", ldflags:) |
| 26 | + system "go", "build", *std_go_args(ldflags:, output: bin/"gost") |
36 | 27 |
|
37 | 28 | generate_completions_from_executable(bin/"gost", "completion") |
38 | 29 | end |
|
0 commit comments