5 def create_dummy_makefile
6 File.open("Makefile", 'w') do |f|
12 when /bsd/i, /darwin/i
13 unless have_header('sys/event.h')
14 puts "Missing 'sys/event.h' header"
19 puts "Events handler could not be compiled (see above error). Your god installation will not support event conditions."
22 create_makefile 'kqueue_handler_ext'
25 unless have_header('netlink.h')
26 puts "Missing 'linux/netlink.h' header(s)"
27 puts "You may need to install a header package for your system"
31 unless have_header('connector.h') && have_header('cn_proc.h')
32 puts "Missing 'linux/connector.h', or 'linux/cn_proc.h' header(s)"
33 puts "These are only available in Linux kernel 2.6.15 and later (run `uname -a` to find yours)"
34 puts "You may need to install a header package for your system"
39 puts "Events handler could not be compiled (see above error). Your god installation will not support event conditions."
42 create_makefile 'netlink_handler_ext'
45 puts "Unsupported platform '#{RUBY_PLATFORM}'. Supported platforms are BSD, DARWIN, and LINUX."
46 puts "Your god installation will not support event conditions."