sysmocom-openvpn-config: Add a recipe with our generic OpenVPN client config
This way I just need to install sysmocom-openvpn-config and copy a matching key to the device for the VPN config. The configuration file is marked as a CONFFILE, this means that modifications to it will not be lost during upgrade.
This commit is contained in:
parent
0c797643dd
commit
212ab87663
|
@ -0,0 +1,11 @@
|
||||||
|
#OpenVPN client conf
|
||||||
|
tls-client
|
||||||
|
client
|
||||||
|
dev tun
|
||||||
|
proto udp
|
||||||
|
tun-mtu 1500
|
||||||
|
remote admin.sysmocom.de
|
||||||
|
remote 78.46.147.238
|
||||||
|
comp-lzo
|
||||||
|
pkcs12 sysmocom-client-cert.p12
|
||||||
|
cipher BF-CBC
|
|
@ -0,0 +1,16 @@
|
||||||
|
HOMEPAGE = "http://www.sysmocom.de"
|
||||||
|
RDEPENDS_${PN} = "openvpn"
|
||||||
|
|
||||||
|
LICENSE = "MIT"
|
||||||
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
||||||
|
|
||||||
|
SRC_URI = "file://sysmocom-vpn.conf"
|
||||||
|
PR = "r3"
|
||||||
|
|
||||||
|
CONFFILES_${PN} = "${sysconfdir}/openvpn/sysmocom-vpn.conf"
|
||||||
|
PACKAGE_ARCH = "all"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
install -d ${D}${sysconfdir}/openvpn
|
||||||
|
install -m 0644 ${WORKDIR}/sysmocom-vpn.conf ${D}${sysconfdir}/openvpn
|
||||||
|
}
|
Loading…
Reference in New Issue