Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7b483721f7
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (49 sloc) 1.727 kb
require 'formula'
class Httpd < Formula
homepage 'http://httpd.apache.org/'
url 'http://www.apache.org/dist/httpd/httpd-2.2.22.tar.bz2'
sha1 '766cd0843050a8dfb781e48b976f3ba6ebcf8696'
skip_clean :all
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-layout=GNU",
"--enable-mods-shared=all",
"--with-ssl=/usr",
"--with-mpm=prefork",
"--disable-unique-id",
"--enable-ssl",
"--enable-dav",
"--enable-cache",
"--enable-proxy",
"--enable-logio",
"--enable-deflate",
"--with-included-apr",
"--enable-cgi",
"--enable-cgid",
"--enable-suexec",
"--enable-rewrite"
system "make"
system "make install"
end
def startup_plist; <<-EOS.undent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apache.httpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/apachectl</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
EOS
end
end
Jump to Line
Something went wrong with that request. Please try again.