aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJoshua Peek2011-08-05 14:02:24 -0500
committerAdam Vandenberg2011-08-11 12:12:03 -0700
commit4bc3233ee4fb6daed36443d1382734c9f97c3dd8 (patch)
tree523136d8f87ef21c5699b79a8b8aaaf039ed4286 /Library
parentef33103993bc06318a219251ef598a9253a8091f (diff)
downloadhomebrew-4bc3233ee4fb6daed36443d1382734c9f97c3dd8.tar.bz2
Pow 0.3.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pow.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/pow.rb b/Library/Formula/pow.rb
new file mode 100644
index 000000000..0b69153bc
--- /dev/null
+++ b/Library/Formula/pow.rb
@@ -0,0 +1,34 @@
+require 'formula'
+
+class Pow < Formula
+ url 'http://get.pow.cx/versions/0.3.1.tar.gz'
+ homepage 'http://pow.cx/'
+ md5 '2eff3e7a048aada38a85cad5e73a936a'
+
+ depends_on 'node'
+
+ def install
+ (prefix+'pow').install Dir['*']
+
+ bin.mkdir
+ File.open("#{bin}/pow", 'w') do |f|
+ f.write <<-EOS.undent
+ #!/bin/sh
+ export POW_BIN="#{HOMEBREW_PREFIX}/bin/pow"
+ exec "#{HOMEBREW_PREFIX}/bin/node" "#{prefix}/pow/lib/command.js" "$@"
+ EOS
+ end
+ system "chmod +x #{bin}/pow"
+ end
+
+ def caveats;
+ <<-EOS.undent
+ Sets up firewall rules to forward port 80 to Pow:
+ sudo pow --install-system
+
+ Installs launchd agent to start on login:
+ pow --install-local
+
+ EOS
+ end
+end