openvpn: add PACKAGECONFIG for systemd
PATCH 1/2 openvpn: add PACKAGECONFIG for systemd
The systemd support had been integrated to openvpn for a long time. Add PACKAGECONFIG for it and use its own service files and volatile file.
Signed-off-by Yi Zhao <[email protected]>
--- .../recipes-support/openvpn/openvpn/openvpn | 0 .../openvpn/openvpn/openvpn-volatile.conf | 1 - .../openvpn/openvpn/[email protected] | 12 ----- .../recipes-support/openvpn/openvpn_2.5.7.bb | 49 +++++++++---------- 4 files changed, 22 insertions(+), 40 deletions(-) mode change 100755 => 100644 meta-networking/recipes-support/openvpn/openvpn/openvpn delete mode 100644 meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf delete mode 100644 meta-networking/recipes-support/openvpn/openvpn/[email protected]
meta-networking/recipes-support/openvpn/openvpn/openvpn +0 -0
meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf deleted +0 -1
@@ -1 +0,0 @@ -d @LOCALSTATEDIR@/run/openvpn 0755 root root -
meta-networking/recipes-support/openvpn/openvpn/[email protected] deleted +0 -12
@@ -1,12 +0,0 @@ -[Unit] -Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I -After=syslog.target network.target - -[Service] -PrivateTmp=true -Type=forking -PIDFile=/var/run/openvpn/%i.pid -ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --cipher AES-256-GCM --data-ciphers AES-256-GCM:AES-128-GCM:AES-256-CBC:AES-128-CBC:BF-CBC --config %i.conf - -[Install] -WantedBy=multi-user.target
meta-networking/recipes-support/openvpn/openvpn_2.5.7.bb +22 -27
84 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH 2/2 openvpn: add PACKAGECONFIG for selinux
This is useful for selinux distro feature.
Signed-off-by Yi Zhao <[email protected]>
--- meta-networking/recipes-support/openvpn/openvpn_2.5.7.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-support/openvpn/openvpn_2.5.7.bb +2 -0
@@ -37,9 +37,11 @@ EXTRA_OECONF += "SYSTEMD_UNIT_DIR=${systemd_system_unitdir} \ " PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ " PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" do_install:append() { install -d ${D}/${sysconfdir}/init.d
Signature · 1 line
2.25.1