|
|
8e731f |
From 03f949a0b394ab954fc68f33e092dc0bb1fec406 Mon Sep 17 00:00:00 2001
|
|
|
8e731f |
From: Sumit Bose <sbose@redhat.com>
|
|
|
8e731f |
Date: Tue, 28 Jun 2016 14:41:01 +0200
|
|
|
8e731f |
Subject: [PATCH] Make DBus aware of systemd
|
|
|
8e731f |
|
|
|
8e731f |
---
|
|
|
8e731f |
Makefile.am | 1 +
|
|
|
8e731f |
configure.ac | 7 +++++++
|
|
|
8e731f |
dbus/org.freedesktop.realmd.service.in | 1 +
|
|
|
8e731f |
3 files changed, 9 insertions(+)
|
|
|
8e731f |
|
|
|
8e731f |
diff --git a/Makefile.am b/Makefile.am
|
|
|
8e731f |
index 52de3dc..c81f048 100644
|
|
|
8e731f |
--- a/Makefile.am
|
|
|
8e731f |
+++ b/Makefile.am
|
|
|
8e731f |
@@ -49,6 +49,7 @@ SED_SUBST = sed \
|
|
|
8e731f |
-e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
|
|
|
8e731f |
-e 's,[@]srcdir[@],$(srcdir),g' \
|
|
|
8e731f |
-e 's,[@]privatedir[@],$(privatedir),g' \
|
|
|
8e731f |
+ -e 's,[@]dbus_systemd_service[@],$(dbus_systemd_service),g' \
|
|
|
8e731f |
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
|
|
|
8e731f |
-e 's,[@]VERSION[@],$(VERSION),g' \
|
|
|
8e731f |
$(NULL)
|
|
|
8e731f |
diff --git a/configure.ac b/configure.ac
|
|
|
8e731f |
index 032cdaa..0376887 100644
|
|
|
8e731f |
--- a/configure.ac
|
|
|
8e731f |
+++ b/configure.ac
|
|
|
8e731f |
@@ -110,6 +110,13 @@ fi
|
|
|
8e731f |
SYSTEMD_UNIT_DIR="$with_systemd_unit_dir"
|
|
|
8e731f |
AC_SUBST(SYSTEMD_UNIT_DIR)
|
|
|
8e731f |
AM_CONDITIONAL(WITH_SYSTEMD, [test -n "$with_systemd_unit_dir"])
|
|
|
8e731f |
+
|
|
|
8e731f |
+dbus_systemd_service=""
|
|
|
8e731f |
+if test -n "$with_systemd_unit_dir"; then
|
|
|
8e731f |
+ dbus_systemd_service="SystemdService=realmd.service"
|
|
|
8e731f |
+fi
|
|
|
8e731f |
+AC_SUBST(dbus_systemd_service)
|
|
|
8e731f |
+
|
|
|
8e731f |
AC_MSG_RESULT($with_systemd_unit_dir)
|
|
|
8e731f |
|
|
|
8e731f |
AC_ARG_WITH(systemd-journal,
|
|
|
8e731f |
diff --git a/dbus/org.freedesktop.realmd.service.in b/dbus/org.freedesktop.realmd.service.in
|
|
|
8e731f |
index 834e23f..51132f6 100644
|
|
|
8e731f |
--- a/dbus/org.freedesktop.realmd.service.in
|
|
|
8e731f |
+++ b/dbus/org.freedesktop.realmd.service.in
|
|
|
8e731f |
@@ -2,3 +2,4 @@
|
|
|
8e731f |
Name=org.freedesktop.realmd
|
|
|
8e731f |
Exec=@privatedir@/realmd
|
|
|
8e731f |
User=root
|
|
|
8e731f |
+@dbus_systemd_service@
|
|
|
8e731f |
--
|
|
|
8e731f |
2.7.4
|
|
|
8e731f |
|