Date: Tue, 11 Feb 2020 00:58:18 +0000 From: Bob Eager <rde@tavi.co.uk> To: freebsd-ports@freebsd.org Cc: Yuet-nan Wong <yuetnanwong128@yahoo.com> Subject: Re: package +MANIFEST file - look inside Message-ID: <20200211005818.003bd681@raksha.tavi.co.uk> In-Reply-To: <160165382.1065705.1581379482389@mail.yahoo.com> References: <160165382.1065705.1581379482389.ref@mail.yahoo.com> <160165382.1065705.1581379482389@mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.=A0 There are cases where we want to review what the scripts > section of the +MANIFEST contains.=A0 In particular the post-install > script. >=20 > 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. >=20 > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200211005818.003bd681>