--- a/ext/extconf.rb Thu Dec 25 08:35:46 2008 +0000
+++ b/ext/extconf.rb Sat Feb 28 04:54:46 2009 +0000
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# vim: set nosta noet ts=4 sw=4:
require 'mkmf'
require 'fileutils'
@@ -21,16 +22,19 @@
exit( 1 )
end
-
-dir_config( 'bsdjail' )
+dir_config( 'bsd/jail' )
-have_header( 'stdio.h' ) or fail "Can't find the stdio.h header."
-have_header( 'sys/param.h' ) or fail "Can't find the sys/param.h header."
-have_header( 'sys/jail.h' ) or fail "Can't find the sys/jail.h header."
-have_header( 'sys/types.h' ) or fail "Can't find the sys/types.h header."
-have_header( 'unistd.h' ) or fail "Can't find the unistd.h header."
+have_header( 'stdio.h' ) or fail "Can't find the stdio.h header."
+have_header( 'sys/param.h' ) or fail "Can't find the sys/param.h header."
+have_header( 'sys/jail.h' ) or fail "Can't find the sys/jail.h header."
+have_header( 'sys/types.h' ) or fail "Can't find the sys/types.h header."
+have_header( 'sys/sysctl.h' ) or fail "Can't find the sys/sysctl.h header."
+have_header( 'arpa/inet.h' ) or fail "Can't find the arpa/inet.h header."
+have_header( 'errno.h' ) or fail "Can't find the arpa/inet.h header."
+have_header( 'unistd.h' ) or fail "Can't find the unistd.h header."
-have_func( "jail_attach" ) or fail "Can't find jail_attach in the stdlib."
+have_func( "jail" ) or fail "Can't find jail() in the stdlib."
+have_func( "jail_attach" ) or fail "Can't find jail_attach() in the stdlib."
-create_makefile( 'bsdjail' )
+create_makefile( 'bsd/jail' )