package +MANIFEST file - look inside

Bob Eager rde at tavi.co.uk
Tue Feb 11 00:58:27 UTC 2020


On Tue, 11 Feb 2020 00:04:42 +0000 (UTC)
Yuet-nan Wong via freebsd-ports <freebsd-ports at freebsd.org> wrote:

> Is there a command, or short script that enables the +MANIFEST to be
> examined.  There are cases where we want to review what the scripts
> section of the +MANIFEST contains.  In particular the post-install
> script.
> 
> What we're trying to achieve is something like
> pkg view scripts post-install -f $OUTPUT
> so we can modify or run it at a better time, like first boot.
> 
> As a follow-on from this, we would like to use the "files" list to
> set the MAC mls/ settings as a post-install task, so getting the
> first, filename element (of filename:signature,) from the "files"
> list is important. Thank-you.

Assuming a package called (say) xyzzy:

pkg fetch xyzzy
pkg info -R -F xyzzy-1.0.txz (or whatever)

Redirect the output from pkg info to somewhere, and use jq to analyse
it.

Or use: pkg-info --raw-format yaml -F xyzzy-1.0.txz
and then a yaml analyser.


More information about the freebsd-ports mailing list