aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authordbr2009-10-17 01:53:59 +0100
committerMax Howell2009-10-19 04:02:48 +0100
commit76e4d1c669d9e560353e86eafc0eb799fee40ffe (patch)
tree0d4f7c5b44f47a35ff3cd61635520330cbdf0862 /Library
parent2142d12be00eaf7d919b4fe61a2e5b761745b9a4 (diff)
downloadhomebrew-76e4d1c669d9e560353e86eafc0eb799fee40ffe.tar.bz2
Add autossh formula, with fixed rscreen command
The rscreen command annoyingly overrides the escape key to ^z, which is fixed in a patch. The rest of the default settings should be fine for most people
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/autossh.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/autossh.rb b/Library/Formula/autossh.rb
new file mode 100644
index 000000000..4c70d0410
--- /dev/null
+++ b/Library/Formula/autossh.rb
@@ -0,0 +1,30 @@
+require 'formula'
+
+class Autossh <Formula
+ url 'http://www.harding.motd.ca/autossh/autossh-1.4b.tgz'
+ homepage 'http://www.harding.motd.ca/autossh/'
+ md5 '8f9aa006f6f69e912d3c2f504622d6f7'
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ 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"