From d68fa7dd52a2f38fef9c9873f38d999a333cb041 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 1 Nov 2013 21:54:13 +0100 Subject: Use logind for session tracking on linux, consolekit on other systems --- debian/rules | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 7a1ac6a3..fa7497d2 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,13 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +ifeq (linux,$(DEB_HOST_ARCH_OS)) + SESSION_TRACKING = systemd +else + SESSION_TRACKING = consolekit +endif + + %: dh $@ --with gir @@ -14,8 +21,7 @@ override_dh_auto_configure: --with-iptables=/sbin/iptables \ --with-systemdsystemunitdir=/lib/systemd/system \ --with-crypto=gnutls \ - --with-session-tracking=systemd \ - --with-suspend-resume=systemd \ + --with-session-tracking=$(SESSION_TRACKING) \ --disable-more-warnings \ --disable-modify-system \ --enable-polkit \ -- cgit 1.3.0-6-gf8a5