2011-03-10 05:11:03 +00:00
|
|
|
class Autossh < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Automatically restart SSH sessions and tunnels"
|
2014-05-10 17:10:01 +00:00
|
|
|
homepage "http://www.harding.motd.ca/autossh/"
|
2015-04-09 15:29:57 +00:00
|
|
|
url "http://www.harding.motd.ca/autossh/autossh-1.4e.tgz"
|
2016-01-19 09:47:31 +00:00
|
|
|
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/a/autossh/autossh_1.4e.orig.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156"
|
2009-10-17 00:53:59 +00:00
|
|
|
|
2014-10-29 17:11:20 +00:00
|
|
|
bottle do
|
2015-09-22 16:27:11 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-01-19 10:32:59 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "9eb45f4246ed8db8cf639772bb252cedca944b480e7b8bedeeff4e96635a7a97" => :el_capitan
|
|
|
|
sha256 "5926ad9cc35738f1fc5eebc8dd68770a0cc62f8a1c5344cc01547c246821e7c1" => :yosemite
|
|
|
|
sha256 "4c86bc07f832f9ffeffc6542ecd102925fdebb363cfc354903cba2e9faa7900c" => :mavericks
|
2014-10-29 17:11:20 +00:00
|
|
|
end
|
|
|
|
|
2014-03-18 03:44:50 +00:00
|
|
|
patch :DATA
|
2009-10-17 00:53:59 +00:00
|
|
|
|
|
|
|
def install
|
2016-01-19 09:47:31 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2014-05-10 17:10:01 +00:00
|
|
|
bin.install "rscreen"
|
2009-10-17 00:53:59 +00:00
|
|
|
end
|
2016-01-19 09:47:31 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/autossh -V")
|
|
|
|
end
|
2009-10-17 00:53:59 +00:00
|
|
|
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"
|