This repository has been archived by the owner. It is now read-only.

New formula: mod_fastcgi #12093

Closed
wants to merge 1 commit into
base: master
from
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+27 −0
Diff settings

Always

Just for now

Copy path View file
@@ -0,0 +1,27 @@
require 'formula'

class ModFastcgi < Formula
url 'http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz'
homepage 'http://www.fastcgi.com/'
md5 'a21a613dd5dacf4c8ad88c8550294fed'

def install
target_arch = MacOS.prefer_64_bit? ? "x86_64" : "i386"
system "cp Makefile.AP2 Makefile"
ENV.append_to_cflags "-mmacosx-version-min=#{MACOS_VERSION}"
ENV.append_to_cflags "-isysroot #{MacOS.sdk_path}"
ENV.append_to_cflags "-arch #{target_arch}"
system "make", "top_dir=/usr/share/httpd"
libexec.install '.libs/mod_fastcgi.so'
end

def caveats; <<-EOS.undent
You must manually edit /etc/apache2/httpd.conf to contain:
LoadModule fastcgi_module #{libexec}/mod_fastcgi.so
Upon restarting Apache, you should see the following message in the error log:
[notice] FastCGI: process manager initialized
EOS
end

end
ProTip! Use n and p to navigate between commits in a pull request.