mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
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 <louis.rannou@non.se.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -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}/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/ \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user