Compiled Options in package

In general, how to check what options are enabled in packages? For example, how to check options include in pre-compiled samba36? # pkg_add -r samba36 Is it the same as the default options in port tree? If I want some options that is not default, is that mean I have to compile myself (via port-tree) and cannot get binary package from official source?
 
Yes. Binary packages are compiled from the ports tree using the default options. If you want non-default options, then you need to compile the port via the ports tree.
 
Thanks, another question, is there a way to check the compiled options for an installed program? (For example, someone had installed a program previously, but ports tree config has been deleted/replaced and I want to know what options he previously picked)
 
If they're still there the chosen options might be in /var/db/ports/.

But other than that, there's no way to look at a pre-compiled package and see which options where chosen.
 
Back
Top