[tracker/harmattan: 1/2240] Add debian directory for Harmattan
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/harmattan: 1/2240] Add debian directory for Harmattan
- Date: Thu, 4 Feb 2010 17:11:29 +0000 (UTC)
commit 6968c6f0b0efeabbe377aae15037998dd0818714
Author: Jürg Billeter <j bitron ch>
Date: Thu Apr 30 13:40:08 2009 +0200
Add debian directory for Harmattan
debian/changelog | 590 ++++++++++++++++++++
debian/compat | 1 +
debian/control | 73 +++
debian/copyright | 17 +
debian/libtrackerclient-0.7-0.install | 1 +
debian/libtrackerclient-0.7-dev.install | 3 +
.../01-configure-without-gtk-doc-tools.patch | 46 ++
debian/patches/02-default-config.patch | 64 +++
.../03-hal-removable-device-hack-for-mmc.patch | 18 +
debian/patches/05-disabling-indexer-modules.patch | 24 +
debian/patches/08-mce-for-call-status.patch | 438 +++++++++++++++
debian/rules | 81 +++
debian/tracker-cud.sh | 10 +
debian/tracker-utils.install | 8 +
debian/tracker.install | 18 +
debian/tracker.postinst | 6 +
debian/tracker.sh | 51 ++
debian/watch | 5 +
18 files changed, 1454 insertions(+), 0 deletions(-)
---
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..58bfdcd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,590 @@
+tracker (0.7.0-18harmattan-1) unstable; urgency=low
+
+ * Switched to SQLite FTS.
+ * Merged changes from 0.6 branch.
+ * Added tracker-processes tool.
+ * Implemented: SWP#MCoFr-167
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Fri, 24 Apr 2009 13:13:00 +0000
+
+tracker (0.7.0-17harmattan-1) unstable; urgency=low
+
+ * Fixed various bugs in the GStreamer extractor.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Tue, 21 Apr 2009 15:38:00 +0000
+
+tracker (0.7.0-16harmattan-1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Added image ontology.
+ * Improved handling of corrupted databases.
+ * Implemented: SWP#MCoFr-3
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Fri, 17 Apr 2009 09:15:00 +0000
+
+tracker (0.7.0-15harmattan-1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Fixed named blank nodes in SPARQL updates.
+ * Fixed cardinality information in NCAL ontology.
+ * Ported volume support from trunk.
+ * Implemented: SWP#MCoFr-85, SWP#MCoFr-82, SWP#MCoFr-53, SWP#MCoFr-45,
+ SWP#MCoFr-51, SWP#MCoFr-78, SWP#MCoFr-80, SWP#MCoFr-79, SWP#MCoFr-121,
+ SWP#MCoFr-120, SWP#MCoFr-119, SWP#MCoFr-56, SWP#MCoFr-86, SWP#MCoFr-9,
+ SWP#MCoFr-115, SWP#MCoFr-59, SWP#MCoFr-58, SWP#MCoFr-54, SWP#MCoFr-61,
+ SWP#MCoFr-71, SWP#MCoFr-27, SWP#MCoFr-81, SWP#MCoFr-63, SWP#MCoFr-62,
+ SWP#MCoFr-64, SWP#MCoFr-55, SWP#MCoFr-116, SWP#MCoFr-121, SWP#MCoFr-56,
+ SWP#MCoFr-86, SWP#MCoFr-117, SWP#MCoFr-180, SWP#MCoFr-52, SWP#MCoFr-23,
+ SWP#MCoFr-42, SWP#MCoFr-4, SWP#MCoFr-202, SWP#MCoFr-194, SWP#MCoFr-192,
+ SWP#MCoFr-191, SWP#MCoFr-8, SWP#MCoFr-130, SWP#MCoFr-65
+ * Fixes: NB#109693
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Mon, 6 Apr 2009 15:16:00 +0000
+
+tracker (0.7.0-14harmattan-1) unstable; urgency=low
+
+ * Added tracker-import tool
+ * Added documentation generator for ontology files
+ * Added transfers ontology (MTO)
+ * Added support for local file paths in tracker-info
+ * Linking files to datasource
+ * Various ontology updates
+
+ -- Ivan Frade <ivan frade nokia com> Tue, 31 Mar 2009 20:40:00 +0200
+
+tracker (0.7.0-13harmattan-1) unstable; urgency=low
+
+ * Added annotations for Qt D-Bus bindings.
+ * Fixed critical when using SQL keywords as SPARQL variable names.
+ * Fixed build.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Wed, 25 Mar 2009 16:54:00 +0000
+
+tracker (0.7.0-12harmattan-1) unstable; urgency=low
+
+ * More packaging fixes.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Wed, 25 Mar 2009 14:54:00 +0000
+
+tracker (0.7.0-11harmattan-1) unstable; urgency=low
+
+ * Added missing mce dependency.
+ * More D-Bus interface cleanup.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Wed, 25 Mar 2009 14:32:00 +0000
+
+tracker (0.7.0-10harmattan-1) unstable; urgency=low
+
+ * Fixed control file.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Wed, 25 Mar 2009 10:59:00 +0000
+
+tracker (0.7.0-9harmattan-1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Changed library and directory names to include API version.
+ * Added ontology for custom properties.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Tue, 24 Mar 2009 17:09:00 +0000
+
+tracker (0.7.0-8harmattan-1) unstable; urgency=low
+
+ * Added SPARQL support for deleting resources.
+ * Added support for class signals.
+ * Fixed database update after moving files.
+ * Updated ontology files to include range information.
+ * Updated URIs used for data sources.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Thu, 19 Mar 2009 17:12:00 +0000
+
+tracker (0.7.0-7harmattan-1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Fixed crash when starting trackerd with -r.
+ * Fixed modification time check on tracker restart.
+ * Fixed SQL errors when updating indexed files.
+ * Fixed TTL written for removable media.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Fri, 13 Mar 2009 16:44:00 +0000
+
+tracker (0.7.0-6harmattan-1) unstable; urgency=low
+
+ * Added web history ontology.
+ * Added tracker:isDefaultTag property.
+ * Fixed multiple OPTIONAL clauses in SPARQL queries.
+ * Fixed boolean literals in SPARQL queries.
+ * Fixed prefix handling in SPARQL queries.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Thu, 12 Mar 2009 17:07:00 +0000
+
+tracker (0.7.0-5harmattan-1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Converted ontologies to TTL.
+ * Fixed parsing for fulltext index.
+ * Various ontology fixes.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Wed, 11 Mar 2009 15:37:00 +0000
+
+tracker (0.7.0-4harmattan-1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Drop various unused functions.
+ * Build fixes.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Fri, 3 Mar 2009 15:12:00 +0000
+
+tracker (0.7.0-3harmattan1) unstable; urgency=low
+
+ * Fixed iptc extractor.
+ * Drop RDF query support, replaced by SPARQL.
+ * Drop broken XESAM support.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Fri, 3 Mar 2009 15:12:00 +0000
+
+tracker (0.7.0-2harmattan1) unstable; urgency=low
+
+ * Merged changes from trunk.
+ * Added SPARQL update support.
+ * Added experimental support for variables in SPARQL predicates.
+ * Added NMM ontology.
+ * Ported more extractors to Nepomuk.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Thu, 2 Mar 2009 15:57:00 +0000
+
+tracker (0.7.0-1harmattan1) unstable; urgency=low
+
+ * Initial release from decomposed branch.
+
+ -- Juerg Billeter <juerg billeter codethink co uk> Thu, 12 Feb 2009 11:18:00 +0000
+
+tracker (0.6.6-29osso2) unstable; urgency=low
+
+ * Fixes: upstream #441739, Hit count not updated after deleting files
+ * Fixed gint/guint bug with indexer word count update.
+ * Fixed performance issues with data lookups using INNER not OUTER joins.
+ * Fixed several build issues found by make distcheck.
+ * Fixed frame size and count calculations for MPEG-2/MPEG-25.
+ * Fixed thumnailer subsystem shutdown too early in tracker-extract.
+ * Fixed indexer critical warning spamming if module has no dir config
+ * Fixed a potential crasher in evolution pop module to get message flags.
+ * Fixed invalid data types in email/image metadata so they are recognized.
+ * Fixed metadata time_t usage so strings are used instead of dates.
+ * Added some initial test cases for tracker-extract.
+ * Added support for new Evolution plugin (push mechanism, not pull).
+
+ -- Martyn Russell <martyn imendio com> Fri, 16 Jan 2008 14:00:00 +0000
+
+tracker (0.6.6-28osso1) unstable; urgency=low
+
+ * Fixed files module to not sniff mime type if file doesn't exist.
+ * Fixed the paused_on_battery in status signal, use HAL not config value.
+ * Fixed evolution imap handling for databases with no folders.
+ * Fixed all metadata date storage in the DB as unix time.
+ * Fixed indexer to not update static db items, it is expensive.
+ * Fixed indexer to honor -f switch even if trackerd shuts down.
+ * Added initial tests for tracker-extract.
+ * Added missing metadata for mp3s, such as tracker number.
+ * Improved the number of processed/indexed indexer status feedback.
+ * Improved the evolution module in several ways.
+
+ -- Martyn Russell <martyn imendio com> Fri, 9 Jan 2008 14:00:00 +0000
+
+tracker (0.6.6-27osso2) unstable; urgency=low
+
+ * Removed .la files from tracker package.
+ * Removed all filters (are useless on the device) from tracker package.
+ * Fixed compilation warnings in very strict mode.
+ * Defined Playlist:TotalLength as non-embedded
+ * Removed deprecated glib symbols
+
+ -- Ivan Frade <ivan frade nokia com> Tue, 02 Jan 2009 18:39:00 +0200
+
+tracker (0.6.6-26osso1) unstable; urgency=low
+
+ * Fixed 2 spaces vs 1 space filename issue with album art.
+ * Fixed remaining escaping issues for metadata extraction for tracker-extact.
+ * Fixed MP3 extraction which was causing serious indexing speed delays.
+ * Fixed tracker-extract to initialize the thumbnailer preventing warnings.
+ * Updated patch 02 to make the config default value for sleeping 7 seconds.
+ * Updated tracker.sh to not include -s parameters to use the config instead.
+ * Added support for ANALYZE on the databases after finishing indexing.
+ * Added indexes to the Services table for some common fields.
+ * Added Turtle (backup/restore) support of the database.
+ * Added tighter warnings for compilation.
+ * Disabled debugging in tracker-extract which was flooding the console.
+
+ -- Martyn Russell <martyn imendio com> Fri, 19 Dec 2008 17:00:00 +0000
+
+tracker (0.6.6-25osso2) unstable; urgency=low
+
+ * Removed static libraries (*.a) from .install files.
+
+ -- Ivan Frade <ivan frade nokia com> Mon, 15 Dec 2008 10:39:00 +0200
+
+tracker (0.6.6.25osso1) unstable; urgency=low
+
+ * Updated patch 02-default-config.patch commenting out the MyDocs
+ folder monitor. It is avoiding to index the hidden directories
+ under it.
+ * Disabled compilation of static libraries
+ * Disabled verbosity on the extractor
+ * Fixed help output in command line tools
+ * Fixed support for empty strings as metadata values
+ * Fixed includes in tracker.h to avoid dbus problem
+ * Added support for multiple values in keyword fields
+ * Added support for relative paths in tracker tools
+ * Continue checking disk space after stopped (indexer)
+ * Requesting a thumbnail for embedded album-art
+
+ -- Ivan Frade <ivan frade nokia com> Fri, 12 Dec 2008 17:09:00 +0200
+
+tracker (0.6.6-24osso1) unstable; urgency=low
+
+ * Fixed recursive delete SQL statement.
+ * Fixed recursive delete so we don't call it on every file, only folders.
+ * Fixed tracker-indexer -p.
+ * Fixed calling stat() on deleted and moved files.
+ * Fixed tracker-preferences to not ask to reindex on every apply/ok.
+ * Fixed tracker-preferences evolution option to enable/disable.
+ * Fixed build for SUN compilers which don't have __FUNCTION__.
+ * Fixed indexer to not load modules disabled in the config.
+ * Fixed missing function warnings generated by gaim-conversations module.
+ * Fixed a TrackerConfig memory leak.
+ * Fixed the GLib dependency in configure to be 2.16 since we require it.
+ * Fixed package check for helixbin.
+ * Fixed thumbnailer dbus proxy object leak.
+ * Fixed some DBus timeout errors for keywords/files interfaces.
+ * Removed monitors when unmounting or folders are deleted,
+ * Removed thumbnailer code and scripts which are unused.
+ * Removed all .po files from the debian packaging.
+ * Removed all icons from the debian packaging.
+ * Added many indexer module API improvements.
+ * Added deep copy function for a GList of strings.
+ * Updated "tracker:unknown" keyword for metadata to "".
+ * Updated the documentation for trackerd/NEWS and README.
+ * Updated build to enable helixbin.
+
+ -- Martyn Russell <martyn imendio com> Fri, 5 Dec 2008 17:00:00 +0000
+
+tracker (0.6.6-23osso1) unstable; urgency=low
+
+ * Fixed tracker-extract crashing by ignoring rcore files.
+ * Fixed a few non-critical warning in the thumbnailer and libinotify.
+ * Fixed 100% CPU usage from trackerd in monitor code for cache events.
+ * Fixed tracker-applet so it causing the indexer to pause from debugging.
+ * Removed GnomeVFS dependency.
+ * Added multi-value metadata field extraction using '|' as separator.
+ * Updated default metadata, DC:Subject/DC:Keywords are now multi-valued.
+ * Updated stored procedures to us "AS" keyword for clarity.
+ * Updated the hildon-thumbnail implementation.
+
+ -- Martyn Russell <martyn imendio com> Fri, 27 Nov 2008 17:00:00 +0000
+
+tracker (0.6.6-22osso1) unstable; urgency=low
+
+ * Fixed all 64bit compilation issues.
+ * Fixed compile error with missing semi-colon in HAVE_IMAGEMAGICK code.
+ * Fixed the condition for building with hildon-thumbnail or not.
+ * Fixed build to error not continue with --enable-foo if it doesn't exist.
+ * Added GInterface and GTypeModule support for indexer modules.
+ * Added support for the Volumes database table.
+ * Updated the extractors with several code clean ups.
+ * Removed some unused stored procedures.
+
+ -- Martyn Russell <martyn imendio com> Fri, 21 Nov 2008 13:00:00 +0000
+
+tracker (0.6.6-21osso1) unstable; urgency=low
+
+ * Fixes upstream bug #560581, [l10n] Typo in Tracker message
+ * Fixed crash when passing empty GStrv to tracker_keywords_search().
+ * Fixed minor leaks in the MP3 extractor.
+ * Fixed inotify check in configure.ac so it works properly.
+ * Merged libtracker-data branch so now we have a high level DB API.
+ * Added dependency for totem-plparser to project and Maemo build.
+ * Added dependency for libtiff to Maemo build.
+
+ -- Martyn Russell <martyn imendio com> Fri, 14 Nov 2008 13:00:00 +0000
+
+tracker (0.6.6-20osso1) unstable; urgency=low
+
+ * Included function from glib to create folder with parents.
+
+ -- Ivan Frade <ivan frade nokia com> Mon, 10 Nov 2008 18:16:00 +0000
+
+tracker (0.6.6-19osso1) unstable; urgency=low
+
+ * Improvements to the indexer status and communication with daemon.
+ * Improvements to album art generation.
+ * Stop indexing if battery level is too low.
+
+ -- Ivan Frade <ivan frade nokia com> Fri, 04 Nov 2008 11:00:00 +0000
+
+tracker (0.6.6-18osso1) unstable; urgency=low
+
+ * Fixed upstream bug #402063, Empty space is not a valid keyword.
+ * Fixed upstream bug #558613, Applet preferences do not show up localized.
+ * Fixed upstream bug #402054.
+ * Support local album art on removable devices.
+ * Support embedded album art with no type definition if front cover found.
+
+ -- Martyn Russell <martyn imendio com> Fri, 31 Oct 2008 11:00:00 +0000
+
+tracker (0.6.6-17osso1) unstable; urgency=low
+
+ * Fixed the Search SQL query method.
+ * Fixed our use of hildon-thumbnail to use URIs not paths.
+ * Fixed make distcheck by adding hal/field-data to tracker-common.h.
+ * Fixed thumbnail generation using URIs not paths for hildon-thumbnail.
+ * Bumped version requirement of hildon-thumbnail to 3.0.7.
+ * Better handling of SIGPIPE.
+ * Better album art integration.
+ * Improvements to the ongoing Tracker FTS work.
+ * Added new metadata properties for videos.
+ * Added support for multiple rows in result sets for Metadata.Get.
+ * Added new test cases for database DBus API.
+
+ -- Martyn Russell <martyn imendio com> Fri, 24 Oct 2008 11:00:00 +0000
+
+tracker (0.6.6-16osso1) unstable; urgency=low
+
+ * Implemented: NR#190979 Added CUD (Clean user databases) script.
+ * Fixed upstream bug #556196, use sys/inotify.h.
+ * Fixed upstream bug #518265, update FSF address.
+ * Fixed upstream bug #548561, trackerd manpage typo.
+ * Fixed a leak in the indexer when getting thumbnails.
+ * Fixed double free when querying file metadata.
+ * Fixed the ignore pattern *~* to *~ for the files module.
+ * Fixed compiler warnings in libtracker-common and the mp3 extractor.
+ * Fixed the stat() warning we get when files are deleted.
+ * Fixed item removal in the database to do directories recursively.
+ * Fixed a huge leak (~9Mb) per call to tracker_search_get_snipet().
+ * Fixed a leak in the TrackerCrawler on finalize.
+ * Better handling for album art when we don't have GdkPixbuf.
+ * Downgraded GdkPixbuf requirement from 2.16 to 2.12.
+ * Make sure we clean up process contexts in the indexer.
+ * Don't send non-UTF-8 over DBus in the indexer for getting thumbnails.
+ * Improved file monitor events emitted, this is ongoing...
+ * Improved .sql file parser to allow bracketed comments.
+ * Improved TrackerParser to not read out of bounds and work properly.
+ * Removed the unnecessary DISTINCT usage in stored SQL procedures.
+ * Removed unused stored procedures we load on startup, now 50% less.
+
+ -- Martyn Russell <martyn imendio com> Fri, 17 Oct 2008 13:30:00 +0000
+
+tracker (0.6.6-15osso2) unstable; urgency=low
+
+ * Enable GdkPixbuf for album art since we have GTK+ >= 2.12.x.
+
+ -- Martyn Russell <martyn imendio com> Mon, 13 Oct 2008 09:30:00 +0000
+
+tracker (0.6.6-15osso1) unstable; urgency=low
+
+ * Fixed all tracker-utils to use setlocale(LC_ALL, "").
+ * Added GOption support and --help to tracker-extract.
+ * Added a direct-sql DBus API to run SQL statements directly on the DBs.
+ * Added 10 min timeout based SQLite connections for direct-sql feature.
+ * Added support for SQLite's shared cache feature for trackerd.
+ * Added more documentation for writing an indexer plugin.
+ * Make the tracker package depend on SQLite >= 3.5 (was 3.4).
+ * Make the tracker-indexer module library compile out-of-tree.
+ * Reworked TrackerPreferences to use the TrackerConfig API.
+ * Removed TrackerConfiguration in favor of TrackerConfig.
+ * Don't warn in tracker-extract for g_strstrip() on NULL string.
+ * Don't warn about GFileInfo unref on NULL object.
+ * Don't link with GdkPixbuf unless we have support it in extractors.
+ * Don't double free memory owned by TrackerOntology.
+ * Ran valgrind and plugged several leaks in Tracker{QueryTree|Metadata|DB}.
+
+ -- Martyn Russell <martyn imendio com> Fri, 10 Oct 2008 12:30:00 +0000
+
+tracker (0.6.6-14osso1) unstable; urgency=low
+
+ * debian/tracker.sh: Fixed pidfile dir and start-stop-daemon-path
+
+ -- Gabriel Schulhof <gabriel schulhof nokia com> Thu, 9 Oct 2008 14:33:51 +0300
+
+tracker (0.6.6-13osso1) unstable; urgency=low
+
+ * Fixed libtracker-common and tracker-indexer-module to be usable with pkgconfig.
+ * Added support for play lists.
+ * Added design documentation for tracker-indexer.
+ * Added a dummy extractor as an example for 3rd party developers.
+
+ -- Martyn Russell <martyn imendio com> Tue, 7 Oct 2008 14:30:00 +0000
+
+tracker (0.6.6-12osso2) unstable; urgency=low
+
+ * Fixed build to not require gtk-doc-tools.
+
+ -- Martyn Russell <martyn imendio com> Fri, 3 Oct 2008 14:30:00 +0000
+
+tracker (0.6.6-12osso1) unstable; urgency=low
+
+ * Fixed MMC indexing, devices were found but not traversed.
+ * Fixed inotify move events deleting items in DB before moving them.
+ * Fixed debugging so it doesn't look like we delete files with no metadata.
+ * Fixed files module to NOT re-check against exclude patterns.
+ * Fixed applications module to explain why we return no metadata.
+ * Fixed a bug that forced a reindex on every startup.
+ * Fixed multipart message handling for Evolutions IMAP using GMime.
+ * Fixed evolution module to try converting contents if not valid UTF-8.
+ * Added tracker-info and DBus API to get all metadata about a file.
+ * Added multi-valued field support for RDF queries (over DBus too).
+ * Added GetUniqueValuesWithCountAndSum API back.
+ * Added an MP3 album art extractor.
+ * Added documentation for trackerd design and the libraries using gtk-doc.
+ * Improved service/metadata loading to scan dir and not be a hardcoded list.
+ * Cleaned up unused DB functions.
+
+ -- Martyn Russell <martyn imendio com> Fri, 3 Oct 2008 13:30:00 +0000
+
+tracker (0.6.6-11osso1) unstable; urgency=low
+
+ * Old $prefix files now removed for TRUNK to indexer-split svn update.
+ * Tracker verbosity is now 0 not 3 by default.
+ * Fixed make distcheck and make check failures.
+ * Fixed indexer so that the score is positive when we add words to index.
+ * Fixed the UID=NULL error we get for indexing email.
+ * Fixed breakage on 64 bit platforms in evolution backend.
+ * Fixed a potential memory leak in the indexer metadata insertion.
+ * Added missing "Applications" category.
+ * Added missing description for File:Language.
+ * Added database version check for TRUNK to indexer-split svn update.
+
+ -- Martyn Russell <martyn imendio com> Fri, 25 Sep 2008 15:30:00 +0000
+
+tracker (0.6.6-10osso1) unstable; urgency=low
+
+ * Fixed a serious speed impairment in indexer.
+ * Fixed a crash in indexer where we didn't clean up IO channel watches.
+ * Fixed warnings generated by the PNG extractor passing NULL dates back.
+ * Fixed G_VALUE_HOLDS_INT (value) console warning.
+ * Fixed spamming warnings when indexing email. They were normal messages.
+ * Fixed warning when XDG_DATA_HOME env var is not set.
+ * Fixed the MMCs not being crawled.
+ * No longer collating static ontology service/field data for speed.
+ * Added support back for 3 legacy config options and a migration path.
+ * Added initial integration with new DBus based thumbnail service.
+ * Removed unused code in indexer and ontology modules.
+
+ -- Martyn Russell <martyn imendio com> Wed, 16 Sep 2008 17:00:00 +0000
+
+tracker (0.6.6-9osso1) unstable; urgency=low
+
+ * Fixed XDG_DATA_DIR issues, must be writable.
+ * Fixed RDF OR operator issues.
+ * Fixed audio extractors to check for a minimum amount of information.
+ * Fixed image extractors to use native data over EXIF/XMP data.
+ * Fixed issues with date handling in metadata.
+ * Fixed MP3 extractor to handle 'audio/x-mp3' metadata type.
+ * Fixed JPEG extractor memory leaks.
+ * Fixed the indexer by checking dates given by extractors.
+ * Fixed a crash in result sets.
+ * Fixed tracker-extract to use libtracker-common instead of dup funcs.
+ * Fixed trackerd init script to start in background so install can finish.
+ * Temporarily disabled thumbnail extraction.
+
+ -- Martyn Russell <martyn imendio com> Fri, 12 Sep 2008 11:25:00 +0000
+
+tracker (0.6.6-8osso1) unstable; urgency=low
+
+ * Closed tons of bugs, but removed from changelog to integrate.
+
+ -- Martyn Russell <martyn imendio com> Fri, 5 Sep 2008 12:25:00 +0000
+
+tracker (0.6.6-7osso1) unstable; urgency=low
+
+ * Initscript fixes
+
+ -- Lauri Jakku <ext-lauri jakku nokia com> Thu, 4 Sep 2008 15:09:09 +0300
+
+tracker (0.6.6-6osso1) unstable; urgency=low
+
+ * Fix PS external extractor module.
+ * Make GStreamer external extractor module handle images.
+ * Handle normalized URIs.
+ * Make text extraction asynchronous.
+ * Added a stats-changed signal.
+ * Make flush to index asynchronous and interruptable.
+ * Report correctly that the indexer has finished doing its work.
+ * Make the indexer wait for events more time.
+ * Implemented: NR#190967, NR#190657, NR#190658, NR#190659, NR#192028, NR#192027, NR#190048, NR#190016
+
+ -- Carlos Garnacho <carlos imendio com> Fri, 26 Aug 2008 19:06:00 +0000
+
+tracker (0.6.6-5osso1) unstable; urgency=low
+
+ * Split the index.db QDBM database into 2 for emails and files.
+ * Do not flush the index on pause.
+ * Fixed a nasty double free in the text parser.
+ * Fixed index corruption by not reopening the index if it was closed for flushing.
+ * Fixed crash by checking that rows exist before reading them for result sets.
+ * Fixed crash with strcmp and NULL strings in ontology hash tables.
+ * Fixed the "finish" signal not being emitted from the indexer->daemon.
+ * Fixed index and string type meta-data handling in queries.
+ * Removed imported libxdgmime, instead use GIO's API.
+ * Improve metadata merging for files which are moved.
+ * Added more meta-data types for images and folders for ontology.
+ * Added a "run-forever" feature to the indexer.
+ * Improved file MOVE events by dealing with source/targets we don't monitor.
+
+ -- Martyn Russell <martyn imendio com> Fri, 22 Aug 2008 16:37:00 +0000
+
+tracker (0.6.6-4osso1) unstable; urgency=low
+
+ * Cleaned up the configure script.
+ * Removed the --enable-debug-tools switch for configure.
+ * Added more checks to the --enable-warnings switch to catch unused code.
+ * Moved a lot of data for the build into data/.
+ * Check database items for already indexed files using mtime too.
+ * Don't create a new process for every extract.
+ * Don't flush the index when pausing it.
+ * Don't flush if there are items already in the cache.
+ * Fixed the NoWatchDirectoryRoots config option being ignored.
+ * Fixed the WatchDirectoryRoots config option so it crawls files too.
+ * Fixed the throttle in the crawler so the time is reduced significantly.
+ * Fixed the org.freedesktop.Tracker.Files.{Create|Delete} interfaces.
+ * Fixed the limit and offset in unique value queries.
+ * Fixed many places where uninitialised variables were used causing crashes.
+ * Fixed the status signal index on battery information.
+ * Minor bug fixes to the RDF queries.
+ * Ignore "Sent" folders for email.
+ * Added sorting fields to RDF queries and improved error reporting.
+ * Added MOVE support for file monitors using an imported version of libinotify.
+ * Added a minimum throttle of 5 by default instead of returning on 0.
+
+ -- Martyn Russell <martyn imendio com> Wed, 20 Aug 2008 19:22:00 +0000
+
+tracker (0.6.6-3osso1) unstable; urgency=low
+
+ * Pause the indexer properly.
+ * Pause the indexer when we have IO changes (monitor events).
+ * Shutdown the indexer when the daemon is shutdown.
+ * Index speed improvements.
+ * Utility improvements (print help if no args supplied).
+ * Fixed some nasty memory leaks in the indexer using valgrind.
+ * Only read file content up to maximum size we index not the whole file.
+ * Added thumbnail scripts for images.
+ * Added extractors for JPEG and TIFF.
+
+ -- Martyn Russell <martyn imendio com> Fri, 15 Aug 2008 12:00:00 +0000
+
+tracker (0.6.6-1osso2) unstable; urgency=low
+
+ * First packages for the Maemo version of the upstream indexer-split branch.
+
+ -- Martyn Russell <martyn imendio com> Wed, 13 Aug 2008 09:53:00 +0000
+
+tracker (0.6.6-1) unstable; urgency=low
+
+ * Added patches for maemo plattform and compilation
+
+ -- Ivan Frade <ivan frade nokia com> Thu, 22 May 2008 20:05:00 +0000
+
+
+tracker (0.6.4-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Martyn Russell <martyn imendio com> Fri, 9 Jan 2008 12:00:00 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..375ed8b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,73 @@
+Source: tracker
+Section: utils
+Priority: optional
+Maintainer: Urho Konttori <urho konttori nokia com>
+XS-Python-Version: all
+Build-Depends: cdbs, debhelper (>= 5.0.0), autotools-dev,
+ libxml-parser-perl, libglib2.0-dev (>= 2.16.0), libpango1.0-dev
+ (>=1.0.0), libdbus-1-dev (>= 0.60), libdbus-glib-1-dev (>= 0.60),
+ libgmime-2.0-2-dev (>= 2.2.0), libsqlite3-dev (>= 3.5),
+ libexif-dev (>= 0.6), libpng12-dev
+ (>=1.2), libgtk2.0-dev (>= 2.8.0), zlib1g-dev, intltool, libhal-dev
+ (>= 0.5.10), libhal-storage-dev (>= 0.5.10), gtk-doc-tools,
+ libexempi-dev, libjpeg62-dev, valac (>= 0.7.0),
+ libtiff4-dev (>= 3.8.2), libxml2-dev, libpoppler-glib-dev,
+ libgstreamer0.10-dev (>= 0.10.20), libgstreamer-plugins-base0.10-dev
+ (>= 0.10.20), libtotem-plparser-dev, libiptcdata0-dev,
+ libraptor1-dev, uuid-dev, mce-dev
+Standards-Version: 3.7.2
+
+Package: tracker
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, shared-mime-info, dbus,
+ libhal1, libhal-storage1, libexempi3,
+ libjpeg62, libgstreamer0.10-0, libgstreamer-plugins-base0.10-0,
+ libtiff4 (>= 3.8.2), libxml2, libpoppler0c2-glib,
+ libtotem-plparser12, libiptcdata0, libraptor1, libuuid1, mce
+Recommends: tracker-utils, unzip, wv, poppler-utils | xpdf-utils,
+ xsltproc, w3m, untex, o3read
+Suggests: evince, djvulibre-bin, gnumeric
+Description: All-in-one indexer, search tool and metadata database.
+
+Package: tracker-dbg
+Architecture: any
+Priority: extra
+Depends: tracker (= ${binary:Version})
+Description: All-in-one indexer, search tool and metadata database.
+
+Package: libtrackerclient-0.7-0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Tracker client side library to access indexed data.
+
+Package: libtrackerclient-0.7-dbg
+Architecture: any
+Priority: extra
+Depends: libtrackerclient-0.7-0 (= ${binary:Version})
+Description: Tracker client side library to access indexed data.
+
+Package: libtrackerclient-0.7-dev
+Architecture: any
+Section: libdevel
+Depends: libtrackerclient-0.7-0 (= ${binary:Version}), libglib2.0-dev,
+ libdbus-1-dev, libdbus-glib-1-dev
+Description: Tracker client side library to access indexed data.
+
+Package: tracker-utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, tracker (= ${binary:Version})
+Description: Tracker command line applications to lookup data
+ Included utilities for Tracker:
+ * tracker-import: Import TTL files.
+ * tracker-search: Perform a google-like search on all data.
+ * tracker-sparql: Run a SPARQL query against the databases.
+ * tracker-stats: Get statistics on how many items are indexed.
+ * tracker-status: Get the current state of the daemon (idle/indexing/etc).
+ * tracker-tag: Add, remove, list tags for specific files.
+
+Package: tracker-utils-dbg
+Architecture: any
+Priority: extra
+Depends: tracker-utils (= ${binary:Version})
+Description: Tracker command line applications to lookup data
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f807578
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,17 @@
+This package was debianized by Michael Biebl <biebl debian org> and
+patched by Martyn Russell <martyn imendio com>
+Wed, 9 Jan 2008 11:14:00 +0000.
+
+It was downloaded from svn.gnome.org
+
+Upstream Authors:
+ see AUTHORS file.
+
+Copyright:
+
+ tracker is distributed under the terms of the GNU GPL and GNU LGPL:
+
+ /usr/share/common-licenses/GPL.
+ /usr/share/common-licenses/LGPL.
+
+ See individual source files for more information.
diff --git a/debian/libtrackerclient-0.7-0.install b/debian/libtrackerclient-0.7-0.install
new file mode 100644
index 0000000..388240c
--- /dev/null
+++ b/debian/libtrackerclient-0.7-0.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libtrackerclient-0.7.so.*
diff --git a/debian/libtrackerclient-0.7-dev.install b/debian/libtrackerclient-0.7-dev.install
new file mode 100644
index 0000000..77e2311
--- /dev/null
+++ b/debian/libtrackerclient-0.7-dev.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libtrackerclient-0.7.so
+debian/tmp/usr/include/tracker.h
+debian/tmp/usr/lib/pkgconfig/tracker-0.7.pc
diff --git a/debian/patches/01-configure-without-gtk-doc-tools.patch b/debian/patches/01-configure-without-gtk-doc-tools.patch
new file mode 100644
index 0000000..44e792b
--- /dev/null
+++ b/debian/patches/01-configure-without-gtk-doc-tools.patch
@@ -0,0 +1,46 @@
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 30687)
++++ configure.ac (working copy)
+@@ -1010,10 +1010,7 @@ fi
+ # Checks for gtk-doc and docbook-tools
+ ##################################################
+
+-GTK_DOC_CHECK([1.8])
+-
+-AC_CHECK_PROG(DB2HTML, db2html, true, false)
+-AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
++AM_CONDITIONAL(HAVE_DOCBOOK, false)
+
+ ##################################################################
+ # Check for Hildon-thumbnail
+Index: docs/reference/libtracker-common/Makefile.am
+===================================================================
+--- docs/reference/libtracker-common/Makefile.am (revision 30687)
++++ docs/reference/libtracker-common/Makefile.am (working copy)
+@@ -60,7 +60,9 @@ HTML_IMAGES =
+ # Extra options to supply to gtkdoc-fixref
+ FIXXREF_OPTIONS=
+
+-include $(top_srcdir)/gtk-doc.make
++# Commented out for Maemo built to work.
++# include $(top_srcdir)/gtk-doc.make
++EXTRA_DIST =
+
+ # Other files to distribute
+ EXTRA_DIST += version.xml.in
+Index: docs/reference/libtracker-module/Makefile.am
+===================================================================
+--- docs/reference/libtracker-module/Makefile.am (revision 30687)
++++ docs/reference/libtracker-module/Makefile.am (working copy)
+@@ -75,7 +75,9 @@ HTML_IMAGES =
+ # Extra options to supply to gtkdoc-fixref
+ FIXXREF_OPTIONS=
+
+-include $(top_srcdir)/gtk-doc.make
++# Commented out for Maemo built to work.
++#include $(top_srcdir)/gtk-doc.make
++EXTRA_DIST =
+
+ # Other files to distribute
+ EXTRA_DIST += version.xml.in
diff --git a/debian/patches/02-default-config.patch b/debian/patches/02-default-config.patch
new file mode 100644
index 0000000..06c637e
--- /dev/null
+++ b/debian/patches/02-default-config.patch
@@ -0,0 +1,64 @@
+diff --git a/src/libtracker-common/tracker-config.c b/src/libtracker-common/tracker-config.c
+index bbcbf5b..cefb944 100644
+--- a/src/libtracker-common/tracker-config.c
++++ b/src/libtracker-common/tracker-config.c
+@@ -76,7 +76,7 @@
+
+ /* Default values */
+ #define DEFAULT_VERBOSITY 0
+-#define DEFAULT_INITIAL_SLEEP 45 /* 0->1000 */
++#define DEFAULT_INITIAL_SLEEP 7 /* 0->1000 */
+ #define DEFAULT_LOW_MEMORY_MODE FALSE
+ #define DEFAULT_NFS_LOCKING FALSE
+ #define DEFAULT_ENABLE_WATCHES TRUE
+@@ -89,15 +89,15 @@
+ #define DEFAULT_MIN_WORD_LENGTH 3 /* 0->30 */
+ #define DEFAULT_MAX_WORD_LENGTH 30 /* 0->200 */
+ #define DEFAULT_ENABLE_STEMMER TRUE
+-#define DEFAULT_DISABLE_INDEXING_ON_BATTERY TRUE
++#define DEFAULT_DISABLE_INDEXING_ON_BATTERY FALSE
+ #define DEFAULT_DISABLE_INDEXING_ON_BATTERY_INIT FALSE
+ #define DEFAULT_INDEX_MOUNTED_DIRECTORIES TRUE
+ #define DEFAULT_INDEX_REMOVABLE_DEVICES TRUE
+ #define DEFAULT_LOW_DISK_SPACE_LIMIT 1 /* 0->100 / -1 */
+ #define DEFAULT_MAX_TEXT_TO_INDEX 1048576 /* Bytes */
+ #define DEFAULT_MAX_WORDS_TO_INDEX 10000
+-#define DEFAULT_MAX_BUCKET_COUNT 524288
+-#define DEFAULT_MIN_BUCKET_COUNT 65536
++#define DEFAULT_MAX_BUCKET_COUNT 65535
++#define DEFAULT_MIN_BUCKET_COUNT 32768
+
+ typedef struct _TrackerConfigPrivate TrackerConfigPrivate;
+
+@@ -789,8 +789,20 @@ config_create_with_defaults (GKeyFile *key_file,
+ gboolean overwrite)
+ {
+ gchar *language;
+- const gchar *watch_directory_roots[2] = { NULL, NULL };
+ const gchar *empty_string_list[] = { NULL };
++ const gchar *no_watch_directory_roots[3] = {
++ "$HOME/MyDocs/core-dumps/",
++ "$HOME/MyDocs/cities/",
++ NULL
++ };
++ const gchar *watch_directory_roots[6] = {
++ "$HOME/MyDocs/",
++ "$HOME/MyDocs/.sounds/",
++ "$HOME/MyDocs/.documents/",
++ "$HOME/MyDocs/.videos/",
++ "$HOME/MyDocs/.images/",
++ NULL
++ };
+
+ /* Get default values */
+ language = tracker_language_get_default_code ();
+@@ -852,7 +864,8 @@ config_create_with_defaults (GKeyFile *key_file,
+
+ if (overwrite || !g_key_file_has_key (key_file, GROUP_WATCHES, KEY_NO_WATCH_DIRECTORY_ROOTS, NULL)) {
+ g_key_file_set_string_list (key_file, GROUP_WATCHES, KEY_NO_WATCH_DIRECTORY_ROOTS,
+- empty_string_list, 0);
++ no_watch_directory_roots,
++ g_strv_length ((gchar**) no_watch_directory_roots));
+ g_key_file_set_comment (key_file, GROUP_WATCHES, KEY_NO_WATCH_DIRECTORY_ROOTS,
+ " List of directory roots NOT to index and NOT to watch (separator=;)",
+ NULL);
diff --git a/debian/patches/03-hal-removable-device-hack-for-mmc.patch b/debian/patches/03-hal-removable-device-hack-for-mmc.patch
new file mode 100644
index 0000000..a6b46a5
--- /dev/null
+++ b/debian/patches/03-hal-removable-device-hack-for-mmc.patch
@@ -0,0 +1,18 @@
+Index: src/libtracker-common/tracker-hal.c
+===================================================================
+--- src/libtracker-common/tracker-hal.c (revision 30468)
++++ src/libtracker-common/tracker-hal.c (working copy)
+@@ -515,6 +515,13 @@ hal_device_is_removable (TrackerHal *ha
+ LibHalDrive *drive;
+ gboolean removable;
+
++ /* FIXME: This is a hack for Maemo only. For some reason this
++ * function says the MMC is NOT removable, for now we always
++ * return TRUE because there is only one HAL device and that
++ * is the MMC.
++ */
++ return TRUE;
++
+ if (!device_file) {
+ return FALSE;
+ }
diff --git a/debian/patches/05-disabling-indexer-modules.patch b/debian/patches/05-disabling-indexer-modules.patch
new file mode 100644
index 0000000..e406843
--- /dev/null
+++ b/debian/patches/05-disabling-indexer-modules.patch
@@ -0,0 +1,24 @@
+Index: data/modules/gaim-conversations.module
+===================================================================
+--- data/modules/gaim-conversations.module (revisión: 31609)
++++ data/modules/gaim-conversations.module (copia de trabajo)
+@@ -1,6 +1,6 @@
+ [General]
+ Description=GAIM Conversations
+-Enabled=true
++Enabled=false
+
+ [Monitors]
+ Directories=
+Index: data/modules/evolution.module
+===================================================================
+--- data/modules/evolution.module (revisión: 31609)
++++ data/modules/evolution.module (copia de trabajo)
+@@ -1,6 +1,6 @@
+ [General]
+ Description=Evolution
+-Enabled=true
++Enabled=false
+
+ [Monitors]
+ Directories=
diff --git a/debian/patches/08-mce-for-call-status.patch b/debian/patches/08-mce-for-call-status.patch
new file mode 100644
index 0000000..b78fd48
--- /dev/null
+++ b/debian/patches/08-mce-for-call-status.patch
@@ -0,0 +1,438 @@
+Index: configure.ac
+===================================================================
+--- configure.ac (revision 36841)
++++ configure.ac (working copy)
+@@ -104,6 +104,7 @@ if test "x$have_function" = "xno" ; then
+ fi
+
+ # Library required versions
++MCE_REQUIRED=0.1 # FIXME: Need real version here.
+ DBUS_REQUIRED=0.60
+ GLIB_REQUIRED=2.16.0
+ PANGO_REQUIRED=1.0.0
+@@ -247,6 +248,37 @@ fi
+ AC_SUBST(GCOV_CFLAGS)
+ AC_SUBST(GCOV_LIBS)
+
++####################################################################
++# Should we build MCE Maemo package integration
++####################################################################
++
++AC_ARG_ENABLE(mce,
++ AS_HELP_STRING([--enable-mce],
++ [enable MCE Maemo package integration (default=yes)]), ,
++ [enable_mce=yes])
++
++if test "x$enable_mce" != "xno" ; then
++ PKG_CHECK_MODULES(MCE,
++ [mce >= $MCE_REQUIRED],
++ [have_mce=yes],
++ [have_mce=no])
++ AC_SUBST(MCE_CFLAGS)
++ AC_SUBST(MCE_LIBS)
++
++ if test "x$have_mce" = "xyes"; then
++ AC_DEFINE(HAVE_MCE, [], [Define if we have MCE Maemo package integration])
++ fi
++else
++ have_mce="no (disabled)"
++fi
++
++if test "x$enable_mce" = "xyes"; then
++ if test "x$have_mce" != "xyes"; then
++ AC_MSG_ERROR([Couldn't find MCE >= $MCE_REQUIRED.])
++ fi
++fi
++
++AM_CONDITIONAL(HAVE_MCE, test "x$have_mce" = "xyes")
+
+ ####################################################################
+ # Should we build GLib based unit tests
+Index: src/trackerd/Makefile.am
+===================================================================
+--- src/trackerd/Makefile.am (revision 36841)
++++ src/trackerd/Makefile.am (working copy)
+@@ -27,12 +27,19 @@ if HAVE_INOTIFY
+ inotify_libs = $(top_builddir)/src/libinotify/libinotify.la
+ endif
+
++if HAVE_MCE
++mce_sources = \
++ tracker-mce.c \
++ tracker-mce.h
++endif
++
+ #
+ # Daemon sources
+ #
+ libexec_PROGRAMS = trackerd
+
+ trackerd_SOURCES = \
++ $(mce_sources) \
+ tracker-backup.h \
+ tracker-backup.c \
+ tracker-crawler.c \
+Index: src/trackerd/tracker-mce.c
+===================================================================
+--- src/trackerd/tracker-mce.c (revision 0)
++++ src/trackerd/tracker-mce.c (revision 0)
+@@ -0,0 +1,282 @@
++/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
++/*
++ * Copyright (C) 2009, Nokia
++ *
++ * This library is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public
++ * License as published by the Free Software Foundation; either
++ * version 2 of the License, or (at your option) any later version.
++ *
++ * This library is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public
++ * License along with this library; if not, write to the
++ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
++ * Boston, MA 02110-1301, USA.
++ */
++
++#include "config.h"
++
++#include <mce/dbus-names.h>
++#include <mce/mode-names.h>
++
++#define DBUS_API_SUBJECT_TO_CHANGE
++#include <dbus/dbus-glib-lowlevel.h>
++
++#include "tracker-dbus.h"
++#include "tracker-mce.h"
++#include "tracker-status.h"
++
++/* This define means, don't use DBus GLib bindings */
++#define OLD_SCHOOL
++
++typedef struct {
++#ifndef OLD_SCHOOL
++ DBusGProxy *proxy;
++#else /* OLD_SCHOOL */
++ DBusConnection *connection;
++#endif /* OLD_SCHOOL */
++
++ gchar *call_state;
++ gchar *call_emergency_state;
++} TrackerMCEPrivate;
++
++#ifdef OLD_SCHOOL
++static DBusHandlerResult mce_dbus_filter_cb (DBusConnection *connection,
++ DBusMessage *message,
++ void *user_data);
++#endif /* OLD_SCHOOL */
++
++static GStaticPrivate private_key = G_STATIC_PRIVATE_INIT;
++
++static void
++private_free (gpointer data)
++{
++ TrackerMCEPrivate *private;
++
++ private = data;
++
++ g_free (private->call_state);
++ g_free (private->call_emergency_state);
++
++#ifndef OLD_SCHOOL
++ if (private->proxy) {
++ g_object_unref (private->proxy);
++ }
++#else /* OLD_SCHOOL */
++ if (private->connection) {
++ dbus_connection_remove_filter (private->connection,
++ mce_dbus_filter_cb,
++ NULL);
++ dbus_connection_unref (private->connection);
++ }
++#endif /* OLD_SCHOOL */
++
++
++ g_free (private);
++}
++
++#ifndef OLD_SCHOOL
++
++static void
++mce_call_state_changed (DBusGProxy *proxy,
++ const gchar *call_state,
++ const gchar *call_emergency_state,
++ gpointer user_data)
++{
++ TrackerMCEPrivate *private;
++
++ private = g_static_private_get (&private_key);
++ g_return_if_fail (private != NULL);
++
++ g_message ("Call state changed from '%s'/'%s' --> '%s'/'%s'",
++ private->call_state ? private->call_state : "",
++ private->call_emergency_state ? private->call_emergency_state : "",
++ call_state ? call_state : "",
++ call_emergency_state ? call_emergency_state : "");
++
++ /* Save new state */
++ g_free (private->call_state);
++ private->call_state = g_strdup (call_state);
++
++ g_free (private->call_emergency_state);
++ private->call_emergency_state = g_strdup (call_emergency_state);
++
++ /* Change our state internally based on new state */
++ if (g_strcmp0 (call_state, MCE_CALL_STATE_NONE)) {
++ /* Continue */
++ tracker_status_set_is_paused_manually (FALSE);
++ } else {
++ /* Pause */
++ tracker_status_set_is_paused_manually (TRUE);
++ }
++}
++
++#else /* OLD_SCHOOL */
++
++static DBusHandlerResult
++mce_dbus_filter_cb (DBusConnection *connection,
++ DBusMessage *message,
++ void *user_data)
++{
++ TrackerMCEPrivate *private;
++
++ private = g_static_private_get (&private_key);
++ g_return_val_if_fail (private != NULL, DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
++
++ if (dbus_message_is_signal (message, MCE_SIGNAL_IF, MCE_CALL_STATE_SIG)) {
++ DBusError error;
++ gchar *call_state;
++ gchar *call_emergency_state;
++
++ dbus_error_init (&error);
++
++ dbus_message_get_args (message,
++ &error,
++ DBUS_TYPE_STRING, &call_state,
++ DBUS_TYPE_STRING, &call_emergency_state,
++ DBUS_TYPE_INVALID);
++
++ g_message ("MCE call/emergency state changed from '%s'/'%s' --> '%s'/'%s'",
++ private->call_state ? private->call_state : "",
++ private->call_emergency_state ? private->call_emergency_state : "",
++ call_state ? call_state : "",
++ call_emergency_state ? call_emergency_state : "");
++
++ /* Save new state */
++ g_free (private->call_state);
++ private->call_state = g_strdup (call_state);
++
++ g_free (private->call_emergency_state);
++ private->call_emergency_state = g_strdup (call_emergency_state);
++
++ /* Change our state internally based on new state */
++ if (g_strcmp0 (call_state, MCE_CALL_STATE_NONE) == 0) {
++ /* Continue */
++ tracker_status_set_is_paused_manually (FALSE);
++ } else {
++ /* Pause */
++ tracker_status_set_is_paused_manually (TRUE);
++ }
++ }
++
++ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
++}
++
++#endif /* OLD_SCHOOL */
++
++gboolean
++tracker_mce_init (void)
++{
++ TrackerMCEPrivate *private;
++
++ private = g_new0 (TrackerMCEPrivate, 1);
++
++ g_static_private_set (&private_key,
++ private,
++ private_free);
++
++#ifndef OLD_SCHOOL
++ DBusGConnection *connection;
++ GError *error = NULL;
++
++ g_message ("MCE DBus connection being set up...");
++ connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
++
++ if (!connection) {
++ g_critical ("Could not connect to the DBus session bus, %s",
++ error ? error->message : "no error given.");
++ g_clear_error (&error);
++ return FALSE;
++ }
++
++ private->proxy =
++ dbus_g_proxy_new_for_name (connection,
++ MCE_SERVICE,
++ MCE_SIGNAL_PATH,
++ MCE_SIGNAL_IF);
++
++ dbus_g_proxy_add_signal (private->proxy,
++ MCE_CALL_STATE_SIG,
++ G_TYPE_STRING,
++ G_TYPE_STRING,
++ G_TYPE_INVALID);
++
++ dbus_g_proxy_connect_signal (private->proxy,
++ MCE_CALL_STATE_SIG,
++ G_CALLBACK (mce_call_state_changed),
++ NULL,
++ NULL);
++
++ g_message ("Requesting current call state");
++
++ dbus_g_proxy_call (private->proxy,
++ MCE_CALL_STATE_GET, &error,
++ G_TYPE_INVALID,
++ G_TYPE_STRING, &private->call_state,
++ G_TYPE_STRING, &private->call_emergency_state,
++ G_TYPE_INVALID);
++
++ if (error) {
++ g_critical ("Could not request current call state, %s",
++ error ? error->message : "no error given.");
++ g_clear_error (&error);
++ } else {
++ g_message (" Call state is '%s'/'%s'",
++ private->call_state ? private->call_state : "",
++ private->call_emergency_state ? private->call_emergency_state : "");
++ }
++#else /* OLD_SCHOOL */
++ DBusError error;
++ gchar *rule;
++
++ dbus_error_init (&error);
++
++ g_message ("Setting up MCE connection");
++
++ /* DBus connection */
++ private->connection = dbus_bus_get (DBUS_BUS_SYSTEM, &error);
++ if (!private->connection) {
++ g_critical ("Could not connect to the DBus system bus, %s",
++ error.message ? error.message : "no error given.");
++ dbus_error_free (&error);
++ return FALSE;
++ }
++
++ /* Filter for traffic we are interested in */
++ if (!dbus_connection_add_filter (private->connection,
++ mce_dbus_filter_cb,
++ NULL,
++ NULL)) {
++ g_critical ("Could not add filter to DBus connection");
++ return FALSE;
++ }
++
++ /* Rule for filter */
++ rule = g_strdup_printf ("type='signal', sender='%s', interface='%s'",
++ MCE_SERVICE,
++ MCE_SIGNAL_IF);
++ dbus_bus_add_match (private->connection, rule, &error);
++ g_free (rule);
++
++ if (dbus_error_is_set (&error)) {
++ g_critical ("Could not set rule for filter, %s",
++ error.message ? error.message : "no error given");
++ dbus_error_free (&error);
++ return FALSE;
++ }
++
++ g_message (" Ready for call/emergency state changes!");
++#endif /* OLD_SCHOOL */
++
++ return TRUE;
++}
++
++void
++tracker_mce_shutdown (void)
++{
++ g_static_private_set (&private_key, NULL, NULL);
++}
+Index: src/trackerd/tracker-mce.h
+===================================================================
+--- src/trackerd/tracker-mce.h (revision 0)
++++ src/trackerd/tracker-mce.h (revision 0)
+@@ -0,0 +1,33 @@
++/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
++/*
++ * Copyright (C) 2009, Nokia
++ *
++ * This library is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public
++ * License as published by the Free Software Foundation; either
++ * version 2 of the License, or (at your option) any later version.
++ *
++ * This library is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ * General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public
++ * License along with this library; if not, write to the
++ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
++ * Boston, MA 02110-1301, USA.
++ */
++
++#ifndef __TRACKERD_MCE_H__
++#define __TRACKERD_MCE_H__
++
++#include <glib.h>
++
++G_BEGIN_DECLS
++
++gboolean tracker_mce_init (void);
++void tracker_mce_shutdown (void);
++
++G_END_DECLS
++
++#endif /* __TRACKERD_MCE_H__ */
+Index: src/trackerd/tracker-main.c
+===================================================================
+--- src/trackerd/tracker-main.c (revision 36841)
++++ src/trackerd/tracker-main.c (working copy)
+@@ -72,6 +72,10 @@
+ #include "tracker-backup.h"
+ #include "tracker-daemon.h"
+
++#ifdef HAVE_MCE
++#include "tracker-mce.h"
++#endif
++
+ #ifdef G_OS_WIN32
+ #include <windows.h>
+ #include <pthread.h>
+@@ -998,6 +1002,12 @@ main (gint argc, gchar *argv[])
+ NULL);
+ #endif /* HAVE_HAL */
+
++#ifdef HAVE_MCE
++ if (!tracker_mce_init ()) {
++ return EXIT_FAILURE;
++ }
++#endif /* HAVE_MCE */
++
+ tracker_status_init (config, hal);
+
+ tracker_module_config_init ();
+@@ -1163,6 +1173,10 @@ main (gint argc, gchar *argv[])
+ tracker_thumbnailer_shutdown ();
+ tracker_log_shutdown ();
+
++#ifdef HAVE_MCE
++ tracker_mce_shutdown ();
++#endif /* HAVE_MCE */
++
+ #ifdef HAVE_HAL
+ g_signal_handlers_disconnect_by_func (hal,
+ mount_point_added_cb,
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5588e45
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,81 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/class/gnome.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/utils.mk
+
+# Skip .svn dirs if any in the build directories
+DEB_DH_ALWAYS_EXCLUDE := .svn
+DEB_DH_STRIP_ARGS := --dbg-package=tracker --dbg-package=libtrackerclient-0.7 --dbg-package=tracker-utils
+
+DEB_CONFIGURE_EXTRA_FLAGS := \
+ --with-compile-warnings=no \
+ --disable-static \
+ --disable-deskbar-applet \
+ --disable-tracker-applet \
+ --disable-tracker-preferences \
+ --disable-tracker-search-tool \
+ --disable-libtrackergtk \
+ --disable-unit-tests \
+ --disable-imagemagick \
+ --disable-unac \
+ --enable-video-extractor=gstreamer \
+ --enable-gstreamer-helix \
+ --enable-external-sqlite \
+ --enable-poppler-glib \
+ --enable-libexif \
+ --disable-libgsf \
+ --enable-libtiff \
+ --enable-libjpeg \
+ --enable-exempi \
+ --enable-playlist \
+ --disable-hildon-thumbnail
+
+DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--as-needed"
+
+# Enforce tight shlibs dependencies
+# DEB_DH_MAKESHLIBS_ARGS_ALL := -V
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+ confflags += --build $(DEB_HOST_GNU_TYPE)
+else
+ confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+CFLAGS += -g
+
+# Use soft-float and thumb mode if it enabled.
+ifneq (,$(findstring thumb,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -mthumb
+endif
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+post-patches:: debian/stamp-autothings-update
+debian/stamp-autothings-update:
+ # Set ACLOCAL_FLAGS so that libtool.m4 is picked up in scratchbox 1.0.x + sardine
+ NOCONFIGURE=1 ACLOCAL_FLAGS="-I /targets/links/arch_tools/share/aclocal" ./autogen.sh $(DEB_CONFIGURE_EXTRA_FLAGS)
+ # Can add things here that need to be ran after autogen.sh
+ touch $@
+
+clean::
+ rm -f debian/stamp-autothings-update
+
diff --git a/debian/tracker-cud.sh b/debian/tracker-cud.sh
new file mode 100755
index 0000000..5b39a0e
--- /dev/null
+++ b/debian/tracker-cud.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Ensure tracker is stopped
+/etc/osso-af-init/tracker.sh stop
+
+# Remove all data databases
+rm -rf /home/user/.cache/tracker
+
+# Remove common.db
+rm -rf /home/user/.local/share/data/common.db
diff --git a/debian/tracker-utils.install b/debian/tracker-utils.install
new file mode 100644
index 0000000..181e935
--- /dev/null
+++ b/debian/tracker-utils.install
@@ -0,0 +1,8 @@
+debian/tmp/usr/bin/tracker-import
+debian/tmp/usr/bin/tracker-info
+debian/tmp/usr/bin/tracker-processes
+debian/tmp/usr/bin/tracker-search
+debian/tmp/usr/bin/tracker-sparql
+debian/tmp/usr/bin/tracker-stats
+debian/tmp/usr/bin/tracker-status
+debian/tmp/usr/bin/tracker-tag
diff --git a/debian/tracker.install b/debian/tracker.install
new file mode 100644
index 0000000..cc265d6
--- /dev/null
+++ b/debian/tracker.install
@@ -0,0 +1,18 @@
+debian/tmp/usr/share/dbus-1/services/
+debian/tmp/usr/share/tracker/*.xml
+debian/tmp/usr/share/tracker/*.sql
+debian/tmp/usr/share/tracker/modules/
+debian/tmp/usr/share/tracker/ontologies/
+debian/tmp/usr/lib/tracker-0.7/*.so.*
+debian/tmp/usr/lib/tracker-0.7/*.so
+debian/tmp/usr/lib/tracker/trackerd
+debian/tmp/usr/lib/tracker/tracker-indexer
+debian/tmp/usr/lib/tracker/tracker-extract
+debian/tmp/usr/lib/tracker-0.7/extract-modules/*.so
+debian/tmp/usr/lib/tracker-0.7/extract-modules/*.so*
+debian/tmp/usr/lib/tracker-0.7/indexer-modules/*.so
+debian/tmp/usr/lib/tracker-0.7/indexer-modules/*.so*
+debian/tmp/etc/xdg/autostart/trackerd.desktop
+debian/tmp/etc/xdg/autostart/trackerd.desktop usr/share/autostart/
+debian/tracker.sh etc/osso-af-init
+debian/tracker-cud.sh etc/osso-cud-scripts
diff --git a/debian/tracker.postinst b/debian/tracker.postinst
new file mode 100755
index 0000000..593b571
--- /dev/null
+++ b/debian/tracker.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# purge data after update during development phase to avoid
+# issues caused by database schema changes
+rm -rf /home/user/.local/share/tracker /home/user/.cache/tracker
+
diff --git a/debian/tracker.sh b/debian/tracker.sh
new file mode 100755
index 0000000..20c829a
--- /dev/null
+++ b/debian/tracker.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# Init script for Tracker
+#
+
+DAEMON=/usr/lib/tracker/trackerd
+NAME=trackerd
+DESC=Tracker
+OPTIONS="-v 1"
+PIDFILE=/tmp/af-piddir/trackerd.pid
+
+# How many times do we try to restart a dead trackerd.
+RESTART_TRIES=2
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+case "$1" in
+ start)
+ log_begin_msg "Starting $DESC..."
+ if [ ! -e /targets/links/scratchbox.config ]; then
+ /usr/sbin/dsmetool -f "$DAEMON $OPTIONS" -c $RESTART_TRIES
+ else
+ /sbin/start-stop-daemon --start --quiet -p $PIDFILE -m -b -x $DAEMON -- $OPTION
+ fi
+ log_end_msg $?
+ ;;
+
+ stop)
+ log_begin_msg "Stopping $DESC..."
+ if [ ! -e /targets/links/scratchbox.config ]; then
+ /usr/sbin/dsmetool -k "$DAEMON $OPTIONS"
+ else
+ /sbin/start-stop-daemon --stop --quiet -p $PIDFILE
+ fi
+ log_end_msg $?
+ ;;
+ restart|force-reload)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ N=/etc/osso-af-init/$NAME
+ log_success_msg "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+#exit 0
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e44cc8d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+
+# Probably going to be tracker-project.org in the future.
+http://www.gnome.org/projects/tracker/download.html \
+ .*/tracker-(.*)\.tar\.gz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]