summaryrefslogtreecommitdiffstats
path: root/meta-gnome
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2014-06-18 23:57:29 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2014-06-21 10:36:54 +0200
commita04c794b587e207b06465d1eac5e5ea8b1346641 (patch)
tree5a9a71f1880b72f0119c5bdfd8c7161fa3fb83a4 /meta-gnome
parentc794fb0ed62c22c86b2c79db9812a58797208c26 (diff)
downloadmeta-openembedded-a04c794b587e207b06465d1eac5e5ea8b1346641.tar.gz
tracker: move from meta-oe to meta-gnome
* it rdepends on gvfs which is available only in meta-gnome and nothing in meta-oe depends on tracker Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-gnome')
-rw-r--r--meta-gnome/recipes-support/tracker/files/90tracker4
-rw-r--r--meta-gnome/recipes-support/tracker/files/tracker-dbus.service15
-rw-r--r--meta-gnome/recipes-support/tracker/files/tracker-miner-fs.service12
-rw-r--r--meta-gnome/recipes-support/tracker/files/tracker-store.service12
-rw-r--r--meta-gnome/recipes-support/tracker/tracker-0.14.2/0005-Fix-missing-gobject-introspection-checks.patch17
-rw-r--r--meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch13
-rw-r--r--meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch30
-rw-r--r--meta-gnome/recipes-support/tracker/tracker_0.14.2.bb75
8 files changed, 178 insertions, 0 deletions
diff --git a/meta-gnome/recipes-support/tracker/files/90tracker b/meta-gnome/recipes-support/tracker/files/90tracker
new file mode 100644
index 000000000..9594b9168
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/files/90tracker
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3/usr/bin/trackerd -m &
4
diff --git a/meta-gnome/recipes-support/tracker/files/tracker-dbus.service b/meta-gnome/recipes-support/tracker/files/tracker-dbus.service
new file mode 100644
index 000000000..c97f49a89
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/files/tracker-dbus.service
@@ -0,0 +1,15 @@
1[Unit]
2Description=tracker DBus session bus handler
3Before=tracker-store.service
4After=dbus.service
5Requires=dbus.service
6BindTo=tracker-store.service
7
8[Service]
9Type=forking
10EnvironmentFile=-/tmp/tracker.env
11ExecStartPre=@BASE_BINDIR@/rm -rf /tmp/tracker.env
12ExecStart=/bin/sh -c 'echo "DBUS_SESSION_BUS_ADDRESS=`dbus-daemon --fork --session --print-address`" > /tmp/tracker.env'
13
14[Install]
15WantedBy=multi-user.target
diff --git a/meta-gnome/recipes-support/tracker/files/tracker-miner-fs.service b/meta-gnome/recipes-support/tracker/files/tracker-miner-fs.service
new file mode 100644
index 000000000..34d9a1e68
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/files/tracker-miner-fs.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=tracker-miner-fs
3After=syslog.target local-fs.target udev.service dbus.service tracker-store.service
4Requires=tracker-store.service
5
6[Service]
7Environment=HOME=/home/root
8EnvironmentFile=-/tmp/tracker.env
9ExecStart=@LIBEXECDIR@/tracker-miner-fs
10
11[Install]
12WantedBy=multi-user.target
diff --git a/meta-gnome/recipes-support/tracker/files/tracker-store.service b/meta-gnome/recipes-support/tracker/files/tracker-store.service
new file mode 100644
index 000000000..c5037f3ab
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/files/tracker-store.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=tracker-store
3After=syslog.target local-fs.target dbus.service
4Requires=dbus.service tracker-dbus.service
5BindTo=tracker-dbus.service
6
7[Service]
8EnvironmentFile=-/tmp/tracker.env
9ExecStart=@LIBEXECDIR@/tracker-store
10
11[Install]
12WantedBy=multi-user.target
diff --git a/meta-gnome/recipes-support/tracker/tracker-0.14.2/0005-Fix-missing-gobject-introspection-checks.patch b/meta-gnome/recipes-support/tracker/tracker-0.14.2/0005-Fix-missing-gobject-introspection-checks.patch
new file mode 100644
index 000000000..8701f5854
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/tracker-0.14.2/0005-Fix-missing-gobject-introspection-checks.patch
@@ -0,0 +1,17 @@
1diff -Naur ../tracker-0.10.8/configure.ac tracker-0.10.8//configure.ac
2--- ../tracker-0.10.8/configure.ac 2011-04-08 15:03:30.000000000 +0300
3+++ tracker-0.10.8//configure.ac 2011-04-11 13:47:16.625914002 +0300
4@@ -218,7 +218,12 @@
5
6 # Needed to generate .gir files,
7 # see http://live.gnome.org/GnomeGoals/AddGObjectIntrospectionSupport
8-GOBJECT_INTROSPECTION_CHECK([0.9.5])
9+#GOBJECT_INTROSPECTION_CHECK([0.9.5])
10+# Satisfy missing introspection foo
11+AM_CONDITIONAL(HAVE_INTROSPECTION, test "0" == "1")
12+
13+INTROSPECTION_CFLAGS=""
14+AC_SUBST(INTROSPECTION_CFLAGS)
15
16 # NOTE: dbus and dbus-glib-1 are only used now for libtracker-client
17 # which is deprecated and tracker-writeback which will be refactored
diff --git a/meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch b/meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch
new file mode 100644
index 000000000..5dadda2a2
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/tracker-0.14.2/enable-sqlite-crosscompile.patch
@@ -0,0 +1,13 @@
1Index: tracker-0.10.17/m4/sqlite-threadsafe.m4
2===================================================================
3--- tracker-0.10.17.orig/m4/sqlite-threadsafe.m4
4+++ tracker-0.10.17/m4/sqlite-threadsafe.m4
5@@ -45,7 +45,7 @@ int main ()
6 ]])],
7 [ax_cv_sqlite_threadsafe=yes],
8 [ax_cv_sqlite_threadsafe=no],
9- [ax_cv_sqlite_threadsafe=no])])
10+ [ax_cv_sqlite_threadsafe=yes])])
11
12 LIBS="$save_LIBS"
13 ])
diff --git a/meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch b/meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch
new file mode 100644
index 000000000..6c3d9de10
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/tracker-0.14.2/fix-removable-media-detection.patch
@@ -0,0 +1,30 @@
1Index: tracker-0.14.2/src/libtracker-miner/tracker-storage.c
2===================================================================
3--- tracker-0.14.2.orig/src/libtracker-miner/tracker-storage.c 2011-08-03 13:53:16.000000000 +0100
4+++ tracker-0.14.2/src/libtracker-miner/tracker-storage.c 2012-09-10 08:25:18.322215126 +0100
5@@ -20,6 +20,7 @@
6 #include "config.h"
7
8 #include <string.h>
9+#include <sys/stat.h>
10
11 #include <gio/gio.h>
12 #include <gio/gunixmounts.h>
13@@ -646,6 +647,17 @@
14 gchar *content_type;
15 gboolean is_multimedia;
16 gboolean is_blank;
17+ struct stat st;
18+
19+ /*
20+ * Consider all files under /media to be
21+ * removable unless the file .this-is-root is
22+ * present.
23+ */
24+ if (!strncmp (mount_path, "/media/",
25+ strlen ("/media/")) &&
26+ stat ("/media/.this-is-root", &st))
27+ is_removable = TRUE;
28
29 content_type = mount_guess_content_type (mount, &is_optical, &is_multimedia, &is_blank);
30
diff --git a/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
new file mode 100644
index 000000000..eea8edc9b
--- /dev/null
+++ b/meta-gnome/recipes-support/tracker/tracker_0.14.2.bb
@@ -0,0 +1,75 @@
1DESCRIPTION = "Tracker is a tool designed to extract information and metadata about your personal data so that it can be searched easily and quickly."
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=ee31012bf90e7b8c108c69f197f3e3a4"
4DEPENDS = "file gstreamer gamin dbus libexif gettext sqlite3 icu"
5RDEPENDS_${PN} += " gvfs gsettings-desktop-schemas"
6HOMEPAGE = "http://projects.gnome.org/tracker/"
7
8PR = "r7"
9
10inherit autotools pkgconfig gnomebase gettext gsettings systemd
11
12VER_DIR = "${@gnome_verdir("${PV}")}"
13SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/tracker/${VER_DIR}/tracker-${PV}.tar.xz \
14 file://0005-Fix-missing-gobject-introspection-checks.patch \
15 file://enable-sqlite-crosscompile.patch \
16 file://fix-removable-media-detection.patch \
17 file://90tracker \
18 file://tracker-store.service \
19 file://tracker-miner-fs.service \
20 file://tracker-dbus.service \
21 "
22
23SYSTEMD_SERVICE_${PN} = " tracker-store.service tracker-miner-fs.service tracker-dbus.service "
24SYSTEMD_AUTO_ENABLE = "disable"
25
26EXTRA_OECONF += " tracker_cv_have_ioprio=yes"
27
28# Disable the desktop-centric miners
29EXTRA_OECONF += "--disable-miner-thunderbird --disable-miner-firefox \
30 --disable-miner-evolution --disable-miner-flickr"
31
32LEAD_SONAME = "libtrackerclient.so.0"
33
34do_install_append() {
35 cp -PpR ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true
36# install -d ${D}/${sysconfdir}/X11/Xsession.d/
37# install -m 0755 ${WORKDIR}/90tracker ${D}/${sysconfdir}/X11/Xsession.d/
38
39 install -d ${D}${systemd_unitdir}/system
40 install -m 0644 ${WORKDIR}/tracker-store.service ${D}${systemd_unitdir}/system
41 install -m 0644 ${WORKDIR}/tracker-miner-fs.service ${D}${systemd_unitdir}/system
42 install -m 0644 ${WORKDIR}/tracker-dbus.service ${D}${systemd_unitdir}/system
43 sed -i -e 's,@LIBEXECDIR@,${libexecdir},g' \
44 -e 's,@BASE_BINDIR@,${base_bindir},g' \
45 ${D}${systemd_unitdir}/system/*.service
46}
47
48PACKAGES =+ "${PN}-tests ${PN}-vala ${PN}-nautilus-extension"
49
50FILES_${PN} += "${datadir}/dbus-1/ \
51 ${libdir}/tracker-${VER_DIR}/*.so.* \
52 ${libdir}/tracker-${VER_DIR}/extract-modules/*.so \
53 ${datadir}/icons/hicolor/*/apps/tracker.* \
54 ${libdir}/nautilus/extensions-2.0/*.la \
55 ${datadir}/glib-2.0/schemas/* \
56 ${systemd_unitdir}/system/tracker-store.service \
57 ${systemd_unitdir}/system/tracker-miner-fs.service \
58 ${systemd_unitdir}/system/tracker-dbus.service \
59"
60
61FILES_${PN}-dev += "${libdir}/tracker-${VER_DIR}/*.la \
62 ${libdir}/tracker-${VER_DIR}/*.so \
63 ${libdir}/tracker-${VER_DIR}/*/*.so \
64 ${libdir}/tracker-${VER_DIR}/*/*.la \
65 ${libdir}/tracker-${VER_DIR}/extract-modules/*.la"
66
67FILES_${PN}-staticdev += "${libdir}/nautilus/extensions-2.0/*.a"
68FILES_${PN}-dbg += "${libdir}/*/*/.debug \
69 ${libdir}/*/.debug"
70FILES_${PN}-tests = "${datadir}/tracker-tests/"
71FILES_${PN}-vala = "${datadir}/vala/"
72FILES_${PN}-nautilus-extension += "${libdir}/nautilus/extensions-2.0/*.so"
73
74SRC_URI[md5sum] = "f3a871beeebf86fd752863ebd22af9ac"
75SRC_URI[sha256sum] = "9b59330aa2e9e09feee587ded895e9247f71fc25f46b023d616d9969314bc7f1"