staticrouted 1.0.1
A simple utility daemon to maintain persistant static routes across network changes. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
d17bd3e044
commit
993df94c0c
1 changed files with 31 additions and 0 deletions
31
Formula/staticrouted.rb
Normal file
31
Formula/staticrouted.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue