2009-02-12 18:49:50 +00:00
|
|
|
require 'erlbox'
|
|
|
|
require 'erlbox/driver'
|
2009-04-24 15:30:06 +00:00
|
|
|
require 'erlbox/snmp'
|
2008-12-06 06:20:26 +00:00
|
|
|
|
|
|
|
CLOBBER.include %w( c_src/system )
|
|
|
|
|
2009-02-12 18:49:50 +00:00
|
|
|
UNIT_TEST_FLAGS << '+A10'
|
|
|
|
INT_TEST_FLAGS << '+A10'
|
2008-12-06 06:20:26 +00:00
|
|
|
|
|
|
|
DB_LIB = "c_src/system/lib/libdb.a"
|
|
|
|
|
2009-04-16 20:11:13 +00:00
|
|
|
CC_FLAGS << "-Ic_src/system/include"
|
2009-04-22 16:24:17 +00:00
|
|
|
LD_LIBS << DB_LIB
|
2009-04-16 20:11:13 +00:00
|
|
|
|
2008-12-06 06:20:26 +00:00
|
|
|
file DB_LIB do
|
|
|
|
sh "cd c_src && ./buildlib.sh 2>&1"
|
|
|
|
end
|
|
|
|
|
2009-02-12 18:49:50 +00:00
|
|
|
# This is a slightl kludgey way of getting DB_LIB into
|
|
|
|
# dependency chain early enough
|
|
|
|
file 'c_src/bdberl_drv.c' => [DB_LIB]
|
2008-12-16 22:22:04 +00:00
|
|
|
|
2009-04-06 18:04:38 +00:00
|
|
|
task 'faxien:package' do
|
|
|
|
Dir.mkdir "#{PACKAGE_DIR}/priv/bin"
|
|
|
|
FileUtils.cp_r Dir.glob('c_src/system/bin/*'), "#{PACKAGE_DIR}/priv/bin", :verbose => false
|
2009-04-24 15:53:55 +00:00
|
|
|
FileUtils.cp_r Dir.glob('mibs/*.mib'), "#{PACKAGE_DIR}/mibs", :verbose => false
|
2009-03-03 18:17:44 +00:00
|
|
|
end
|