aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoah Manneschmidt2014-06-04 16:56:52 -0500
committerMike McQuaid2014-06-14 20:47:30 +0100
commit0d9fe117746a5f2242ec40ab034a69d2b803db07 (patch)
treeaef633e80636b44881605b17071abfe6bfa16261
parent60c5de995d572314761fec75d7fb6c16ade346d5 (diff)
downloadhomebrew-0d9fe117746a5f2242ec40ab034a69d2b803db07.tar.bz2
bitlbee: add plist.
-rw-r--r--Library/Formula/bitlbee.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/Library/Formula/bitlbee.rb b/Library/Formula/bitlbee.rb
index aa4c0366a..5ae36c4b9 100644
--- a/Library/Formula/bitlbee.rb
+++ b/Library/Formula/bitlbee.rb
@@ -48,4 +48,45 @@ class Bitlbee < Formula
(var+"bitlbee/run").mkpath
(var+"bitlbee/lib").mkpath
end
+
+ plist_options :manual => "bitlbee -D"
+
+ 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">
+ <dict>
+ <key>Label</key>
+ <string>#{plist_name}</string>
+ <key>OnDemand</key>
+ <true/>
+ <key>ProgramArguments</key>
+ <array>
+ <string>#{opt_sbin}/bitlbee</string>
+ </array>
+ <key>ServiceDescription</key>
+ <string>bitlbee irc-im proxy</string>
+ <key>Sockets</key>
+ <dict>
+ <key>Listener</key>
+ <dict>
+ <key>SockFamily</key>
+ <string>IPv4</string>
+ <key>SockProtocol</key>
+ <string>TCP</string>
+ <key>SockServiceName</key>
+ <string>6667</string>
+ <key>SockType</key>
+ <string>stream</string>
+ </dict>
+ </dict>
+ <key>inetdCompatibility</key>
+ <dict>
+ <key>Wait</key>
+ <false/>
+ </dict>
+ </dict>
+ </plist>
+ EOS
+ end
end