aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/0002-add-dbus-service-file.patch
blob: c61a76306ae568b96e8d211eba3e2544c4cdcdd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Tue, 24 Mar 2009 00:47:10 +0100
Subject: [PATCH] add dbus service file

---
 src/Makefile.am                        |   12 ++++++++++--
 src/org.gnome.KrbAuthDialog.service.in |    3 +++
 2 files changed, 13 insertions(+), 2 deletions(-)
 create mode 100644 src/org.gnome.KrbAuthDialog.service.in

diff --git a/src/Makefile.am b/src/Makefile.am
index a0db9ec..1c74c84 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,11 +12,18 @@ autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
 
 schemadir = $(sysconfdir)/gconf/schemas
 schema_in_files = $(PACKAGE).schemas.in
-schema_DATA = $(PACKAGE).schemas
+schema_DATA = $(schema_in_files:.schemas.in=.schemas)
 
 %.schemas: $(srcdir)/%.schemas.in
 	sed -e "s,::PACKAGE::,$(PACKAGE)," < $< > $@
 
+servicedir       = $(datadir)/dbus-1/services
+service_in_files = org.gnome.KrbAuthDialog.service.in
+service_DATA     = $(service_in_files:.service.in=.service)
+
+$(service_DATA): $(service_in_files) Makefile
+	sed -e "s|\@BINDIR\@|$(bindir)|" $< > $@
+
 krb5_auth_dialog_SOURCES =	\
 	krb5-auth-dialog.c      \
 	krb5-auth-dialog.h      \
@@ -60,9 +67,10 @@ EXTRA_DIST =		\
 	$(pkgdata_DATA)   \
 	$(schema_in_files) \
 	$(autostart_in_files) \
+        $(service_in_files) \
 	krb5-auth-dialog.1.in
 
-CLEANFILES = $(schema_DATA)
+CLEANFILES = $(schema_DATA) $(service_DATA)
 DISTCLEANFILES = \
 	krb5-auth-dialog.desktop 	\
 	krb5-auth-applet-dbus-glue.h
diff --git a/src/org.gnome.KrbAuthDialog.service.in b/src/org.gnome.KrbAuthDialog.service.in
new file mode 100644
index 0000000..f49546a
--- /dev/null
+++ b/src/org.gnome.KrbAuthDialog.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.KrbAuthDialog
+Exec=@BINDIR@/krb5-auth-dialog -A
-- 
bgstack15