forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpd.rb
53 lines (49 loc) · 1.69 KB
/
httpd.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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