From 1c82a6a184f7aff224dbc98ed88f358e48c4d2cc Mon Sep 17 00:00:00 2001 From: Luke Petre Date: Wed, 8 May 2013 05:10:05 +0100 Subject: perforce-server: add plist Closes #19673. Signed-off-by: Jack Nagel --- Library/Formula/perforce-server.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/perforce-server.rb b/Library/Formula/perforce-server.rb index df7114206..19a905fbf 100644 --- a/Library/Formula/perforce-server.rb +++ b/Library/Formula/perforce-server.rb @@ -15,5 +15,36 @@ class PerforceServer < Formula def install bin.install 'p4d' + (var+"p4root").mkpath + end + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + ProgramArguments + + #{opt_prefix}/bin/p4d + -p + 1666 + -r + #{var}/p4root + + RunAtLoad + + KeepAlive + + WorkingDirectory + #{var}/p4root + StandardErrorPath + #{var}/log/p4d.log + StandardOutPath + #{var}/log/p4d.log + + + EOS end end -- cgit v1.2.3