aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cherokee.rb
diff options
context:
space:
mode:
authorChris Hoffman2010-06-24 16:42:28 -0500
committerAdam Vandenberg2010-06-25 09:34:22 -0700
commitf2bc49503665efe312520cd3013ea6ae3b5a3916 (patch)
treeb1d8d432c19453157866904d391edb174f141aa7 /Library/Formula/cherokee.rb
parente10391e94b710e4f89e947f44a85210ba60785cb (diff)
downloadhomebrew-f2bc49503665efe312520cd3013ea6ae3b5a3916.tar.bz2
Cherokee - use proper etc and var locations.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/cherokee.rb')
-rw-r--r--Library/Formula/cherokee.rb38
1 files changed, 22 insertions, 16 deletions
diff --git a/Library/Formula/cherokee.rb b/Library/Formula/cherokee.rb
index 0473887b8..87c679b5e 100644
--- a/Library/Formula/cherokee.rb
+++ b/Library/Formula/cherokee.rb
@@ -12,25 +12,31 @@ class Cherokee <Formula
skip_clean "var/lib/cherokee/graphs/images"
def caveats
- <<-EOS.undent
- Cherokee is setup to run with your (#{ENV['USER']}) permissions as part of the www group
- on port 80. This can be changed in the cherokee-admin but be aware the new user will need
- permissions to write to #{var} for logging and runtime files.
-
- If this is your first install, automatically load on startup with:
- sudo cp #{prefix}/org.cherokee.webserver.plist /System/Library/LaunchDaemons
- sudo launchctl load -w /System/Library/LaunchDaemons/org.cherokee.webserver.plist
-
- If this is an upgrade and you already have the org.cherokee.webserver.plist loaded:
- sudo launchctl unload -w /System/Library/LaunchDaemons/org.cherokee.webserver.plist
- sudo cp #{prefix}/org.cherokee.webserver.plist /System/Library/LaunchDaemons
- sudo launchctl load -w /System/Library/LaunchDaemons/org.cherokee.webserver.plist
- EOS
+ <<-EOS.undent
+ Cherokee is setup to run with your user permissions as part of the
+ www group on port 80. This can be changed in the cherokee-admin
+ but be aware the new user will need permissions to write to:
+ #{var}/cherokee
+ for logging and runtime files.
+
+ If this is your first install, automatically load on startup with:
+ cp #{prefix}/org.cherokee.webserver.plist ~/Library/LaunchDaemons
+ launchctl load -w ~/Library/LaunchDaemons/org.cherokee.webserver.plist
+
+ If this is an upgrade and you already have the plist loaded:
+ launchctl unload -w ~/Library/LaunchDaemons/org.cherokee.webserver.plist
+ cp #{prefix}/org.cherokee.webserver.plist ~/Library/LaunchDaemons
+ launchctl load -w ~/Library/LaunchDaemons/org.cherokee.webserver.plist
+ EOS
end
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
- "--with-wwwuser=#{ENV['USER']}", "--with-wwwgroup=www"
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}",
+ "--localstatedir=#{var}/cherokee",
+ "--with-wwwuser=#{ENV['USER']}",
+ "--with-wwwgroup=www"
system "make install"
prefix.install "org.cherokee.webserver.plist"