summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan_5.8.4.bb12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.8.4.bb b/meta-networking/recipes-support/strongswan/strongswan_5.8.4.bb
index ca645ed2c9..7f2a2b1e4a 100644
--- a/meta-networking/recipes-support/strongswan/strongswan_5.8.4.bb
+++ b/meta-networking/recipes-support/strongswan/strongswan_5.8.4.bb
@@ -25,7 +25,8 @@ EXTRA_OECONF = " \
25 25
26EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" 26EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
27 27
28PACKAGECONFIG ??= "charon curl gmp openssl stroke sqlite3 \ 28PACKAGECONFIG ??= "curl gmp openssl sqlite3 swanctl \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-charon', 'charon', d)} \
29 ${@bb.utils.filter('DISTRO_FEATURES', 'ldap', d)} \ 30 ${@bb.utils.filter('DISTRO_FEATURES', 'ldap', d)} \
30" 31"
31PACKAGECONFIG[aesni] = "--enable-aesni,--disable-aesni,,${PN}-plugin-aesni" 32PACKAGECONFIG[aesni] = "--enable-aesni,--disable-aesni,,${PN}-plugin-aesni"
@@ -135,4 +136,11 @@ RDEPENDS_${PN} += "\
135RPROVIDES_${PN} += "${PN}-systemd" 136RPROVIDES_${PN} += "${PN}-systemd"
136RREPLACES_${PN} += "${PN}-systemd" 137RREPLACES_${PN} += "${PN}-systemd"
137RCONFLICTS_${PN} += "${PN}-systemd" 138RCONFLICTS_${PN} += "${PN}-systemd"
138SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'swanctl', '${BPN}.service', '', d)} ${BPN}-starter.service" 139
140# The deprecated legacy 'strongswan-starter' service should only be used when charon and
141# stroke are enabled. When swanctl is in use, 'strongswan.service' is needed.
142# See: https://wiki.strongswan.org/projects/strongswan/wiki/Charon-systemd
143SYSTEMD_SERVICE_${PN} = " \
144 ${@bb.utils.contains('PACKAGECONFIG', 'swanctl', '${BPN}.service', '', d)} \
145 ${@bb.utils.contains('PACKAGECONFIG', 'charon', '${BPN}-starter.service', '', d)} \
146"