From owner-freebsd-ports@freebsd.org Tue Feb 11 00:50:57 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BB3F62492F7 for ; Tue, 11 Feb 2020 00:50:57 +0000 (UTC) (envelope-from SRS0=das0=37=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48GkjD3rd8z4Glx for ; Tue, 11 Feb 2020 00:50:56 +0000 (UTC) (envelope-from SRS0=das0=37=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 417642840C; Tue, 11 Feb 2020 01:50:53 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 66FD328423; Tue, 11 Feb 2020 01:50:52 +0100 (CET) Subject: Re: package +MANIFEST file - look inside To: Yuet-nan Wong , FreeBSD Ports References: <160165382.1065705.1581379482389.ref@mail.yahoo.com> <160165382.1065705.1581379482389@mail.yahoo.com> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <79716c76-408e-42a9-0e35-d8fb9e0feb7e@quip.cz> Date: Tue, 11 Feb 2020 01:50:52 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: <160165382.1065705.1581379482389@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48GkjD3rd8z4Glx X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=das0=37=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=das0=37=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [3.34 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; IP_SCORE(0.85)[ip: (0.33), ipnet: 94.124.104.0/21(0.17), asn: 42000(3.68), country: CZ(0.09)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.29)[0.292,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(1.00)[0.999,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=das0=37=quip.cz=000.fbsd@elsa.codelab.cz]; FREEMAIL_TO(0.00)[yahoo.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=das0=37=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2020 00:50:57 -0000 Yuet-nan Wong via freebsd-ports wrote on 2020/02/11 01:04: > 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. If you want to modify or run in in a better time then you probably need to know it before running pkg install / pkg upgrade command. Then you probably need to fetch a package alone (pkg upgrade with -f or --fetch-only) and then you can unpack +MANIFEST from it and use some JSON / YAML tool to examine content (e.g. textproc/jq). After that you can run pkg upgrade (or pkg install) again with -I or --no-install-scripts. > 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. You can get the list of the installed files by "pkg info -l pkgname" or "pkg query '%Fp' pkgname" Miroslav Lachman