+++ /dev/null
-[Unit]
-Description=autorandr execution hook
-After=sleep.target
-StartLimitIntervalSec=5
-StartLimitBurst=1
-
-[Service]
-ExecStart=/usr/bin/autorandr --batch --change --default default
-Type=oneshot
-RemainAfterExit=false
-
-[Install]
-WantedBy=sleep.target
* Use StartLimitIntervalSec again, as even oldoldstable has systemd >>
230
* Install things from contrib as examples
+ * Add dependencies on pkgconf and systemd-dev so the unit file location
+ can be guessed by default.
- -- Don Armstrong <don@debian.org> Fri, 28 Apr 2023 16:26:14 -0700
+ [Helmut Grohne]
+ * Install systemd unit only once. (Closes: #1054477)
+
+ -- Don Armstrong <don@debian.org> Fri, 27 Oct 2023 21:11:41 -0700
autorandr (1.12.1-1) unstable; urgency=medium
Section: x11
Priority: optional
Maintainer: Don Armstrong <don@debian.org>
-Build-Depends: debhelper-compat (= 13), dh-python, python3-all, python3-setuptools, desktop-file-utils
+Build-Depends: debhelper-compat (= 13), dh-python, python3-all, python3-setuptools, desktop-file-utils, systemd-dev, pkgconf
Standards-Version: 4.6.1
Homepage: https://github.com/phillipberndt/autorandr
Vcs-Git: https://salsa.debian.org/debian/autorandr.git
override_dh_auto_build:
dh_auto_build -- UDEV_RULES_DIR=/lib/udev/rules.d \
- SYSTEMD_UNIT_DIR=/lib/systemd/system \
BASH_COMPLETIONS_DIR=/usr/share/bash-completion/completions \
PM_SLEEPHOOKS_DIR=/etc/pm/sleep.d/
override_dh_auto_install:
dh_auto_install -- UDEV_RULES_DIR=/lib/udev/rules.d \
- SYSTEMD_UNIT_DIR=/lib/systemd/system \
BASH_COMPLETIONS_DIR=/usr/share/bash-completion/completions \
PM_SLEEPHOOKS_DIR=/etc/pm/sleep.d/
install -D -m 755 contrib/pm-utils/40autorandr debian/autorandr/etc/pm/sleep.d/40autorandr