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
This commit is contained in:
Ludovic Rousseau 2021-10-01 18:36:54 +02:00
parent 364e5b68b4
commit 555c719c18
3 changed files with 4 additions and 3 deletions

1
debian/changelog vendored
View File

@ -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 <rousseau@debian.org> Fri, 01 Oct 2021 18:16:02 +0200

View File

@ -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

2
debian/rules vendored
View File

@ -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)