From e7a4a5a4bf98d1dcf8d78537fcac48410c4ae949 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 27 Oct 2023 21:15:34 -0700 Subject: [PATCH] Install only upstream systemd unit --- debian/autorandr.service | 13 ------------- debian/changelog | 7 ++++++- debian/control | 2 +- debian/rules | 2 -- 4 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 debian/autorandr.service diff --git a/debian/autorandr.service b/debian/autorandr.service deleted file mode 100644 index 4fef1c6..0000000 --- a/debian/autorandr.service +++ /dev/null @@ -1,13 +0,0 @@ -[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 diff --git a/debian/changelog b/debian/changelog index 6a09d9f..936d137 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,8 +15,13 @@ autorandr (1.13.3-1) unstable; urgency=medium * 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 Fri, 28 Apr 2023 16:26:14 -0700 + [Helmut Grohne] + * Install systemd unit only once. (Closes: #1054477) + + -- Don Armstrong Fri, 27 Oct 2023 21:11:41 -0700 autorandr (1.12.1-1) unstable; urgency=medium diff --git a/debian/control b/debian/control index a399484..f091eb8 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: autorandr Section: x11 Priority: optional Maintainer: Don Armstrong -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 diff --git a/debian/rules b/debian/rules index f7d7e4c..5eee5ea 100755 --- a/debian/rules +++ b/debian/rules @@ -5,13 +5,11 @@ 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 -- 2.39.2