On Tue, Apr 11, 2023 at 09:37:27AM +0200, bi...@debian.org wrote: > Package: gammu-smsd > Version: 1.42.0-7 > Severity: serious > Tags: sid bookworm > User: debhel...@packages.debian.org > Usertags: systemd-files-in-usr-bookworm > > Dear Maintainer, > > It seems that your package gammu-smsd is shipping files (.service, .socket or > .timer) in /usr/lib/systemd/system. [...]
The culprit seems to be here: https://sources.debian.org/src/gammu/1.42.0-7/debian/rules/#L32 ``` -DSYSTEMD_SERVICES_INSTALL_DIR=/usr/lib/systemd/system \ ``` By removing this line you'll let cmake auto-detect the correct path via ./cmake/FindSystemD.cmake which uses pkg-config. Make sure you also build-dep on the package containing systemd.pc (you already seem to have pkg-config itself in build-deps). Also note that you need to adjust: https://sources.debian.org/src/gammu/1.42.0-7/debian/gammu-smsd.install/#L5 Regards, Andreas Henriksson