Cherokee formula
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS
and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP
Proxy, Traffic Shaper, Video Streaming and much more.
2009-12-15 18:51:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cherokee <Formula
|
2010-06-23 10:41:03 +00:00
|
|
|
url 'http://www.cherokee-project.com/download/1.0/1.0.4/cherokee-1.0.4.tar.gz'
|
Cherokee formula
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS
and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP
Proxy, Traffic Shaper, Video Streaming and much more.
2009-12-15 18:51:59 +00:00
|
|
|
homepage 'http://www.cherokee-project.com/'
|
2010-06-23 10:41:03 +00:00
|
|
|
md5 '24874b465abe6611ef2f2c145a840cb2'
|
Cherokee formula
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS
and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP
Proxy, Traffic Shaper, Video Streaming and much more.
2009-12-15 18:51:59 +00:00
|
|
|
|
|
|
|
depends_on 'gettext'
|
|
|
|
|
2010-06-21 14:22:04 +00:00
|
|
|
skip_clean "var/run"
|
|
|
|
skip_clean "var/log"
|
|
|
|
skip_clean "var/lib/cherokee/graphs/images"
|
|
|
|
|
2010-06-23 10:41:03 +00:00
|
|
|
def caveats
|
2010-06-21 14:22:04 +00:00
|
|
|
<<-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
|
|
|
|
|
2010-06-23 10:41:03 +00:00
|
|
|
If this is an upgrade and you already have the org.cherokee.webserver.plist loaded:
|
2010-06-21 14:22:04 +00:00
|
|
|
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
|
|
|
|
end
|
|
|
|
|
Cherokee formula
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS
and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP
Proxy, Traffic Shaper, Video Streaming and much more.
2009-12-15 18:51:59 +00:00
|
|
|
def install
|
2010-06-21 14:22:04 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--with-wwwuser=#{ENV['USER']}", "--with-wwwgroup=www"
|
Cherokee formula
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS
and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP
Proxy, Traffic Shaper, Video Streaming and much more.
2009-12-15 18:51:59 +00:00
|
|
|
system "make install"
|
2010-06-23 10:41:03 +00:00
|
|
|
|
2010-06-21 14:22:04 +00:00
|
|
|
prefix.install "org.cherokee.webserver.plist"
|
Cherokee formula
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS
and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Load Balancing, Apache compatible log files, Data Base Balancing, Reverse HTTP
Proxy, Traffic Shaper, Video Streaming and much more.
2009-12-15 18:51:59 +00:00
|
|
|
end
|
|
|
|
end
|