[rygel] core: Provide DBus service file
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Provide DBus service file
- Date: Fri, 12 Jun 2009 12:22:24 -0400 (EDT)
commit 31ad42e20bae1a6bd499359a920a539cb322f48f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Jun 7 02:04:51 2009 +0300
core: Provide DBus service file
data/Makefile.am | 12 +++++++++++-
data/org.gnome.Rygel.service.in | 3 +++
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 80f48b5..fdd21db 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -14,6 +14,16 @@ install-data-local: $(schema_DATA)
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA);
endif
-EXTRA_DIST = $(schema_DATA)
+# DBus service file
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_in_files = org.gnome.Rygel.service.in
+dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
+
+# Rule to make the service file with bindir expanded
+$(dbusservice_DATA): $(dbusservice_in_files) Makefile
+ @sed -e "s|\ bindir\@|$(bindir)|" $< > $@
+
+CLEANFILES = $(dbusservice_DATA)
+EXTRA_DIST = $(schema_DATA) $(dbusservice_in_files)
MAINTAINERCLEANFILES = Makefile.in
diff --git a/data/org.gnome.Rygel.service.in b/data/org.gnome.Rygel.service.in
new file mode 100644
index 0000000..4cbe9d7
--- /dev/null
+++ b/data/org.gnome.Rygel.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.Rygel
+Exec= bindir@/rygel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]