forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautossh.rb
39 lines (32 loc) · 1.22 KB
/
autossh.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class Autossh < Formula
desc "Automatically restart SSH sessions and tunnels"
homepage "https://www.harding.motd.ca/autossh/"
url "https://www.harding.motd.ca/autossh/autossh-1.4g.tgz"
mirror "https://deb.debian.org/debian/pool/main/a/autossh/autossh_1.4g.orig.tar.gz"
sha256 "5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277"
bottle do
cellar :any_skip_relocation
sha256 "2674ee43690b5d99490a0979359fdefa52033650b935547a6353de726f916275" => :mojave
sha256 "f88fcb32499fff8aa2899c85fc39dc6678ebed2849791a4312d427d9073b6b98" => :high_sierra
sha256 "78d258f52bc14a2539da8c6d3ce69db5c062bb70e95130d9f22113720f853c67" => :sierra
end
patch :DATA
def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
bin.install "rscreen"
end
test do
assert_match version.to_s, shell_output("#{bin}/autossh -V")
end
end
__END__
diff --git a/rscreen b/rscreen
index f0bbced..ce232c3 100755
--- a/rscreen
+++ b/rscreen
@@ -23,4 +23,4 @@ fi
#AUTOSSH_PATH=/usr/local/bin/ssh
export AUTOSSH_POLL AUTOSSH_LOGFILE AUTOSSH_DEBUG AUTOSSH_PATH AUTOSSH_GATETIME AUTOSSH_PORT
-autossh -M 20004 -t $1 "screen -e^Zz -D -R"
+autossh -M 20004 -t $1 "screen -D -R"