From owner-freebsd-ports@FreeBSD.ORG Sun Nov 21 11:35:23 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A516106566B for ; Sun, 21 Nov 2010 11:35:23 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D94188FC14 for ; Sun, 21 Nov 2010 11:35:22 +0000 (UTC) Received: by bwz2 with SMTP id 2so5433224bwz.13 for ; Sun, 21 Nov 2010 03:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=8ltRP5UgCNdmhjxhr6YCn2Gejf8LXipBdnnZZAfif3Q=; b=pN1+A8izHHzCdzAE86fdn4IxJN/fUN7P9Xdko+4dJ0aUqFTLwuubjgm7SrgpshgSZ5 WyUhFKQYICO4WO+OoTwwFeJ2PNp18GXYz3lSzzI5IH08E4CJ+xhlTwRMJunwH506LcC0 V1Mb4E+Rl+nVY3KrwJfwmpHGRqKjLsVI5N6W0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=lRS+jgi8LwqdnWYRd2U59+mnmJrTJ7ermjboUwBLPhgD+np6bLayffzCDbCnWXkshe qCu8WbF50xOfiEvlVQk5FVIoX+QoZzih+88Zmp/r5xIhKP1PLCdzz7dNZi51adTMc6S8 Vu/1FPWt6mwx6p+e6Ee1s9RAhy6bufw4YLQnA= Received: by 10.204.71.136 with SMTP id h8mr4065297bkj.31.1290339321181; Sun, 21 Nov 2010 03:35:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.52.19 with HTTP; Sun, 21 Nov 2010 03:34:51 -0800 (PST) In-Reply-To: References: From: Chris Rees Date: Sun, 21 Nov 2010 11:34:51 +0000 Message-ID: To: =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Ports Subject: Re: Finding files in packages (MANIFEST) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 11:35:23 -0000 On 21 November 2010 10:31, Anders F Bj=F6rklund = 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