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-21 14:22:04 +00:00
|
|
|
url 'http://www.cherokee-project.com/download/1.0/1.0.2/cherokee-1.0.2.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-21 14:22:04 +00:00
|
|
|
md5 'a6c8bdcca3e64349d537d519f09915ba'
|
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"
|
|
|
|
|
|
|
|
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
|
|
|
|
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-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
|