aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLink Dupont2011-03-12 08:27:55 -0800
committerAdam Vandenberg2011-06-07 08:06:00 -0700
commit9ced860300c81ab6ece284f870828230856c5008 (patch)
tree42888aa38810d4d3f2252d5094cd20473491b373 /Library/Formula
parent6807981cfb90dad18460e6bd3268e63305e35e5b (diff)
downloadhomebrew-9ced860300c81ab6ece284f870828230856c5008.tar.bz2
staticrouted 1.0.1
A simple utility daemon to maintain persistant static routes across network changes. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/staticrouted.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/staticrouted.rb b/Library/Formula/staticrouted.rb
new file mode 100644
index 000000000..0feccd28f
--- /dev/null
+++ b/Library/Formula/staticrouted.rb
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Staticrouted < Formula
+ url 'http://alastairs-place.net/stuff/staticrouted.tar.bz2'
+ homepage 'http://lists.apple.com/archives/macos-x-server/2010/Jul/msg00220.html'
+ version '1.0.1'
+ md5 '1f76b4f15d3bc332d40732bde154a20e'
+
+ def install
+ system "xcodebuild SYMROOT=build -target Everything"
+ sbin.install ["build/Release/staticroute", "build/Release/staticrouted"]
+ man8.install ["staticroute.8", "staticrouted.8"]
+ prefix.install "com.coriolis-systems.staticrouted.plist"
+ end
+
+ def caveats; <<-EOS.undent
+ If this is your first install, automatically load on login with:
+ sudo mkdir -p /Library/LaunchDaemons
+ sudo cp #{prefix}/com.coriolis-systems.staticrouted.plist /Library/LaunchDaemons/
+ sudo launchctl load -w /Library/LaunchDaemons/com.coriolis-systems.staticrouted.plist
+
+ If this is an upgrade and you already have the com.coriolis-systems.staticrouted.plist loaded:
+ sudo launchctl unload -w /Library/LaunchDaemons/com.coriolis-systems.staticrouted.plist
+ sudo cp #{prefix}/com.coriolis-systems.staticrouted.plist /Library/LaunchDaemons/
+ sudo launchctl load -w /Library/LaunchDaemons/com.coriolis-systems.staticrouted.plist
+
+ Or start it manually:
+ sudo staticrouted
+ EOS
+ end
+end