diff options
Diffstat (limited to 'Library/Formula/perforce-proxy.rb')
| -rw-r--r-- | Library/Formula/perforce-proxy.rb | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/Library/Formula/perforce-proxy.rb b/Library/Formula/perforce-proxy.rb index 79752fd18..f2b9d84a9 100644 --- a/Library/Formula/perforce-proxy.rb +++ b/Library/Formula/perforce-proxy.rb @@ -22,24 +22,13 @@ class PerforceProxy < Formula To use the Perforce proxy to access your Perforce server, set your P4PORT environment variable to "localhost:1666". - To launch on startup: - * if this is your first install: - mkdir -p ~/Library/LaunchAgents - cp #{plist_path} ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} - - * if this is an upgrade and you already have the #{plist_path.basename} loaded: - launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename} - cp #{plist_path} ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} - Before starting the proxy server, you probably need to edit the plist to use the correct host and port for your Perforce server (replacing the default perforce:1666). EOS end - def startup_plist; <<-EOPLIST.undent + 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"> @@ -48,7 +37,7 @@ class PerforceProxy < Formula <string>#{plist_name}</string> <key>ProgramArguments</key> <array> - <string>#{HOMEBREW_PREFIX}/sbin/p4p</string> + <string>#{opt_prefix}/sbin/p4p</string> <string>-p</string> <string>1666</string> <string>-r</string> @@ -66,6 +55,6 @@ class PerforceProxy < Formula <string>#{var}/p4p</string> </dict> </plist> - EOPLIST + EOS end end |
