Looking for documentation of /var/db/pkgs structure

Hi, I've searched a bit, but I have not found any documentation regarding the structure of the package database usually found at /var/db/pkg. I would appreciate it if anyone could point me in the right direction.
Thanks
 
It's really simple. There's 1 directory for every package. It contains all the files found in the "root" of the .tbz file, plus (optionally) a +REQUIRED_BY file listing all the packages that need it as a dependency.
 
Ya, I understood that much, I guess I should have been more clear, but do you have a reference for the structure of the files contained in each directory. For example, do you have any documentation on what each of @blah keywords in the +CONTENTS file represent and what keywords are available.
Thanks again
 
Have a look at pkg_create(1) and its source code, e.g.
Code:
$ man 1 pkg_create
...
     [b]@pkgdep[/b] [i][file]pkgname[/file][/i]
             Declare a dependency on the [i][file]pkgname[/file][/i] package. The [i][file]pkgname[/file][/i] package
             must be installed before this package may be installed, and this
             package must be deinstalled before the [i][file]pkgname[/file][/i] package is dein‐
             stalled. Multiple [b]@pkgdep[/b] directives may be used if the package
             depends on multiple other packages.
 
Back
Top