aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/ayatana-indicator-application.service.in5
-rw-r--r--debian/ayatana-indicator-application.links3
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules2
4 files changed, 9 insertions, 2 deletions
diff --git a/data/ayatana-indicator-application.service.in b/data/ayatana-indicator-application.service.in
index b1068d0..3435853 100644
--- a/data/ayatana-indicator-application.service.in
+++ b/data/ayatana-indicator-application.service.in
@@ -1,8 +1,11 @@
[Unit]
Description=Ayatana Indicator Application Service
PartOf=graphical-session.target
-After=ayatana-indicators-pre.target
+PartOf=ayatana-indicators.target
[Service]
ExecStart=@pkglibexecdir@/ayatana-indicator-application-service
Restart=on-failure
+
+[Install]
+WantedBy=ayatana-indicators.target
diff --git a/debian/ayatana-indicator-application.links b/debian/ayatana-indicator-application.links
new file mode 100644
index 0000000..c4581ab
--- /dev/null
+++ b/debian/ayatana-indicator-application.links
@@ -0,0 +1,3 @@
+# Because dh-systemd does not support user units for compat levels below 12, we manually make the WantedBy link
+# FIXME: drop this once we bump DH compat level to 12 or higher
+/usr/lib/systemd/user/ayatana-indicator-application.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-application.service
diff --git a/debian/control b/debian/control
index ebcc2b7..42fd4b7 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
Maintainer: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Build-Depends: debhelper (>= 9.0),
dh-autoreconf | debhelper (>= 9.20160403~),
+ dh-systemd | debhelper (>= 10.2~),
dbus-test-runner,
mate-common,
xvfb,
diff --git a/debian/rules b/debian/rules
index 6310980..c7aa8a6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
%:
- dh $@ --with autoreconf
+ dh $@ --with autoreconf,systemd
override_dh_autoreconf:
NOCONFIGURE=1 dh_autoreconf ./autogen.sh