2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 09:46:33 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lighttpd < Formula
|
2012-06-09 20:11:56 +00:00
|
|
|
homepage 'http://www.lighttpd.net/'
|
2012-12-01 14:41:40 +00:00
|
|
|
url 'http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.32.tar.bz2'
|
|
|
|
sha256 '60691b2dcf3ad2472c06b23d75eb0c164bf48a08a630ed3f308f61319104701f'
|
2009-09-19 09:46:33 +00:00
|
|
|
|
2012-09-02 18:51:43 +00:00
|
|
|
option 'with-lua', 'Include Lua scripting support for mod_magnet'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-12-11 17:41:23 +00:00
|
|
|
depends_on 'pcre'
|
2012-09-02 18:51:43 +00:00
|
|
|
depends_on 'lua' => :optional if build.include? 'with-lua'
|
2009-09-19 09:46:33 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-09 20:11:56 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--with-openssl
|
|
|
|
--with-ldap
|
|
|
|
]
|
2012-09-02 18:51:43 +00:00
|
|
|
args << "--with-lua" if build.include? 'with-lua'
|
2012-06-09 20:11:56 +00:00
|
|
|
system "./configure", *args
|
2009-09-19 09:46:33 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|