add rules to build a dbg package