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-24 21:42:28 +00:00
|
|
|
<<-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:
|
2010-06-26 17:32:24 +00:00
|
|
|
sudo cp #{prefix}/org.cherokee.webserver.plist /Library/LaunchDaemons
|
|
|
|
sudo launchctl load -w /Library/LaunchDaemons/org.cherokee.webserver.plist
|
2010-06-24 21:42:28 +00:00
|
|
|
|
|
|
|
If this is an upgrade and you already have the plist loaded:
|
2010-06-26 17:32:24 +00:00
|
|
|
sudo launchctl unload -w /Library/LaunchDaemons/org.cherokee.webserver.plist
|
|
|
|
sudo cp #{prefix}/org.cherokee.webserver.plist /Library/LaunchDaemons
|
|
|
|
sudo launchctl load -w /Library/LaunchDaemons/org.cherokee.webserver.plist
|
2010-06-24 21:42:28 +00:00
|
|
|
EOS
|
2010-06-21 14:22:04 +00:00
|
|
|
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-24 21:42:28 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--localstatedir=#{var}/cherokee",
|
|
|
|
"--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"
|
2010-06-29 09:35:22 +00:00
|
|
|
(share+'cherokee/admin/server.py').chmod 0755
|
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
|