summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-07-12 01:21:02 +0200
committerXavier Claessens <xclaesse@gmail.com>2010-07-12 01:21:02 +0200
commitb140d5beb6a9a6a7be160cb781e9aaef086e2f96 (patch)
treeaaddfc90ef83416ffcdb6803d974fe6c483fd063
parent98e45484ff131c2d4c1fb1ea5244e112cd0994e8 (diff)
Add .service and .client files for dbus activation of the service
-rw-r--r--src/Makefile.am22
-rw-r--r--src/TelepathySSH.client9
-rw-r--r--src/org.freedesktop.Telepathy.Client.TelepathySSH.service.in3
3 files changed, 34 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e6de45f..8bd2bb0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,3 +17,25 @@ telepathy_ssh_service_SOURCES = \
common.c common.h \
service.c
+servicefiledir = $(datadir)/dbus-1/services
+servicefile_in_files = \
+ org.freedesktop.Telepathy.Client.TelepathySSH.service.in
+
+servicefile_DATA = $(servicefile_in_files:.service.in=.service)
+
+org.freedesktop.Telepathy.Client.TelepathySSH.service: org.freedesktop.Telepathy.Client.TelepathySSH.service.in
+ $(AM_V_GEN)sed -e "s|[@]bindir[@]|$(bindir)|" $< > $@
+
+clientfiledir = $(datarootdir)/telepathy/clients
+clientfile_DATA = \
+ TelepathySSH.client
+
+EXTRA_DIST = \
+ $(clientfile_DATA) \
+ $(servicefile_in_files) \
+ $(NULL)
+
+DISTCLEANFILES = \
+ $(servicefile_DATA) \
+ $(NULL)
+
diff --git a/src/TelepathySSH.client b/src/TelepathySSH.client
new file mode 100644
index 0000000..a7f4945
--- /dev/null
+++ b/src/TelepathySSH.client
@@ -0,0 +1,9 @@
+[org.freedesktop.Telepathy.Client]
+Interfaces=org.freedesktop.Telepathy.Client.Handler
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]
+org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.StreamTube
+org.freedesktop.Telepathy.Channel.TargetHandleType u=1
+org.freedesktop.Telepathy.Channel.Type.StreamTube.Service s=ssh
+org.freedesktop.Telepathy.Channel.Requested b=false
+
diff --git a/src/org.freedesktop.Telepathy.Client.TelepathySSH.service.in b/src/org.freedesktop.Telepathy.Client.TelepathySSH.service.in
new file mode 100644
index 0000000..3a59d51
--- /dev/null
+++ b/src/org.freedesktop.Telepathy.Client.TelepathySSH.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.freedesktop.Telepathy.Client.TelepathySSH
+Exec=@bindir@/telepathy-ssh-service