Skip to contentSkip to conversation

openvpn: add PACKAGECONFIG for systemd

PATCH New Yi Zhao 1 participant 2 messages Jul 7, 2022

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

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.

---
 .../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
old mode 100755
new mode 100644
meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf deleted +0 -1
deleted file mode 100644
index 1205806d5..000000000
@@ -1 +0,0 @@
-d @LOCALSTATEDIR@/run/openvpn 0755 root root -
meta-networking/recipes-support/openvpn/openvpn/[email protected] deleted +0 -12
deleted file mode 100644
index 01dd2e8c2..000000000
@@ -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
author
#1 lore raw

PATCH 2/2 openvpn: add PACKAGECONFIG for selinux

This is useful for selinux distro feature.

---
 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
index 7404e6e58..1395a35f5 100644
@@ -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