[gnome-games/wip/exalm/tracker-sandbox: 3/3] data: Add tracker service files



commit edbce6fe5f4b41305850b787534e7a0224869297
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Fri Jan 18 19:25:03 2019 +0500

    data: Add tracker service files

 data/meson.build                                   | 22 ++++++++++++++++++++++
 ...me.Games.Tracker1.Miner.Applications.service.in | 10 ++++++++++
 ...g.gnome.Games.Tracker1.Miner.Extract.service.in | 10 ++++++++++
 ...org.gnome.Games.Tracker1.Miner.Files.service.in | 10 ++++++++++
 data/org.gnome.Games.Tracker1.Writeback.service.in |  4 ++++
 data/org.gnome.Games.Tracker1.service.in           |  4 ++++
 meson.build                                        |  1 +
 7 files changed, 61 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index ed6cb817..009a6957 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -74,5 +74,27 @@ configure_file (
   install_dir: join_paths (datadir, 'tracker', 'domain-ontologies')
 )
 
+service_conf = configuration_data()
+service_conf.set('appid', application_id)
+service_conf.set('libexecdir', libexecdir)
+
+services = [
+  'Tracker1',
+  'Tracker1.Miner.Applications',
+  'Tracker1.Miner.Extract',
+  'Tracker1.Miner.Files',
+  'Tracker1.Writeback',
+]
+
+foreach service: services
+  configure_file (
+    input: 'org.gnome.Games.@0  service in'.format(service),
+    output: '@0@.@1@.service'.format(application_id, service),
+    configuration: service_conf,
+    install: true,
+    install_dir: join_paths (datadir, 'dbus-1', 'services')
+  )
+endforeach
+
 subdir ('icons')
 subdir ('options')
diff --git a/data/org.gnome.Games.Tracker1.Miner.Applications.service.in 
b/data/org.gnome.Games.Tracker1.Miner.Applications.service.in
new file mode 100644
index 00000000..178320f1
--- /dev/null
+++ b/data/org.gnome.Games.Tracker1.Miner.Applications.service.in
@@ -0,0 +1,10 @@
+[D-BUS Service]
+Name=@appid@.Tracker1.Miner.Applications
+Exec=@libexecdir@/tracker-miner-apps -d @appid@
+SystemdService=tracker-miner-apps.service
+
+# Miner details needed for tracker-control
+Path=/org/freedesktop/Tracker1/Miner/Applications
+NameSuffix=Miner.Applications
+DisplayName=Applications
+Comment=Applications data miner
diff --git a/data/org.gnome.Games.Tracker1.Miner.Extract.service.in 
b/data/org.gnome.Games.Tracker1.Miner.Extract.service.in
new file mode 100644
index 00000000..41a55c6d
--- /dev/null
+++ b/data/org.gnome.Games.Tracker1.Miner.Extract.service.in
@@ -0,0 +1,10 @@
+[D-BUS Service]
+Name=@appid@.Tracker1.Miner.Extract
+Exec=@libexecdir@/tracker-extract -d @appid@
+SystemdService=tracker-extract.service
+
+# Miner details needed for tracker-control
+Path=/org/freedesktop/Tracker1/Miner/Extract
+NameSuffix=Miner.Extract
+DisplayName=Extractor
+Comment=Metadata extractor
diff --git a/data/org.gnome.Games.Tracker1.Miner.Files.service.in 
b/data/org.gnome.Games.Tracker1.Miner.Files.service.in
new file mode 100644
index 00000000..b688d200
--- /dev/null
+++ b/data/org.gnome.Games.Tracker1.Miner.Files.service.in
@@ -0,0 +1,10 @@
+[D-BUS Service]
+Name=@appid@.Tracker1.Miner.Files
+Exec=@libexecdir@/tracker-miner-fs -d @appid@
+SystemdService=tracker-miner-fs.service
+
+# Miner details needed for tracker-control
+Path=/org/freedesktop/Tracker1/Miner/Files
+NameSuffix=Miner.Files
+DisplayName=File System
+Comment=File system data miner
diff --git a/data/org.gnome.Games.Tracker1.Writeback.service.in 
b/data/org.gnome.Games.Tracker1.Writeback.service.in
new file mode 100644
index 00000000..3596b06f
--- /dev/null
+++ b/data/org.gnome.Games.Tracker1.Writeback.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=@appid@.Tracker1.Writeback
+Exec=@libexecdir@/tracker-writeback -d @appid@
+SystemdService=tracker-writeback.service
diff --git a/data/org.gnome.Games.Tracker1.service.in b/data/org.gnome.Games.Tracker1.service.in
new file mode 100644
index 00000000..79f2a040
--- /dev/null
+++ b/data/org.gnome.Games.Tracker1.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=@appid@.Tracker1
+Exec=@libexecdir@/tracker-store -d @appid@
+SystemdService=tracker-store.service
diff --git a/meson.build b/meson.build
index e33cee87..e047d986 100644
--- a/meson.build
+++ b/meson.build
@@ -51,6 +51,7 @@ podir = join_paths (meson.source_root (), 'po')
 prefix = get_option('prefix')
 datadir = join_paths (prefix, get_option ('datadir'))
 libdir = join_paths (prefix, get_option ('libdir'))
+libexecdir = join_paths (prefix, get_option ('libexecdir'))
 localedir = join_paths (prefix, get_option ('localedir'))
 options_dir = join_paths (datadir, meson.project_name(), 'options')
 plugins_dir = join_paths (libdir, meson.project_name(), 'plugins')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]