summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/strongswan/strongswan_5.0.0.bb6
-rw-r--r--meta-systemd/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bbappend8
2 files changed, 13 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bb b/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bb
index 52c8becb0..efacc8ea4 100644
--- a/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bb
+++ b/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bb
@@ -5,7 +5,7 @@ SECTION = "console/network"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7DEPENDS = "gmp openssl flex-native flex bison-native" 7DEPENDS = "gmp openssl flex-native flex bison-native"
8PR = "r1" 8PR = "r2"
9 9
10SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2" 10SRC_URI = "http://download.strongswan.org/strongswan-${PV}.tar.bz2"
11SRC_URI[md5sum] = "c8b861305def7c0abae04f7bbefec212" 11SRC_URI[md5sum] = "c8b861305def7c0abae04f7bbefec212"
@@ -15,6 +15,10 @@ EXTRA_OECONF = "--disable-curl --disable-soup --disable-ldap \
15 --enable-gmp --disable-mysql --disable-sqlite \ 15 --enable-gmp --disable-mysql --disable-sqlite \
16 --enable-openssl" 16 --enable-openssl"
17 17
18SYSTEMD_UNITDIR ??= "no"
19
20EXTRA_OECONF += "--with-systemdsystemunitdir=${SYSTEMD_UNITDIR}"
21
18inherit autotools 22inherit autotools
19 23
20RRECOMMENDS_${PN} = "kernel-module-ipsec" 24RRECOMMENDS_${PN} = "kernel-module-ipsec"
diff --git a/meta-systemd/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bbappend b/meta-systemd/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bbappend
new file mode 100644
index 000000000..a60a109af
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-support/strongswan/strongswan_5.0.0.bbappend
@@ -0,0 +1,8 @@
1inherit systemd
2
3PRINC := "${@int(PRINC) + 1}"
4
5SYSTEMD_UNITDIR = "${systemd_unitdir}/system"
6
7SYSTEMD_PACKAGES = "${PN}-systemd"
8SYSTEMD_SERVICE = "${PN}.service"