summaryrefslogtreecommitdiff
path: root/recipes-connectivity/strongswan/strongswan_%.bbappend
blob: 3286caa5818ab9b19c1f92cfb3c358e985bc0a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${THISDIR}/files:"

PR.=".mts2"

PACKAGECONFIG_remove = "sqlite3"

PACKAGECONFIG_append = "stroke"

do_install_append() {
    install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/ipsec.d/
    ln -sf /var/run/ipsec/ipsec.conf ${D}${sysconfdir}/ipsec.conf
    ln -sf /var/run/ipsec/ipsec.secrets ${D}${sysconfdir}/ipsec.secrets
    rm -rf ${D}${sysconfdir}/ipsec.d/cacerts
    ln -sf /var/run/ipsec/cacerts ${D}${sysconfdir}/ipsec.d/cacerts
    rm -rf ${D}${sysconfdir}/ipsec.d/certs
    ln -sf /var/run/ipsec/certs ${D}${sysconfdir}/ipsec.d/certs
    rm -rf ${D}${sysconfdir}/ipsec.d/private
    ln -sf /var/run/ipsec/private ${D}${sysconfdir}/ipsec.d/private
}