diff options
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 10 |
1 files changed, 8 insertions, 2 deletions
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 \ |