[evolution-data-server/email-factory: 2/2] Add service file and some build changes.



commit d6b6c21198e6c03b9c5dd89d4948687d02bb418c
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Tue Apr 5 11:40:22 2011 +0530

    Add service file and some build changes.

 mail/daemon/Makefile.am                            |   16 +++++++++++++---
 .../org.gnome.evolution.dataserver.Mail.service.in |    3 +++
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/mail/daemon/Makefile.am b/mail/daemon/Makefile.am
index 83f0f6f..880960c 100644
--- a/mail/daemon/Makefile.am
+++ b/mail/daemon/Makefile.am
@@ -1,5 +1,6 @@
+factorydir = $(libexecdir)
 
-bin_PROGRAMS = e-mail-factory
+factory_PROGRAMS = e-mail-factory
 e_mail_factory_SOURCES = main.c	\
 			 e-mail-local.c	\
 			 e-mail-local.h	\
@@ -85,8 +86,17 @@ e_mail_factory_LDADD = \
 		$(E_MAIL_FACTORY_LIBS)				\
 		-lffi
 
+service_in_files = org.gnome.evolution.dataserver.Mail.service.in
+servicedir = $(datadir)/dbus-1/services
+service_DATA = $(service_in_files:.service.in=.service)
+ EVO_SUBST_SERVICE_RULE@
 
-EXTRA_DIST = 
 
-CLEANFILES = *~ #e-mail-factory.desktop
+EXTRA_DIST = e-mail-data-folder.xml  	\
+	     e-mail-data-session.xml  	\
+	     e-mail-data-store.xml	\
+	     $(service_in_files)
+
+
+CLEANFILES = *~ $(service_DATA)
 
diff --git a/mail/daemon/org.gnome.evolution.dataserver.Mail.service.in b/mail/daemon/org.gnome.evolution.dataserver.Mail.service.in
new file mode 100644
index 0000000..bffeac7
--- /dev/null
+++ b/mail/daemon/org.gnome.evolution.dataserver.Mail.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.evolution.dataserver.Mail
+Exec= LIBEXECDIR@/e-mail-factory EXEEXT@



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