The bsd.port.mk's dump-vars always prints SUBPACKAGE=whatever-is-default-for-the-current-port value. Which is, actually, useless. Then this value gets into sqlports directly. Making SUBPACKAGE field totally useless as well.
Options I see: a) Get rid of SUBPACKAGE in dump-vars output and sqlports; b) Tweak bsd.port.mk (this will result in very dirty hack); c) Tweak sqlports to override SUBPACKAGE by actual value taken from FULLPKGPATH. I'd go with (c), even if it will denormalize database it - "SUBPACKAGE" is much easier and less prone to type than "SUBSTR(FULLPKGPATH, INSTR(FULLPKGPATH, ',-')+1)". Any opinions? -- WBR, Vadim Zhukov
