Create reg_ng.pl

This version works with the new pkg-ng system.