openvpn: create an extra package for the dns-updown script
PATCH v2 1/1 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 preffered to have it in an extra package.
Signed-off-by Louis Rannou <[email protected]>
---
change in v2: new package openvpn-dns-updown
--- meta-networking/recipes-support/openvpn/openvpn_2.7.0.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta-networking/recipes-support/openvpn/openvpn_2.7.0.bb +3 -2
@@ -47,7 +47,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() {
@@ -114,7 +114,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"
@@ -124,5 +124,6 @@ FILES:${PN} += "${systemd_system_unitdir}/[email protected] \ ${systemd_system_unitdir}/[email protected] \ ${nonarch_libdir}/tmpfiles.d \ " +FILES:${PN}-dns-updown = "${libexecdir}/openvpn/dns-updown" FILES:${PN}-sample = "${sysconfdir}/openvpn/sample/ \ "
---
base-commit: 420222862f5a6d95023b8f5f3b7e1808b2264ef9
change-id: 20260506-bash-rr-5fd0820519e4
Best regards,
Signature · 1 line
Louis Rannou <[email protected]>