[oe] [meta-oe][PATCH v2 1/2] vpnc: stage vpnc-script
Ioan-Adrian Ratiu
adrian.ratiu at ni.com
Mon Apr 4 12:43:45 UTC 2016
The vpn connection handling script is used during building openconnect
so we need to stage it.
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu at ni.com>
---
meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
index 0670c5e..ccb4494 100644
--- a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
@@ -24,6 +24,13 @@ do_install () {
install ${WORKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf
}
+SYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess"
+
+vpnc_sysroot_preprocess () {
+ install -d ${SYSROOT_DESTDIR}${sysconfdir}/vpnc
+ install -m 755 ${D}${sysconfdir}/vpnc/vpnc-script ${SYSROOT_DESTDIR}${sysconfdir}/vpnc
+}
+
CONFFILES_${PN} = "${sysconfdir}/vpnc/default.conf"
RDEPENDS_${PN} = "perl-module-io-file"
RRECOMMENDS_${PN} = "kernel-module-tun"
--
2.7.4
More information about the Openembedded-devel
mailing list