Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 11:31:09 +0100
From:      =?iso-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@users.sourceforge.net>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Finding files in packages (MANIFEST)
Message-ID:  <D3793130-2189-4EA5-9073-735DC9636E05@users.sourceforge.net>

next in thread | raw e-mail | index | archive | help

For PackageKit's "app-install", I wanted to list all
ports/packages that had a .desktop file (=3D an "app").

This ended up in a large number of "false positives",
since there is no list of the contents of each package.
So the brute-force method is to download *all* of them.

For Slackware, which also uses tarballs for packages,
it was easier because they also make a MANIFEST file
available in addition to the FILE_LIST (=3D ls -lR)...

=
ftp://ftp.sunet.se/pub/Linux/distributions/slackware/slackware64-13.1/slac=
kware64/FILE_LIST
=
ftp://ftp.sunet.se/pub/Linux/distributions/slackware/slackware64-13.1/slac=
kware64/MANIFEST.bz2
=
ftp://ftp.sunet.se/pub/Linux/distributions/slackware/slackware64-13.1/slac=
kware64/PACKAGES.TXT

Would it be possible to make such a file available
for FreeBSD Packages too ? (maybe even both of them)

--anders


PS. Here was the simple script I used to create mine:

#!/bin/sh

MF=3D/tmp/MANIFEST

for tbz in All/*.tbz
do
  echo $tbz
  echo "++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" >> ${MF}
  echo "||" >> ${MF}
  echo "||   Package: $tbz" >> ${MF}
  echo "||" >> ${MF}
  echo "++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" >> ${MF}
  tar tjvf $tbz >> ${MF}
done




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D3793130-2189-4EA5-9073-735DC9636E05>