new method collect pkgsrc for test