Package: libreswan Version: 3.21-1 The packae installs ipsec.service file in a wrong directory, /ipsec.service (root). It should be in /lib/systemd/system/ipsec.service
Check https://packages.debian.org/experimental/amd64/libreswan/filelist And there is also a Lintian warning libreswan W file-in-unusual-dir ipsec.service ipsec.service I suspect it is due to a broken dependency. The build sytem do not have systemctl installed? Note: I couldn't reproduce it exactly, because my build env has systemd installed. However, looking at the debain build log I notice an error. The auto path detection, UNITDIR, fails on the debian build system, which run the following command from /initsystems/systemd/Makefile pkg-config systemd --variable=systemdsystemunitdir https://buildd.debian.org/status/fetch.php?pkg=libreswan&arch=amd64&ver=3.21-1&stamp=1502426292&raw=0 install --mode=0644 ipsec.service /<<PKGBUILDDIR>>/debian/libreswan/ /bin/bash: line 0: test: /<<PKGBUILDDIR>>/debian/libreswan/: unary operator expected /bin/bash: systemctl: command not found /bin/bash: systemctl: command not found /bin/bash: systemctl: command not found /bin/bash: line 0: test: too many arguments /bin/bash: line 7: test: too many arguments /bin/bash: line 11: test: too many arguments make[4]: Leaving directory '/<<PKGBUILDDIR>>/OBJ.linux.x86_64/initsystems/system Note: libreswan 3.20 in sid is installing ipsec.service to the correct location /lib/systemd/system/ipsec.service Here is a propsed fix, I am not sure it will work for the debian build system. If not may be debian build system has another command, instead of pkg-config, to autodetect UNITDIR. If it is different, the path should be somehow passed to ./initsystems/systemd/Makefile regards, -antony
>From 7484b475e989a5f448a2199077236769d30ddff7 Mon Sep 17 00:00:00 2001 From: Antony Antony <ant...@phenome.org> Date: Tue, 12 Sep 2017 20:12:28 +0200 Subject: [PATCH] add systemd build dependency the package systemd is needed auto detect UNITDIR, 'pkg-config systemd --variable=systemdsystemunitdir' adding this dependency may work on debian build sytems Signed-off-by: Antony Antony <ant...@phenome.org> --- debian/control | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/control b/debian/control index 10891f3..2ccaf05 100644 --- a/debian/control +++ b/debian/control @@ -31,6 +31,7 @@ Build-Depends: man2html, pkg-config, po-debconf, + systemd, xmlto, Homepage: https://libreswan.org/ @@ -48,6 +49,7 @@ Depends: libnss3 (>= 3.16), libnss3-tools, libunbound2, + systemd, ${misc:Depends}, ${shlibs:Depends}, Recommends: -- 2.9.4