Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 11:34:51 +0000
From:      Chris Rees <utisoft@gmail.com>
To:        =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@users.sourceforge.net>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: Finding files in packages (MANIFEST)
Message-ID:  <AANLkTi=--p%2Bp=Reue%2BC9HU_xm9P-rt_jyHtW%2BWUW44%2Bd@mail.gmail.com>
In-Reply-To: <D3793130-2189-4EA5-9073-735DC9636E05@users.sourceforge.net>
References:  <D3793130-2189-4EA5-9073-735DC9636E05@users.sourceforge.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21 November 2010 10:31, Anders F Bj=F6rklund <afb@users.sourceforge.net>=
 wrote:
>
> 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/sla=
ckware64/FILE_LIST
> ftp://ftp.sunet.se/pub/Linux/distributions/slackware/slackware64-13.1/sla=
ckware64/MANIFEST.bz2
> ftp://ftp.sunet.se/pub/Linux/distributions/slackware/slackware64-13.1/sla=
ckware64/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
> =A0echo $tbz
> =A0echo "++=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}
> =A0echo "||" >> ${MF}
> =A0echo "|| =A0 Package: $tbz" >> ${MF}
> =A0echo "||" >> ${MF}
> =A0echo "++=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}
> =A0tar tjvf $tbz >> ${MF}
> done

I may be misunderstanding you here, but you could just:

[chris@amnesiac]~% echo /usr/ports/*/*/pkg-plist | xargs egrep
'\.desktop$' | sed 's|/usr/ports/[a-zA-Z]*/||' > contains_desktop

That works for me,

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=--p%2Bp=Reue%2BC9HU_xm9P-rt_jyHtW%2BWUW44%2Bd>