openvpn: create an extra package for the dns-updown script

The dns-updown script is written in bash which is under the GPLv3
license. As this script is optional, it is preferred to have it in an extra
package.

Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Signed-off-by: Omkar Patil <OmkarAbaji.Patil@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
Louis Rannou authored and Anuj Mittal committed 2026-10-05 14:40:35 +05:30
1 parent 47d7dbdd10
commit b1740f6665
1 file changed
+3 -2
@@ -49,7 +49,7 @@ PACKAGECONFIG[iproute2] = "--enable-iproute2,,iproute2,iproute2-ip"
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
RDEPENDS:${PN}:append = " bash"
RDEPENDS:${PN}-dns-updown:append = " bash"
RDEPENDS:${PN}-ptest:append = " bash"
do_install:append() {
@@ -116,7 +116,7 @@ do_install_ptest() {
cp -f ${S}/tests/t_lpback.sh ${D}/${PTEST_PATH}
}
PACKAGES =+ " ${PN}-sample "
PACKAGES =+ " ${PN}-dns-updown ${PN}-sample "
RRECOMMENDS:${PN} = "kernel-module-tun"
@@ -126,5 +126,6 @@ FILES:${PN} += "${systemd_system_unitdir}/openvpn-server@.service \
${systemd_system_unitdir}/openvpn-client@.service \
${nonarch_libdir}/tmpfiles.d \
"
FILES:${PN}-dns-updown = "${libexecdir}/openvpn/dns-updown"
FILES:${PN}-sample = "${sysconfdir}/openvpn/sample/ \
"