Create reg.pl

This version works with old (not pkg-ng) ports system.