11class 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
4641end
0 commit comments