|
1 | 1 | class TkeySshAgent < Formula |
2 | 2 | desc "SSH agent for use with the TKey security stick" |
3 | 3 | homepage "https://tillitis.se/" |
4 | | - url "https://github.com/tillitis/tillitis-key1-apps/archive/refs/tags/v0.0.6.tar.gz" |
5 | | - sha256 "d15fc7f556548951989abf6973374f71e039028202e8cad4b70f79539da00aff" |
| 4 | + url "https://github.com/tillitis/tkey-ssh-agent/archive/refs/tags/v0.0.6.tar.gz" |
| 5 | + sha256 "b0ace3e21b9fc739a05c0049131f7386efa766936576d56c206d3abd0caed668" |
6 | 6 | license "GPL-2.0-only" |
| 7 | + revision 1 |
7 | 8 |
|
8 | 9 | livecheck do |
9 | 10 | url :stable |
@@ -36,6 +37,9 @@ class TkeySshAgent < Formula |
36 | 37 | sha256 "639bdba7e61c3e1d551e9c462c7447e4908cf0153edaebc2e6843c9f78e477a6" |
37 | 38 | end |
38 | 39 |
|
| 40 | + # patch `go.bug.st/serial` to v1.6.2 to fix `cannot define new methods on non-local type C.CFTypeRef` error |
| 41 | + patch :DATA |
| 42 | + |
39 | 43 | def install |
40 | 44 | resource("signerapp").stage("./cmd/tkey-ssh-agent/app.bin") |
41 | 45 | ldflags = "-s -w -X main.version=#{version}" |
@@ -83,3 +87,31 @@ def caveats |
83 | 87 | assert_predicate socket, :exist? |
84 | 88 | end |
85 | 89 | end |
| 90 | + |
| 91 | +__END__ |
| 92 | +diff --git a/go.mod b/go.mod |
| 93 | +index aaf7fbd..22b4ff6 100644 |
| 94 | +--- a/go.mod |
| 95 | ++++ b/go.mod |
| 96 | +@@ -6,7 +6,7 @@ require ( |
| 97 | + github.com/gen2brain/beeep v0.0.0-20220909211152-5a9ec94374f6 |
| 98 | + github.com/spf13/pflag v1.0.5 |
| 99 | + github.com/twpayne/go-pinentry-minimal v0.0.0-20220113210447-2a5dc4396c2a |
| 100 | +- go.bug.st/serial v1.5.0 |
| 101 | ++ go.bug.st/serial v1.6.2 |
| 102 | + golang.org/x/crypto v0.5.0 |
| 103 | + golang.org/x/term v0.4.0 |
| 104 | + ) |
| 105 | +diff --git a/go.sum b/go.sum |
| 106 | +index f0652fe..805352e 100644 |
| 107 | +--- a/go.sum |
| 108 | ++++ b/go.sum |
| 109 | +@@ -26,6 +26,8 @@ github.com/twpayne/go-pinentry-minimal v0.0.0-20220113210447-2a5dc4396c2a h1:a1b |
| 110 | + github.com/twpayne/go-pinentry-minimal v0.0.0-20220113210447-2a5dc4396c2a/go.mod h1:ARJJXqNuaxVS84jX6ST52hQh0TtuQZWABhTe95a6BI4= |
| 111 | + go.bug.st/serial v1.5.0 h1:ThuUkHpOEmCVXxGEfpoExjQCS2WBVV4ZcUKVYInM9T4= |
| 112 | + go.bug.st/serial v1.5.0/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE= |
| 113 | ++go.bug.st/serial v1.6.2 h1:kn9LRX3sdm+WxWKufMlIRndwGfPWsH1/9lCWXQCasq8= |
| 114 | ++go.bug.st/serial v1.6.2/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE= |
| 115 | + golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE= |
| 116 | + golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU= |
| 117 | + golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= |
0 commit comments