diff options
| author | Sjoerd Simons <sjoerd@luon.net> | 2013-11-01 21:54:13 +0100 |
|---|---|---|
| committer | Sjoerd Simons <sjoerd@luon.net> | 2013-11-01 21:54:13 +0100 |
| commit | d68fa7dd52a2f38fef9c9873f38d999a333cb041 (patch) | |
| tree | ce294ea4078b94e65120386832ed16a9418c18dc /debian/rules | |
| parent | 72c80711824afe79014eca94150c80a38e03bded (diff) | |
Use logind for session tracking on linux, consolekit on other systems
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 \ |