On Tue, 11 Feb 2020 00:04:42 +0000 (UTC)
Yuet-nan Wong via freebsd-ports <freebsd-ports@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.
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to