2009-10-17 00:53:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Autossh < Formula
|
2009-10-17 00:53:59 +00:00
|
|
|
homepage 'http://www.harding.motd.ca/autossh/'
|
2012-02-13 05:23:43 +00:00
|
|
|
url 'http://www.harding.motd.ca/autossh/autossh-1.4c.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd9a1d5a2987e7e5a444b00e63d6590936da1e1f2'
|
2009-10-17 00:53:59 +00:00
|
|
|
|
2014-03-18 03:44:50 +00:00
|
|
|
patch :DATA
|
2009-10-17 00:53:59 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-13 05:23:43 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-10-17 00:53:59 +00:00
|
|
|
system "make install"
|
|
|
|
bin.install 'rscreen'
|
|
|
|
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"
|