I noticed problems with /var/qmail. I even looked at it for a brief
moment, but then I decided there are more important things to fix (for
SunOS, at least).
I don't know if it is related to the build problems, but the package
shouldn't touch /var at all, it should use ${VARBASE}.

Yeah, I was surprised that it wasn't using $VARBASE, but it's a lot of
mail packages, not just one. And other packages install directly to
/var as well. Probably wrong, but they do.