automating menu options in ports (and other ports build questions)

Polytropon freebsd at
Fri May 25 06:24:30 UTC 2012

On Thu, 24 May 2012 23:56:02 -0600, Gary Aitken wrote:
> Is there a way to find out what options a package is built with?

I don't think so. A package is just an archive containing
"truncated subtrees" such as bin/, lib/ or man/ of the
compiled programs, ready for install into the /usr/local
directory. It also contains data files such as +COMMENT,

However, if you have installed from a port, the options
you have set will be stored in /var/db/ports/<name>/options.
I haven't tested yet if a package that _has_ adjustable
options (which obviously have already been adjusted) would
create such a directory and file, but I assume it does not,
as it seems obvious that those are handled by the port
building mechanisms (which aren't in use when you pkg_add

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list