From owner-freebsd-ports@FreeBSD.ORG Fri Oct 25 22:06:08 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1F46BF56 for ; Fri, 25 Oct 2013 22:06:08 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9B5CF2549 for ; Fri, 25 Oct 2013 22:06:07 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r9PM5woE061228 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 25 Oct 2013 23:05:58 +0100 (BST) (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r9PM5woE061228 Authentication-Results: smtp.infracaninophile.co.uk/r9PM5woE061228; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy) Message-ID: <526AEB3A.3020004@FreeBSD.org> Date: Fri, 25 Oct 2013 23:05:46 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: PKGNG: ability to view pkg-plist? References: <526AA934.10405@pcbsd.org> In-Reply-To: <526AA934.10405@pcbsd.org> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nUrkITD9bfH1A428sFMV1lti7XHDWLvtw" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 22:06:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nUrkITD9bfH1A428sFMV1lti7XHDWLvtw Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 25/10/2013 18:24, Ken Moore wrote: > I have been looking around, but I am unable to find a way to easily rea= d > the pkg-plist within a PKGNG package on the repository. Is this > functionality missing in pkg, or am I just missing something? If you've downloaded the package tarball, then like this: lucid-nonsense:...cache/pkg/All:% pkg info -l -F ./pkg-1.1.4_8.txz pkg-1.1.4_8: /usr/local/share/licenses/pkg-1.1.4_8/catalog.mk /usr/local/share/licenses/pkg-1.1.4_8/LICENSE /usr/local/share/licenses/pkg-1.1.4_8/BSD /usr/local/etc/pkg.conf.sample /usr/local/sbin/pkg /usr/local/sbin/pkg-static /usr/local/sbin/pkg2ng /usr/local/include/pkg.h /usr/local/lib/libpkg.so.1 /usr/local/lib/libpkg.so /usr/local/lib/libpkg.a /usr/local/etc/periodic/daily/400.status-pkg /usr/local/etc/periodic/daily/411.pkg-backup /usr/local/etc/periodic/daily/490.status-pkg-changes /usr/local/etc/periodic/security/410.pkg-audit /usr/local/etc/periodic/security/460.pkg-checksum /usr/local/libdata/pkgconfig/pkg.pc /usr/local/man/man3/pkg_printf.3.gz /usr/local/man/man5/pkg-repository.5.gz /usr/local/man/man5/pkg.conf.5.gz /usr/local/man/man8/pkg-add.8.gz /usr/local/man/man8/pkg-annotate.8.gz /usr/local/man/man8/pkg-audit.8.gz /usr/local/man/man8/pkg-autoremove.8.gz /usr/local/man/man8/pkg-backup.8.gz /usr/local/man/man8/pkg-check.8.gz /usr/local/man/man8/pkg-clean.8.gz /usr/local/man/man8/pkg-convert.8.gz /usr/local/man/man8/pkg-create.8.gz /usr/local/man/man8/pkg-delete.8.gz /usr/local/man/man8/pkg-fetch.8.gz /usr/local/man/man8/pkg-info.8.gz /usr/local/man/man8/pkg-install.8.gz /usr/local/man/man8/pkg-lock.8.gz /usr/local/man/man8/pkg-query.8.gz /usr/local/man/man8/pkg-register.8.gz /usr/local/man/man8/pkg-remove.8.gz /usr/local/man/man8/pkg-repo.8.gz /usr/local/man/man8/pkg-rquery.8.gz /usr/local/man/man8/pkg-search.8.gz /usr/local/man/man8/pkg-set.8.gz /usr/local/man/man8/pkg-shell.8.gz /usr/local/man/man8/pkg-shlib.8.gz /usr/local/man/man8/pkg-static.8.gz /usr/local/man/man8/pkg-stats.8.gz /usr/local/man/man8/pkg-unlock.8.gz /usr/local/man/man8/pkg-update.8.gz /usr/local/man/man8/pkg-updating.8.gz /usr/local/man/man8/pkg-upgrade.8.gz /usr/local/man/man8/pkg-version.8.gz /usr/local/man/man8/pkg-which.8.gz /usr/local/man/man8/pkg.8.gz /usr/local/share/zsh/site-functions/_pkg /usr/local/etc/bash_completion.d/_pkg.bash Otherwise there is an optional '-l' flag to 'pkg repo' that creates a database of all of the files installable by all of the packages in the repo -- which should be downloadable as 'filesite.txz'. Whether this exists or not depends on the choices of the repository maintainer. It's not currently available from the official repos for http://pkg.freebsd.or= g/ > Just for a bit of context: > I am working on adding the functionality into EasyPBI to work *without*= > a local copy of the ports tree available, so I am trying to grab all th= e > information about a given package from the remote repository (with user= > privileges) to maintain the "Easy" part of EasyPBI in the new version. > Most of the information can be easily pulled using "pkg rquery", but th= e > only thing I am still missing is the ability to search through the > pkg-plist for binaries/icons/etc.. Yeah -- the repository catalogue is a collection of selected package metadata for the packages in the repo. Unfortunately the lists of files and directories from each package aren't part of that selection. Mostly because of the space they'd take up. Whether it would be desirable to publish a 'filesite.txz' index of all the files in the packages on the official repos is a matter for debate. It would probably mean some changes to poudriere too -- I can't see any obvious way of telling it to run 'pkg repo -l' instead of plain 'pkg repo= '. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --nUrkITD9bfH1A428sFMV1lti7XHDWLvtw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSautFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATvXQP/1BvZ/UME/BiUhuVaU58XtAb tX1pe8eVPUdcNinBR25A9fqObuOmX4Dxb3oNqTUgDSweP6pQH0J+AKAUvZ1F3a2Q bKgLzP5HyW0COLlI9rGIqTUAWAgLj0DYWINPOhrJYWaqLTHnpJG2UHxE0rgvVgdI Yhr8Frnp8BFgleevS8ORQx57UnyHC0SUkPJZXRPiPTsoP8YeFVN6zk0qlsCq9dFZ nbb+Jkq8zTb2ZZRwml++qrZhFgBj2lA4SVjYDid+S8gkOK2Ym6GDdi4Fv714Gwvi fgDf7K2v0SagYp4i/R1g2k/kwQhtWyTlFg6RhzNlkmoaBVy0PQp7arEcuq9cWMOf tu5EugxzYmz7R/U3lB97UibYIfRiKVu50k7DLP9vh6tTdeCWvjmlSllFZR9L3jxv /jAYhQhL/zKDto5In8r+k4ahtyOhhT01ssTbBEAtwsL9+QGWRkiC7pYE72DImixv qrJ2kulfMfZ//N7qP64PzHUaATt5znYny0oWBRDlkAEU5qEiw55UmQHyRK12MIS6 pDR5dNSBICsfo0XHQtimYRKW3BjcvrdrKH3yaSPBF94tGwm5SvsM3kNXNfKOq1x6 uQq+kPlLH6ebij1pfMqQEqrZdj+YKf+U2fmZGewrveWu2cbGB5FzX+2stLa9Sq8u TAPp+XoFvpUgclvMwmge =SXHA -----END PGP SIGNATURE----- --nUrkITD9bfH1A428sFMV1lti7XHDWLvtw--