Does pkgsrc use the env, etc, inv, and var subdirectories of /pkg seen here?
bin | include | pkgdb.refcount
dict | info | pkgsrc
etc | lib | qt5
gcc12 | libdata | qt6
gcc14 | libexec | sbin
gcc16 | man | share
gnu | pkgdb | tests
On NetBSD /var used for logs other data. But I suppose someone could configure under 'pkg' if they wanted to,