diff options
author | Kai Kang <kai.kang@windriver.com> | 2017-08-19 14:28:34 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-09-12 10:37:19 -0400 |
commit | 0a949fb89740b30b137717b28b5c276a9760195b (patch) | |
tree | 582fb2352f0a862403d2185b2e3b426ffb9c013b /meta-networking/recipes-support/openvpn/openvpn_2.4.3.bb | |
parent | 07762fd6ef60bbd3e6ab593125b18ec6fd6baa64 (diff) | |
download | meta-openembedded-0a949fb89740b30b137717b28b5c276a9760195b.tar.gz |
openvpn: 2.4.2 -> 2.4.3
Upgrade openvpn from 2.4.2 to 2.4.3.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/openvpn/openvpn_2.4.3.bb')
-rw-r--r-- | meta-networking/recipes-support/openvpn/openvpn_2.4.3.bb | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.4.3.bb b/meta-networking/recipes-support/openvpn/openvpn_2.4.3.bb new file mode 100644 index 000000000..90097f32a --- /dev/null +++ b/meta-networking/recipes-support/openvpn/openvpn_2.4.3.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | SUMMARY = "A full-featured SSL VPN solution via tun device." | ||
2 | HOMEPAGE = "http://openvpn.sourceforge.net" | ||
3 | SECTION = "net" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=e9b64491ec98eb6c6493ac5e4118f107" | ||
6 | DEPENDS = "lzo openssl iproute2 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
7 | |||
8 | inherit autotools systemd | ||
9 | |||
10 | SRC_URI = "http://swupdate.openvpn.org/community/releases/${BP}.tar.gz \ | ||
11 | file://openvpn \ | ||
12 | file://openvpn@.service \ | ||
13 | file://openvpn-volatile.conf" | ||
14 | |||
15 | SRC_URI[md5sum] = "e1929f82aff40f3d105e5f72aacff9c1" | ||
16 | SRC_URI[sha256sum] = "cee3d3ca462960a50a67c0ebd186e01b6d13db70275205663695152c9aca8579" | ||
17 | |||
18 | SYSTEMD_SERVICE_${PN} += "openvpn@loopback-server.service openvpn@loopback-client.service" | ||
19 | SYSTEMD_AUTO_ENABLE = "disable" | ||
20 | |||
21 | CFLAGS += "-fno-inline" | ||
22 | |||
23 | # I want openvpn to be able to read password from file (hrw) | ||
24 | EXTRA_OECONF += "--enable-iproute2" | ||
25 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '', '--disable-plugin-auth-pam', d)}" | ||
26 | |||
27 | # Explicitly specify IPROUTE to bypass the configure-time check for /sbin/ip on the host. | ||
28 | EXTRA_OECONF += "IPROUTE=${base_sbindir}/ip" | ||
29 | |||
30 | do_install_append() { | ||
31 | install -d ${D}/${sysconfdir}/init.d | ||
32 | install -m 755 ${WORKDIR}/openvpn ${D}/${sysconfdir}/init.d | ||
33 | |||
34 | install -d ${D}/${sysconfdir}/openvpn | ||
35 | install -d ${D}/${sysconfdir}/openvpn/sample | ||
36 | install -m 755 ${S}/sample/sample-config-files/loopback-server ${D}${sysconfdir}/openvpn/sample/loopback-server.conf | ||
37 | install -m 755 ${S}/sample/sample-config-files/loopback-client ${D}${sysconfdir}/openvpn/sample/loopback-client.conf | ||
38 | install -dm 755 ${D}${sysconfdir}/openvpn/sample/sample-keys | ||
39 | install -m 644 ${S}/sample/sample-keys/* ${D}${sysconfdir}/openvpn/sample/sample-keys | ||
40 | |||
41 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
42 | install -d ${D}/${systemd_unitdir}/system | ||
43 | install -m 644 ${WORKDIR}/openvpn@.service ${D}/${systemd_unitdir}/system | ||
44 | install -m 644 ${WORKDIR}/openvpn@.service ${D}/${systemd_unitdir}/system/openvpn@loopback-server.service | ||
45 | install -m 644 ${WORKDIR}/openvpn@.service ${D}/${systemd_unitdir}/system/openvpn@loopback-client.service | ||
46 | |||
47 | install -d ${D}/${localstatedir} | ||
48 | install -d ${D}/${localstatedir}/lib | ||
49 | install -d -m 710 ${D}/${localstatedir}/lib/openvpn | ||
50 | |||
51 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
52 | install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf | ||
53 | sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${sysconfdir}/tmpfiles.d/openvpn.conf | ||
54 | fi | ||
55 | } | ||
56 | |||
57 | PACKAGES =+ " ${PN}-sample " | ||
58 | |||
59 | RRECOMMENDS_${PN} = "kernel-module-tun" | ||
60 | |||
61 | FILES_${PN}-dbg += "${libdir}/openvpn/plugins/.debug" | ||
62 | FILES_${PN} += "${systemd_unitdir}/system/openvpn@.service \ | ||
63 | ${sysconfdir}/tmpfiles.d \ | ||
64 | " | ||
65 | FILES_${PN}-sample += "${systemd_unitdir}/system/openvpn@loopback-server.service \ | ||
66 | ${systemd_unitdir}/system/openvpn@loopback-client.service \ | ||
67 | ${sysconfdir}/openvpn/sample/" | ||