<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Paul,<div><br></div><div>The debian rule was not building the unit file, applying the following changes solves the issue:</div><div><br></div><div><br></div><div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">diff --git a/packaging/debian/rules b/packaging/debian/rules</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">index 7b6a790cb7..522e902d91 100755</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">--- a/packaging/debian/rules</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">+++ b/packaging/debian/rules</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">@@ -27,6 +27,7 @@</span><span style="font-variant-ligatures: no-common-ligatures"> override_dh_auto_build:</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                LIBEXECDIR=/usr/libexec/ipsec \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                MANDIR=/usr/share/man \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                USE_LDAP=true \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(47, 180, 29); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">+</span><span style="font-variant-ligatures: no-common-ligatures; color: #f2f2f2">               </span><span style="font-variant-ligatures: no-common-ligatures">INITSYSTEM=systemd \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                $(ENABLE_LIBCAP_NG) \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                $(ENABLE_SELINUX)</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0); min-height: 14px;"><span style="font-variant-ligatures: no-common-ligatures"> </span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb">@@ -39,6 +40,7 @@</span><span style="font-variant-ligatures: no-common-ligatures"> override_dh_auto_install-arch:</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                LIBEXECDIR=/usr/libexec/ipsec \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                MANDIR=/usr/share/man \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                USE_LDAP=true \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(47, 180, 29); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">+</span><span style="font-variant-ligatures: no-common-ligatures; color: #f2f2f2">               </span><span style="font-variant-ligatures: no-common-ligatures">INITSYSTEM=systemd \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                $(ENABLE_LIBCAP_NG) \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                $(ENABLE_SELINUX) \</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">                DESTDIR=$(CURDIR)/debian/libreswan</span></p></div><div><div>
<meta charset="UTF-8"><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">The package now contains the unit file:</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">dpkg -c libreswan_4.9-1_amd64.deb  | grep service</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgb(0, 0, 0);"><span style="font-variant-ligatures: no-common-ligatures">-rw-r--r-- root/root      1531 2022-10-13 01:00 ./lib/systemd/system/ipsec.service</span></p></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">I install the package and it work as expected, I can start/stop/restart/enable/disable ipsec service without any issue. </div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Do you want me to create e pull request in github?</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="Apple-interchange-newline">—</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Saludos / Regards / Cumprimentos</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">António Silva</div>
</div>
<div><br><blockquote type="cite"><div>On 8 Nov 2022, at 12:58, Paul Wouters <paul@nohats.ca> wrote:</div><br class="Apple-interchange-newline"><div><div>On Tue, 8 Nov 2022, antonio wrote:<br><br><blockquote type="cite">The issue is with systemd service apparently, I started with init.d/ipsec and is ok.<br>The generated package for version 4.9 doesn’t include a unit file. <br>dpkg -c binaries/libreswan_4.9-1_amd64.deb | grep systemd<br>drwxr-xr-x root/root         0 2022-10-13 01:00 ./lib/systemd/<br>drwxr-xr-x root/root         0 2022-10-13 01:00 ./lib/systemd/system-preset/<br>-rw-r--r-- root/root       145 2022-10-13 01:00 ./lib/systemd/system-preset/90-libreswan.preset<br></blockquote><br><blockquote type="cite">It was removed in commit: https://github.com/libreswan/libreswan/commit/20fe3adb398eaafb8dc62df06cf32461aaa817d7<br>On my server i had copy  ipsec.service into /etc/systemd/system/ipsec.service, and when updated to 4.9 it wasn’t removed. <br></blockquote><br>It sounds like we might need to add another build dependency for systemd<br>that is different from dh-systemd ?<br><br>Any debian user that knows the answer?<br><br>Paul<br><br></div></div></blockquote></div><br></div></body></html>