diff options
Diffstat (limited to 'Library/Formula/aiccu.rb')
| -rw-r--r-- | Library/Formula/aiccu.rb | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/Library/Formula/aiccu.rb b/Library/Formula/aiccu.rb index fcf3f7a31..5bf9e54d2 100644 --- a/Library/Formula/aiccu.rb +++ b/Library/Formula/aiccu.rb @@ -16,7 +16,9 @@ class Aiccu < Formula etc.install 'doc/aiccu.conf' unless (etc/'aiccu.conf').exist? end - def startup_plist; <<-EOS.undent + plist_options :startup => true + + def plist; <<-EOS.undent <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> @@ -25,9 +27,9 @@ class Aiccu < Formula <string>#{plist_name}</string> <key>ProgramArguments</key> <array> - <string>#{HOMEBREW_PREFIX}/sbin/aiccu</string> + <string>#{opt_prefix}/sbin/aiccu</string> <string>start</string> - <string>#{HOMEBREW_PREFIX}/etc/aiccu.conf</string> + <string>#{etc}/aiccu.conf</string> </array> <key>RunAtLoad</key> <true/> @@ -47,7 +49,6 @@ class Aiccu < Formula Because these are kernel extensions, there is no Homebrew formula for tuntap. - Unless it exists already, a aiccu.conf file has been written to: #{etc}/aiccu.conf @@ -55,17 +56,6 @@ class Aiccu < Formula The 'aiccu' command will load this file by default unless told to use a different one. - - - To launch on startup: - * if this is your first install: - sudo cp #{plist_path} /Library/LaunchDaemons/ - sudo launchctl load -w /Library/LaunchDaemons/#{plist_path.basename} - - * if this is an upgrade and you already have the #{plist_path.basename} loaded: - sudo launchctl unload -w /Library/LaunchDaemons/#{plist_path.basename} - sudo cp #{plist_path} /Library/LaunchDaemons/ - sudo launchctl load -w /Library/LaunchDaemons/#{plist_path.basename} EOS end end |
