2014-02-21 15:51:18 +00:00
|
|
|
class Openlitespeed < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "High-performance, lightweight HTTP server"
|
2014-02-21 15:51:18 +00:00
|
|
|
homepage "http://open.litespeedtech.com/mediawiki/"
|
2015-04-19 16:01:02 +00:00
|
|
|
url "http://open.litespeedtech.com/packages/openlitespeed-1.3.10.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "703ff1093eae270bb0c380d097e92e39dd102b31f9632ff420b4b0ed423c4159"
|
2014-02-21 15:51:18 +00:00
|
|
|
head "https://github.com/litespeedtech/openlitespeed.git"
|
|
|
|
|
2015-04-19 16:01:02 +00:00
|
|
|
option "with-debug", "Compile with support for debug log"
|
|
|
|
option "with-spdy", "Compile with support for SPDY module"
|
2014-02-21 15:51:18 +00:00
|
|
|
|
|
|
|
depends_on "pcre"
|
|
|
|
depends_on "geoip"
|
2015-04-19 16:01:02 +00:00
|
|
|
depends_on "openssl"
|
2014-02-21 15:51:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
2015-04-19 16:01:02 +00:00
|
|
|
args << "--enable-debug" if build.with? "debug"
|
|
|
|
args << "--enable-spdy" if build.with? "spdy"
|
|
|
|
args << "--with-openssl=#{Formula["openssl"].opt_prefix}"
|
2014-02-21 15:51:18 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|