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