I see that the pkg for the bootstrapper has a function in /usr/src/usr.sbin/pkg/config.c to create an ABI. There is a function called pkg_get_myabi, which seems to be just the result of the following command, with a colon in between. (In fact, it's a system call or something.)
uname -s expr `uname -U` / 100000 sysctl -n hw.machine_arch That's it? That's it :) Regards.