Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 13:25:13 +0100
From:      =?iso-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@users.sourceforge.net>
To:        utisoft@gmail.com
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: Finding files in packages (MANIFEST)
Message-ID:  <7EBEAFFD-A675-4BD9-8C83-5CEA24E2E026@users.sourceforge.net>
In-Reply-To: <AANLkTi=--p%2Bp=Reue%2BC9HU_xm9P-rt_jyHtW%2BWUW44%2Bd@mail.gmail.com>
References:  <D3793130-2189-4EA5-9073-735DC9636E05@users.sourceforge.net> <AANLkTi=--p%2Bp=Reue%2BC9HU_xm9P-rt_jyHtW%2BWUW44%2Bd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7EBEAFFD-A675-4BD9-8C83-5CEA24E2E026>