Skip to content

Commit a82dec7

Browse files
cjdelislealebcay
authored andcommitted
cjdns 22.1
Remove no-longer-needed workarounds Add cjdnstool binary which is now part of cjdns
1 parent 6cabe53 commit a82dec7

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Formula/c/cjdns.rb

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Cjdns < Formula
22
desc "Advanced mesh routing system with cryptographic addressing"
33
homepage "https://github.com/cjdelisle/cjdns/"
4-
url "https://github.com/cjdelisle/cjdns/archive/refs/tags/cjdns-v22.tar.gz"
5-
sha256 "21b555f7850f94cc42134f59cb99558baaaa18acf4c5544e8647387d4a5019ec"
4+
url "https://github.com/cjdelisle/cjdns/archive/refs/tags/cjdns-v22.1.tar.gz"
5+
sha256 "3fcd4dcbfbf8d34457c6b22c1024edb8be4a771eea34391a7e7437af72f52083"
66
license all_of: ["GPL-3.0-or-later", "GPL-2.0-or-later", "BSD-3-Clause", "MIT"]
77
head "https://github.com/cjdelisle/cjdns.git", branch: "master"
88

@@ -23,17 +23,9 @@ class Cjdns < Formula
2323
depends_on "rust" => :build
2424

2525
def install
26-
# Work-around for build issue with Xcode 15.3
27-
# upstream PR patch, https://github.com/cjdelisle/cjdns/pull/1263
28-
ENV.append_to_cflags "-Wno-incompatible-function-pointer-types" if DevelopmentTools.clang_build_version >= 1500
29-
30-
# Avoid using -march=native
31-
inreplace "node_build/make.js",
32-
"var NO_MARCH_FLAG = ['arm', 'ppc', 'ppc64', 'arm64'];",
33-
"var NO_MARCH_FLAG = ['x64', 'arm', 'arm64', 'ppc', 'ppc64'];"
34-
3526
system "./do"
3627
bin.install "cjdroute"
28+
bin.install "cjdnstool"
3729

3830
man1.install "doc/man/cjdroute.1"
3931
man5.install "doc/man/cjdroute.conf.5"
@@ -42,5 +34,8 @@ def install
4234
test do
4335
sample_conf = JSON.parse(shell_output("#{bin}/cjdroute --genconf"))
4436
assert_equal "NONE", sample_conf["admin"]["password"]
37+
38+
help_output = shell_output("#{bin}/cjdnstool --help")
39+
assert_match "cexec", help_output
4540
end
4641
end

0 commit comments

Comments
 (0)