From 555c719c1814f7ae7904a4eeb02b629528c15031 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 1 Oct 2021 18:36:54 +0200 Subject: [PATCH] d/rules: install systemd-service file in /usr/lib/systemd/system E: pcscd: systemd-service-in-odd-location lib/systemd/system/pcscd.service N: N: The package ships a systemd service file in a location outside N: /usr/lib/systemd/system/ N: N: Systemd in Debian looks for unit files in /usr/lib/systemd/system/. N: /lib/systemd/system/ and /etc/systemd/system, but the first location is N: now standard in Debian. N: N: System administrators have the possibility to override service files (or N: in newer systemd versions, parts of them) by placing files in N: /etc/systemd/system. The canonical location for service files in Debian N: is /usr/lib/systemd/system/. N: N: Please refer to Bug#992465, Bug#987989, N: https://salsa.debian.org/debian/debhelper/-/commit/d70caa69c64b124e3611c96 --- debian/changelog | 1 + debian/pcscd.install | 4 ++-- debian/rules | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 98a4a80..5f85902 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ pcsc-lite (1.9.4-1) UNRELEASED; urgency=medium * d/upstream/metadata: add DEP12/UMEGAYA file * new upstream release + * d/rules: install systemd-service file in /usr/lib/systemd/system -- Ludovic Rousseau Fri, 01 Oct 2021 18:16:02 +0200 diff --git a/debian/pcscd.install b/debian/pcscd.install index 4314dcd..dbd1060 100644 --- a/debian/pcscd.install +++ b/debian/pcscd.install @@ -1,3 +1,3 @@ usr/sbin/pcscd -lib/systemd/system/pcscd.socket -lib/systemd/system/pcscd.service +usr/lib/systemd/system/pcscd.socket +usr/lib/systemd/system/pcscd.service diff --git a/debian/rules b/debian/rules index 73cb02a..cbcdbe3 100755 --- a/debian/rules +++ b/debian/rules @@ -12,7 +12,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all override_dh_auto_configure: dh_auto_configure -- $(EXTRA_CONFIGURE_ARGS) \ - --with-systemdsystemunitdir=/lib/systemd/system \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ --enable-usbdropdir=/usr/lib/pcsc/drivers \ --enable-ipcdir=/run/pcscd \ $(shell dpkg-buildflags --export=configure)