Commit b4feff37 authored by Jamie McCracken's avatar Jamie McCracken

more mods

parent bee8085f
2006-07-03 Marcus Fritzsch <fritschy@googlemail.com>
2006-08-21 Jamie McCracken <jamiemcc@gnome.org>
* Improved thread synchronisation using G_COND and g_cond_signal and g_cond_wait
* Eliminated redundant mutexes (file available/metadata available)
* Restructured threads to be more efficient
* Added two phase program halt so that stuff ends gracefully and all threads are exited smoothly
2006-08-21 Laurent Aguerreche <laurent.aguerreche@free.fr>
* Patch to fix signal handling amongst threads
* Jamie McCracken heavily modified this patch to make sure it avoids deadlocks and race conditions
2006-08-19 Laurent Aguerreche <laurent.aguerreche@free.fr>
* Patch to fix debain build
* split up tracker into several debs
* Fixed make dist in autofoo
2006-08-19 Jamie McCracken <jamiemcc@gnome.org>
* Abstracted all mysql specific stuff into tracker-db-mysql
* Paved the way to support alternative backends like sqlite/qdbm
2006-08-13 Jamie McCracken <jamiemcc@gnome.org>
* Added new tracker-file-convert to convert text file into list of unique words with associated counts
* Added support for stemming
* Added new parsing word breaker
* Added experimental (but currently disabled) qdbm indexing (tracker-indexer.c)
2006-08-13 Marcus Fritzsch <fritschy@googlemail.com>
* Patch to make sure a dbus reply is sent if the rdf query string is NULL or erroneous
2006-08-03 Marcus Fritzsch <fritschy@googlemail.com>
* Patch to make sure query is not null in tracker_exec_sql
2006-07-03 Jamie McCracken <jamiemcc@gnome.org>
2006-08-03 Jamie McCracken <jamiemcc@gnome.org>
* Added new Dbus methods for File.Exists and File.GetServiceType
2006-07-02 Jamie McCracken <jamiemcc@gnome.org>
2006-08-02 Jamie McCracken <jamiemcc@gnome.org>
* Added new command line tool tracker-files
2006-07-02 Edward Duffy <eduffy@gmail.com>
2006-08-02 Edward Duffy <eduffy@gmail.com>
* Patch for small fix to XdgMime
2006-07-02 Jedy Wang <Jedy.Wang@Sun.COM>
2006-08-02 Jedy Wang <Jedy.Wang@Sun.COM>
* Patch to add build instructions for Solaris to README file
2006-07-02 Laurent Aguerreche <laurent.aguerreche@free.fr>
2006-08-02 Laurent Aguerreche <laurent.aguerreche@free.fr>
* Patch to fix sql
2006-07-01 Jamie McCracken <jamiemcc@gnome.org>
2006-08-01 Jamie McCracken <jamiemcc@gnome.org>
* Added offset parameter to search methods
2006-06-31 Jedy Wang <Jedy.Wang@Sun.COM>
2006-07-31 Jedy Wang <Jedy.Wang@Sun.COM>
* Patch to improve compilation on Solaris
2006-06-31 Jamie McCracken <jamiemcc@gnome.org>
2006-07-31 Jamie McCracken <jamiemcc@gnome.org>
* Added realpath for file parameters in command line tools
* Improved search terms to *and* them by default
......@@ -51,41 +91,41 @@
* added bugfixed XDGMIME from Beagle to prevent crashes
2006-06-30 Marcus Fritzsch <fritschy@googlemail.com>
2006-07-30 Marcus Fritzsch <fritschy@googlemail.com>
* Patch to make build more debian friendly
2006-06-30 Jedy Wang <Jedy.Wang@Sun.COM>
2006-07-30 Jedy Wang <Jedy.Wang@Sun.COM>
* Patch to fix crasher on solaris
2006-06-30 Christoph Laimburg <christoph.laimburg@rolmail.net>
2006-07-30 Christoph Laimburg <christoph.laimburg@rolmail.net>
* Patch to replace deprecated dbus call (dbus_connection_disconnect)
2006-06-30 Samuel Cormier-Iijima <ciyoshi@gmail.com>
2006-07-30 Samuel Cormier-Iijima <ciyoshi@gmail.com>
* Patch to add RegExp rdf query extension support
2006-06-30 Samuel Cormier-Iijima <ciyoshi@gmail.com>
2006-07-30 Samuel Cormier-Iijima <ciyoshi@gmail.com>
* Modified patch to make no watch directories parameter functional
2006-06-30 Jamie McCracken <jamiemcc@gnome.org>
2006-07-30 Jamie McCracken <jamiemcc@gnome.org>
* Added new command line tools (tracker-tag)
* Fixed bugs in tracker-search methods
* Fixed bugs in tracker-query
2006-06-25 Jamie McCracken <jamiemcc@gnome.org>
2006-07-25 Jamie McCracken <jamiemcc@gnome.org>
* Sorted out libtracker
* updated to reflect new dbus interfaces
......
......@@ -3,8 +3,30 @@ SUBDIRS = data src filters thumbnailers
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = tracker.pc
debian_files = \
debian/changelog \
debian/compat \
debian/control \
debian/copyright \
debian/libmetatracker0-dev.docs \
debian/libmetatracker0-dev.install \
debian/libmetatracker0-dev.links \
debian/libmetatracker0.docs \
debian/libmetatracker0.install \
debian/libmetatracker0.links \
debian/meta-tracker-dev.docs \
debian/meta-tracker-dev.install \
debian/meta-tracker.docs \
debian/meta-tracker.install \
debian/meta-tracker-utils.docs \
debian/meta-tracker-utils.examples \
debian/meta-tracker-utils.install \
debian/rules
EXTRA_DIST = \
$(pkgconfig_DATA) \
AUTHORS NEWS INSTALL COPYING README \
ChangeLog \
configure.in
configure.in \
rdf-query-examples/*.rdf \
$(debian_files)
......@@ -117,7 +117,7 @@ lThe embedded mysql library ibmysqld.a version 5.0.19 or higher is required comp
If not present you can compile libmysqld.a by downloading source tarball for an appropriate version (5.0.19+) from the bottom of page http://dev.mysql.com/downloads/mysql/5.0.html
The following configure flags are reccommended if building mysqld.a from source: --without-server --with-embedded-server --enable-assembler
The following configure flags are reccommended if building mysqld.a from source: --without-server --with-embedded-server --enable-assembler --without-debug --without-query-cache --without-geometry --without-extra-tools --without-docs --without-man --without-bench --without-innodb --with-senna
Generic RPMs and tarballs are also provided for the embedded mysql library and another for the development headers at http://www.gnome.org/~jamiemcc/tracker/
......
......@@ -13,21 +13,32 @@ CFLAGS="$CFLAGS"
# Checks for programs.
AC_PROG_CC
AC_HEADER_STDC
AC_PROG_LIBTOOL
#AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h sitdlib.h string.h sys/time.h unistd.h])
AC_CHECK_HEADERS([fcntl.h sitdlib.h string.h sys/time.h unistd.h magic.h])
# Check for glib 2.0
PKG_CHECK_MODULES(GLIB2, [ glib-2.0 >= 2.4.0 ] gthread-2.0 >= 2.4.0)
AC_SUBST(GLIB2_CFLAGS)
AC_SUBST(GLIB2_LIBS)
Check for pango
PKG_CHECK_MODULES(PANGO, [ pango >= 1.0.0 ])
AC_SUBST(PANGO_CFLAGS)
AC_SUBST(PANGO_LIBS)
# Check for QDBM
#PKG_CHECK_MODULES(QDBM, [ qdbm >= 1.8.0 ])
#AC_SUBST(QDBM_CFLAGS)
#AC_SUBST(QDBM_LIBS)
# Check for Dbus 0.50 or higher
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.50 dbus-glib-1 >= 0.50 ])
AC_SUBST(DBUS_CFLAGS)
......@@ -58,6 +69,9 @@ fi
####################################################################
# Embedded Mysql checks
####################################################################
AM_CONDITIONAL(USING_SQLITE, false)
mysql_dir=""
AC_ARG_WITH(mysql,
AC_HELP_STRING([--with-mysql=PATH], [directory where mysql is installed]),
......
......@@ -2,13 +2,18 @@ SUBDIRS = english
configdir = $(datadir)/tracker
config_DATA = tracker-introspect.xml mysql-tracker.sql mysql-stored-procs.sql mysql-system.sql tracker.cfg tracker-stop-words.txt
config_DATA = tracker-introspect.xml \
mysql-tracker.sql \
mysql-stored-procs.sql \
mysql-system.sql \
tracker.cfg \
tracker-stop-words.txt
servicedir = $(prefix)/share/dbus-1/services
service_in_files = tracker.service.in
service_DATA = tracker.service
EXTRA_DIST = $(config_DATA) $(service_in_files)
%.service: %.service.in
@sed -e "s|\@bindir\@|$(bindir)|" $< > $@
......@@ -134,6 +134,13 @@ BEGIN
END|
DROP PROCEDURE if exists IndexIDExists;|
CREATE PROCEDURE IndexIDExists (ID int unsigned)
BEGIN
select 1 where exists (select IndexID from ServiceMetaData where IndexID = ID);
END|
-- service SPs --
DROP PROCEDURE if exists GetServices;|
......
......@@ -84,10 +84,8 @@ create table if not exists Services
IsDirectory bool default 0,
IsWatchedDirectory bool default 0,
IsLink bool default 0,
IsVfs bool default 0,
VolumeID int default -1, /* link to Volumes table */
Misc varchar(255),
MiscInt int,
MiscDate DateTime,
IndexTime int unsigned, /* should equal st_mtime for file if up-to-date */
Offset int unsigned, /* last used disk offset for indexable files that always grow (like chat logs) */
......@@ -98,6 +96,9 @@ create table if not exists Services
);
/* provides links from one service entity to another */
create table if not exists ServiceLinks
(
......@@ -121,6 +122,7 @@ create table if not exists ServiceLinkTypes
insert into ServiceLinkTypes (Type) Values ('PlayListItem');
/* store all keywords here. */
create table if not exists ServiceKeywords
(
......@@ -148,30 +150,51 @@ create table if not exists Keywords
/* store all metadata here. */
create table if not exists ServiceMetaData
(
IndexID int unsigned auto_increment not null,
ServiceID int unsigned not null,
MetaDataID smallint unsigned not null,
MetaDataValue Text character set utf8,
MetaDataIndexValue MediumText character set utf8,
MetaDataNumericValue double,
Primary Key (ServiceID, MetaDataID),
Primary Key (IndexID),
Key (ServiceID, MetaDataID),
Key (MetaDataIndexValue (32)),
key INumericValue (MetaDataID, MetaDataNumericValue),
FullText (MetaDataIndexValue)
FullText INDEX (MetaDataIndexValue)
);
/* store all indexable metadata here. */
create table if not exists ServiceIndexMetaData
(
ServiceID int unsigned not null,
MetaDataID smallint unsigned not null,
IndexerID int unsigned,
MetaDataIndexValue varchar (255),
MetaDataIndexBlob MediumText,
Primary Key (ServiceID, MetaDataID),
Key (MetaDataID, MetaDataIndexValue (32))
);
/* describes the types of metadata */
create table if not exists MetaDataTypes
(
ID smallint unsigned auto_increment not null,
MetaName varchar (128) not null,
DataTypeID tinyint unsigned, /* 0=full text indexable string, 1=string, 2=numeric, 3=datetime (as string) */
Embedded bool, /* if the metadata is embedded in the file */
Writeable bool, /* is metadata writable */
DataTypeID tinyint unsigned not null, /* 0=full text indexable string (max 255 long), 1=string or Blob, 2=numeric, 3=datetime, 4==IndexBlob (99=special case)*/
Embedded bool not null, /* if the metadata is embedded in the file */
Writeable bool not null, /* is metadata writable */
Weight tinyint unsigned default 1 not null, /* weight of metdata type in ranking */
Primary Key (ID),
Unique (MetaName)
......@@ -179,93 +202,90 @@ create table if not exists MetaDataTypes
/* built in metadata types */
insert into MetaDataTypes (MetaName, DatatypeID, Embedded, Writeable) values
('File.Name', 0, 1, 0),
('File.Path', 0, 1, 0),
('File.Link', 1, 1, 0),
('File.Format', 0, 1, 0 ),
('File.Size', 2, 1, 0),
('File.Permissions', 1, 1, 0),
('File.Publisher', 0, 1, 1),
('File.Content', 0, 1, 0),
('File.Description', 0, 0, 1),
('File.License', 0, 1, 0),
('File.Keywords', 0, 0, 1),
('File.Rank', 2, 0, 1),
('File.IconPath', 1, 0, 1 ),
('File.SmallThumbnailPath', 1, 0, 1),
('File.LargeThumbnailPath', 1, 0, 1),
('File.Modified', 3, 1, 0),
('File.Accessed', 3, 1, 0 ),
('File.Other', 0, 1, 0 ),
('Audio.Title', 0, 1, 1),
('Audio.Artist', 0, 1, 1),
('Audio.Album', 0, 1, 1),
('Audio.AlbumArtist', 0, 1, 1),
('Audio.AlbumTrackCount', 2, 1, 1),
('Audio.TrackNo', 2, 1, 1),
('Audio.DiscNo', 2, 1, 1),
('Audio.Performer', 0, 1, 1),
('Audio.TrackGain', 2, 1, 1),
('Audio.TrackPeakGain', 2, 1, 1),
('Audio.AlbumGain', 2, 1, 1),
('Audio.AlbumPeakGain', 2, 1, 1),
('Audio.Duration', 2, 1, 0),
('Audio.ReleaseDate', 3, 1, 1),
('Audio.Comment', 0, 1, 1),
('Audio.Genre', 0, 1, 1),
('Audio.Codec', 0, 1, 1),
('Audio.CodecVersion', 1, 1, 1),
('Audio.Samplerate', 2, 1, 1),
('Audio.Bitrate', 2, 1, 1),
('Audio.Channels', 2, 1, 1),
('Audio.LastPlay', 3, 0, 1),
('Audio.PlayCount', 2, 0, 1),
('Audio.IsNew', 2, 0, 1),
('Audio.MBAlbumID', 1, 0, 1),
('Audio.MBArtistID', 1, 0, 1),
('Audio.MBAlbumArtistID', 1, 0, 1),
('Audio.MBTrackID', 1, 0, 1),
('Audio.Lyrics', 0, 0, 1),
('Audio.CoverAlbumThumbnailPath', 1, 0, 1),
('Doc.Title', 0, 1, 0),
('Doc.Subject', 0, 1, 0),
('Doc.Author', 0, 1, 0),
('Doc.Keywords', 0, 1, 0),
('Doc.Comments', 0, 1, 0),
('Doc.PageCount', 2, 1, 0),
('Doc.WordCount', 2, 1, 0),
('Doc.Created', 3, 1, 0),
('Image.Height', 2, 1, 0),
('Image.Width', 2, 1, 0),
('Image.Title', 0, 1, 0),
('Image.Album', 0, 0, 1),
('Image.Date', 3, 1, 0),
('Image.Keywords', 0, 1, 0),
('Image.Creator', 0, 1, 0),
('Image.Comments', 0, 1, 0),
('Image.Description', 0, 1, 0),
('Image.Software', 0, 1, 0),
('Image.CameraMake', 0, 1, 0),
('Image.CameraModel', 0, 1, 0),
('Image.Orientation', 1, 1, 0),
('Image.ExposureProgram', 1, 1, 0),
('Image.ExposureTime', 2, 1, 0),
('Image.FNumber', 2 , 1, 0),
('Image.Flash', 2, 1, 0),
('Image.FocalLength', 2, 1, 0),
('Image.ISOSpeed', 2, 1, 0),
('Image.MeteringMode', 1, 1, 0),
('Image.WhiteBalance', 1, 1, 0),
('Image.Copyright', 0, 1, 0),
('PlayList.DateCreated', 3, 0, 1),
('PlayList.LastPlay', 3, 0, 1),
('PlayList.PlayCount', 2, 0, 1),
('PlayList.Description', 0, 0, 1),
('PlayList.RDFQuery', 1, 0, 1),
('PlayList.Name', 0, 0, 1),
('PlayList.Rank', 2, 0, 1),
('PlayList.Keywords', 0, 0, 1);
insert into MetaDataTypes (MetaName, DatatypeID, Embedded, Writeable, Weight) values
('File.Content', 0, 1, 0, 1),
('File.Name', 0, 1, 0, 5),
('File.Path', 0, 1, 0, 1),
('File.Ext', 0, 1, 0, 50),
('File.Link', 1, 1, 0, 0),
('File.Format', 0, 1, 0, 15),
('File.Size', 2, 1, 0, 0),
('File.Origin', 0, 0, 1, 5),
('File.OriginURI', 1, 0, 1, 0),
('File.Permissions', 1, 1, 0, 0),
('File.Publisher', 0, 0, 1, 20),
('File.Description', 0, 0, 1, 25),
('File.License', 4, 1, 0, 10),
('File.Keywords', 99, 0, 0, 100),
('File.Rank', 2, 0, 1, 0),
('File.IconPath', 1, 0, 1, 0 ),
('File.SmallThumbnailPath', 1, 0, 1, 0),
('File.LargeThumbnailPath', 1, 0, 1, 0),
('File.Modified', 3, 1, 0, 0),
('File.Accessed', 3, 1, 0, 0),
('File.Other', 0, 1, 0, 5),
('Audio.Title', 0, 1, 1, 50),
('Audio.Artist', 0, 1, 1, 50),
('Audio.Album', 0, 1, 1, 50),
('Audio.AlbumArtist', 0, 1, 1, 25),
('Audio.AlbumTrackCount', 2, 1, 1, 0),
('Audio.TrackNo', 2, 1, 1, 0),
('Audio.DiscNo', 2, 1, 1, 0),
('Audio.Performer', 0, 1, 1, 70),
('Audio.TrackGain', 2, 1, 1, 0),
('Audio.TrackPeakGain', 2, 1, 1, 0),
('Audio.AlbumGain', 2, 1, 1, 0),
('Audio.AlbumPeakGain', 2, 1, 1, 0),
('Audio.Duration', 2, 1, 0, 0),
('Audio.ReleaseDate', 3, 1, 1, 0),
('Audio.Comment', 0, 1, 1, 25),
('Audio.Genre', 0, 1, 1, 90),
('Audio.Codec', 0, 1, 1, 1),
('Audio.CodecVersion', 1, 1, 1, 0),
('Audio.Samplerate', 2, 1, 1, 0),
('Audio.Bitrate', 2, 1, 1, 0),
('Audio.Channels', 2, 1, 1, 0),
('Audio.LastPlay', 3, 0, 1, 0),
('Audio.PlayCount', 2, 0, 1, 0),
('Audio.IsNew', 2, 0, 1, 0),
('Audio.MBAlbumID', 1, 0, 1, 0),
('Audio.MBArtistID', 1, 0, 1, 0),
('Audio.MBAlbumArtistID', 1, 0, 1, 0),
('Audio.MBTrackID', 1, 0, 1, 0),
('Audio.Lyrics', 0, 0, 1, 4),
('Audio.CoverAlbumThumbnailPath', 1, 0, 1, 0),
('Doc.Title', 0, 1, 0, 90),
('Doc.Subject', 0, 1, 0, 100),
('Doc.Author', 0, 1, 0, 90),
('Doc.Keywords', 0, 1, 0, 100),
('Doc.Comments', 0, 1, 0, 80),
('Doc.PageCount', 2, 1, 0, 0),
('Doc.WordCount', 2, 1, 0, 0),
('Doc.Created', 3, 1, 0, 0),
('Doc.Text', 4, 1, 0, 5),
('Image.Height', 2, 1, 0, 0),
('Image.Width', 2, 1, 0, 0),
('Image.Title', 0, 1, 0, 60),
('Image.Album', 0, 0, 1, 30),
('Image.Date', 3, 1, 0, 0),
('Image.Keywords', 0, 1, 0, 100),
('Image.Creator', 0, 1, 0, 50),
('Image.Comments', 0, 1, 0, 20),
('Image.Description', 0, 1, 0, 15),
('Image.Software', 0, 1, 0, 1),
('Image.CameraMake', 0, 1, 0, 1),
('Image.CameraModel', 0, 1, 0, 10),
('Image.Orientation', 1, 1, 0, 0),
('Image.ExposureProgram', 1, 1, 0, 0),
('Image.ExposureTime', 2, 1, 0, 0),
('Image.FNumber', 2 , 1, 0, 0),
('Image.Flash', 2, 1, 0, 0),
('Image.FocalLength', 2, 1, 0, 0),
('Image.ISOSpeed', 2, 1, 0, 0),
('Image.MeteringMode', 1, 1, 0, 0),
('Image.WhiteBalance', 1, 1, 0, 0),
('Image.Copyright', 0, 1, 0, 1);
/* optional contextual file data - gives a nice audit trail for a file */
......
tracker (0.0.5) unstable; urgency=low
* New upstream release.
-- Jamie McCracken <jamiemcc@gnome.org> Wed, 9 Aug 2006 04:12:37 +0100
tracker (0.0.4) unstable; urgency=low
* Initial Release.
......
......@@ -2,14 +2,59 @@ Source: tracker
Section: utils
Priority: optional
Maintainer: Jamie McCracken <jamiemcc@gnome.org>
Build-Depends: debhelper (>= 4.0.0), autotools-dev, libmysqlclient15-dev (>= 5.0.19), libextractor-dev (>= 0.5.0), libdbus-glib-1-dev
Standards-Version: 3.6.1
Build-Depends: debhelper (>= 5.0.0), autotools-dev, libextractor-dev (>= 0.5.0), libdbus-glib-1-dev
Standards-Version: 3.7.2
Package: tracker
Package: meta-tracker
Architecture: any
Depends: libc6 (>= 2.3.4-1), libglib2.0-0 (>= 2.10.0), libdbus-1-2 (>= 0.60), libdbus-glib-1-2 (>= 0.60), shared-mime-info, libextractor1c2a (>= 0.5.0)
Description: Metadata database and indexing search tool.
Tracker is an advanced framework for first class objects with
associated metadata and tags. It provides a one stop solution for
all metadata, tags, shared object databases, search tools and indexing.
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: meta-tracker-utils
Description: Metadata database and indexing search tool
Tracker is an advanced framework for first class objects with associated
metadata and tags. It provides a one stop solution for all metadata, tags,
shared object databases, search tools and indexing.
Package: libmetatracker0
Architecture: any
Section: libs
Depends: ${shlibs:Depends}, ${misc:Depends}, meta-tracker (= ${Source-Version})
Description: Library for accessing Tracker
This library allow programmers accessing Tracker daemon and performing
searches.
.
Tracker is an advanced framework for first class objects with associated
metadata and tags. It provides a one stop solution for all metadata, tags,
shared object databases, search tools and indexing.
Package: libmetatracker0-dev
Architecture: any
Section: devel
Depends: libmetatracker0 (= ${Source-Version})
Description: Development files for Tracker
This package contains the headers and other development files not included in
the libmetatracker0 package for developing with it.
.
Tracker is an advanced framework for first class objects with associated
metadata and tags. It provides a one stop solution for all metadata, tags,
shared object databases, search tools and indexing.
Package: meta-tracker-utils
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Utilities for Tracker
Included utilities for Tracker:
* tracker-files: get files based on a ServiceType (Documents, Music, Images,
Videos, Text, Development, Other), or on specified mime types.
* tracker-meta-folder: get metadata for files in a folder.
* tracker-query: this reads from STDIN an RDF Query that specifies the search
criteria for various fields. It prints to STDOUT all matching files. Some
examples are included in this package.
* tracker-search: this perfoms a google like search using SEARCHTERM to
retrieve all matching files where SEARCHTERM appears in any searchable
metadata.
* tracker-stats: retreive some statistics.
* tracker-tag: tool to manage tags on files.
.
Tracker is an advanced framework for first class objects with associated
metadata and tags. It provides a one stop solution for all metadata, tags,
shared object databases, search tools and indexing.
......@@ -24,15 +24,20 @@ else
CFLAGS += -O2
endif
config.status: configure
# Ensure the build aborts when there are still references to undefined
# symbols.
LDFLAGS += -Wl,-z,defs
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
#CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
touch configure-stamp
build: build-stamp
build-stamp: config.status
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
......@@ -44,7 +49,7 @@ build-stamp: config.status
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
......@@ -64,9 +69,10 @@ install: build
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tracker.
$(MAKE) install DESTDIR=$(CURDIR)/debian/tracker
# Add here commands to install the package into debian/tmp.
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
dh_install
# Build architecture-independent files here.
binary-indep: build install
......@@ -104,4 +110,4 @@ binary-arch: build install
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
.PHONY: build clean binary-indep binary-arch binary install
......@@ -9,7 +9,5 @@ thumbappbin_SCRIPTS = pdf_filter \
vnd.sun.xml.calc_filter \
vnd.sun.xml.impress_filter \
vnd.sun.xml.writer_filter
EXTRA_DIST = $(thumbappbin_SCRIPTS)
#!/bin/sh
nice -n19 pdftotext -q -nopgbrk $1 $2
nice -n19 pdftotext -enc UTF-8 -q -nopgbrk $1 $2
filterbindir = $(datadir)/tracker/filters/text
filterbin_SCRIPTS = html_filter
filterbin_SCRIPTS = html_filter
EXTRA_DIST = $(filterbin_SCRIPTS)
This diff is collapsed.
......@@ -5,6 +5,5 @@ else
extractor_dir =
endif
SUBDIRS =text-filters trackerd libtracker $(extractor_dir) tracker-extract
SUBDIRS = text-filters trackerd libtracker $(extractor_dir) tracker-extract
DIST_SUBDIRS = text-filters trackerd libtracker $(extractor_dir) tracker-extract
......@@ -11,5 +11,3 @@ extractor_ldadd = -lextractor
endif
tracker_extract_LDADD = $(GLIB2_LIBS) $(extractor_ldadd)
......@@ -22,7 +22,11 @@
#include <string.h>
#include <unistd.h>
#include <glib.h>
#ifndef USING_INTERNAL_LIBEXTRACTOR
#include <extractor.h>
#else
#include "../libextractor/src/include/extractor.h"
#endif
typedef enum {
......
......@@ -4,6 +4,8 @@ additional_mysql_flags = -D_THREAD_SAFE -D_REENTRANT
INCLUDES = \
-DDATADIR=\""$(datadir)"\" \
$(GLIB2_CFLAGS) \
$(PANGO_CFLAGS) \
$(QDBM_CFLAGS) \
$(FAM_CFLAGS) \
$(DBUS_CFLAGS) \
$(MYSQL_CFLAGS) \
......@@ -13,6 +15,7 @@ INCLUDES = \
if HAVE_INOTIFY
inotify_sources = \
linux-inotify-syscalls.h \
tracker-inotify.c \
tracker-inotify.h
else
......@@ -23,9 +26,21 @@ fam_sources = \
endif
endif
if USING_SQLITE