From owner-freebsd-ports@FreeBSD.ORG Sun Nov 21 12:27:33 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 D5F6F106566B for ; Sun, 21 Nov 2010 12:27:33 +0000 (UTC) (envelope-from afb@users.sourceforge.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 94AA58FC13 for ; Sun, 21 Nov 2010 12:27:33 +0000 (UTC) Received: from c83-248-163-52.bredband.comhem.se ([83.248.163.52]:51175 helo=[10.0.1.108]) by ch-smtp01.sth.basefarm.net with esmtps (TLSv1:AES128-SHA:128) (Exim 4.71) (envelope-from ) id 1PK8yn-00013v-6E; Sun, 21 Nov 2010 13:25:16 +0100 Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: =?iso-8859-1?Q?Anders_F_Bj=F6rklund?= In-Reply-To: Date: Sun, 21 Nov 2010 13:25:13 +0100 Content-Transfer-Encoding: 7bit Message-Id: <7EBEAFFD-A675-4BD9-8C83-5CEA24E2E026@users.sourceforge.net> References: To: utisoft@gmail.com X-Mailer: Apple Mail (2.1082) X-Originating-IP: 83.248.163.52 X-Scan-Result: No virus found in message 1PK8yn-00013v-6E. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1PK8yn-00013v-6E 1f2cd5172cba46b29faafadfb3dc6ad0 Cc: FreeBSD Ports Subject: Re: Finding files in packages (MANIFEST) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 12:27:33 -0000 Chris Rees wrote: >> For PackageKit's "app-install", I wanted to list all >> ports/packages that had a .desktop file (= an "app"). > 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 could work too (?), I guess I was also trying to determine which of the ports had a package available (for portinstall -P). PackageKit wants the index pre-generated in SQLite form anyway: https://github.com/hughsie/app-install i.e. it wants a SQL table with all the desktop files and their translations and a tarball with all their corresponding icons... So after screening the list of packages, it would still have to download each of them to extract the .desktop and (48x48) .png so I wanted the list of ports to match the packages available. Mostly since I didn't want to have to build every port first. Just thought the MANIFEST could be generated with the packages ? That way you wouldn't need to install the ports collection first. Even better would be if the app-install data would be created too, but that might be a taller order and could just go in a port/package. --anders