Date: Sun, 27 Nov 2005 13:05:41 +0200 From: Vasil Dimov <vd@datamax.bg> To: freebsd-ports@freebsd.org Subject: how to get the list of files installed by port, without installing it Message-ID: <20051127110541.GA91087@qlovarnika.bg.datamax>
next in thread | raw e-mail | index | archive | help
--BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, all How to get the list of files installed by port, without installing it? This question my seem easy to answer, but actually is not. Firstly let me give some details on my problem - I am working on a tool that will allow searching for ports that install given file, therefore I am searching for a way to extract files/dirs, that would be installed by a port, without actually having the distfile. The solution must be appliable to every port and needs to be fast (it will be applied to all ports in one run). pkg-plist gives some approach, but there are a lot of %%VARIABLES%% I want to get substituted in it, also some ports do not have pkg-plist and define PLIST_FILES and PLIST_DIRS. After some digging I discovered the generate-plist target. ``make generate-plist'' is really elegant one-line solution, but using it to solve my problem has a few flaws: 1. some ports (say benchmarks/lmbench) expect the archive to be unpacked 2. some ports generate dynamic lists like after installing doing something like find /specific/dir >> plist. This is really unresolvable without having the distfile(s) 3. it is somehow slow, doing it for all the ports takes 2-3 times more than ``make index'' If I do not find something better I will use generate-plist and ignore/workaround the above flaws. Any suggestions? --=20 Vasil Dimov --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFDiZMEFw6SP/bBpCARAnwKAKCnSfmjjPvw8Ch/bphXXh8rs/qgsACg4I0X 2wltoB2Jr2HpVuUFh5Pdp1s= =YAKg -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051127110541.GA91087>