summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/openvpn
diff options
context:
space:
mode:
authorBian Naimeng <biannm@cn.fujitsu.com>2015-02-11 13:25:25 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2015-02-23 13:21:54 -0500
commit050486a0931baee317ada075f63ace12970aad47 (patch)
tree78c3214d7b14e5b67cb2b140cc827da50e56cdd9 /meta-networking/recipes-support/openvpn
parent7fc8172e3d36c8ed48c62a27740ea4b59e88afee (diff)
downloadmeta-openembedded-050486a0931baee317ada075f63ace12970aad47.tar.gz
openvpn: install /etc/tmpfiles.d/openvpn.conf
Directory /var/run/openvpn is required by service. Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.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')
-rw-r--r--meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf1
-rw-r--r--meta-networking/recipes-support/openvpn/openvpn_2.3.6.bb6
2 files changed, 6 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf b/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf
new file mode 100644
index 000000000..4a3dc4a46
--- /dev/null
+++ b/meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf
@@ -0,0 +1 @@
d /var/run/openvpn 0755 root root -
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.3.6.bb b/meta-networking/recipes-support/openvpn/openvpn_2.3.6.bb
index 58ddcc813..08f30b50f 100644
--- a/meta-networking/recipes-support/openvpn/openvpn_2.3.6.bb
+++ b/meta-networking/recipes-support/openvpn/openvpn_2.3.6.bb
@@ -9,7 +9,8 @@ inherit autotools systemd
9 9
10SRC_URI = "http://swupdate.openvpn.org/community/releases/openvpn-${PV}.tar.gz \ 10SRC_URI = "http://swupdate.openvpn.org/community/releases/openvpn-${PV}.tar.gz \
11 file://openvpn \ 11 file://openvpn \
12 file://openvpn@.service " 12 file://openvpn@.service \
13 file://openvpn-volatile.conf"
13 14
14SRC_URI[md5sum] = "6ca03fe0fd093e0d01601abee808835c" 15SRC_URI[md5sum] = "6ca03fe0fd093e0d01601abee808835c"
15SRC_URI[sha256sum] = "7baed2ff39c12e1a1a289ec0b46fcc49ff094ca58b8d8d5f29b36ac649ee5b26" 16SRC_URI[sha256sum] = "7baed2ff39c12e1a1a289ec0b46fcc49ff094ca58b8d8d5f29b36ac649ee5b26"
@@ -48,6 +49,9 @@ do_install_append() {
48 install -d -m 710 ${D}/${localstatedir}/lib/openvpn 49 install -d -m 710 ${D}/${localstatedir}/lib/openvpn
49 install -d -m 755 ${D}/${localstatedir}/run/ 50 install -d -m 755 ${D}/${localstatedir}/run/
50 install -d -m 755 ${D}/${localstatedir}/run/openvpn 51 install -d -m 755 ${D}/${localstatedir}/run/openvpn
52
53 install -d ${D}${sysconfdir}/tmpfiles.d
54 install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf
51 fi 55 fi
52} 56}
53 57