diff options
| author | Abhishek Bachiphale <Abhishek.Bachiphale@windriver.com> | 2026-06-05 02:22:57 +0530 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-06-07 18:21:50 -0700 |
| commit | 44ec3710d58879a7e9e5f2de97cd81c3211b522c (patch) | |
| tree | 8c6c0a4e12f1f1ffd9c12febd7011a4e226416f4 /meta-networking/recipes-support/dnsmasq/dnsmasq_2.93.bb | |
| parent | b2b319eef3ced83ab03634d87d7d1540af2c18e3 (diff) | |
| download | meta-openembedded-44ec3710d58879a7e9e5f2de97cd81c3211b522c.tar.gz | |
dnsmasq: upgrade 2.92 -> 2.93
ChangeLog:
https://dnsmasq.org/CHANGELOG
- Update checksum
- Remove obsolete patches
- Verified build and runtime functionality
Security fixes (included upstream in 2.93) :
- CVE-2026-2291
- CVE-2026-4890
- CVE-2026-4891
- CVE-2026-4892
- CVE-2026-4893
- CVE-2026-5172
- Removed patches corresponding to the above CVEs
as fixes are now part of upstream release
Signed-off-by: Abhishek Bachiphale <Abhishek.Bachiphale@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-networking/recipes-support/dnsmasq/dnsmasq_2.93.bb')
| -rw-r--r-- | meta-networking/recipes-support/dnsmasq/dnsmasq_2.93.bb | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.93.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.93.bb new file mode 100644 index 0000000000..765287018b --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.93.bb | |||
| @@ -0,0 +1,133 @@ | |||
| 1 | SUMMARY = "Lightweight, easy to configure DNS forwarder and DHCP server" | ||
| 2 | HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html" | ||
| 3 | SECTION = "net" | ||
| 4 | # GPLv3 was added in version 2.41 as license option | ||
| 5 | LICENSE = "GPL-2.0-only | GPL-3.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 7 | file://COPYING-v3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 8 | " | ||
| 9 | |||
| 10 | DEPENDS += "gettext-native" | ||
| 11 | |||
| 12 | #at least versions 2.69 and prior are moved to the archive folder on the server | ||
| 13 | SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getVar('PV').split('.')[1]) > 69]}dnsmasq-${PV}.tar.gz \ | ||
| 14 | file://init \ | ||
| 15 | file://dnsmasq-resolvconf.service \ | ||
| 16 | file://dnsmasq-noresolvconf.service \ | ||
| 17 | file://dnsmasq-resolved.conf \ | ||
| 18 | " | ||
| 19 | SRC_URI[sha256sum] = "cc967771abdafeb43d10db18932d6b59fd4bed2c69c22acf8cb96aff6920d55f" | ||
| 20 | |||
| 21 | inherit pkgconfig update-rc.d systemd | ||
| 22 | |||
| 23 | INITSCRIPT_NAME = "dnsmasq" | ||
| 24 | INITSCRIPT_PARAMS = "defaults" | ||
| 25 | |||
| 26 | # dnsmasq defaults | ||
| 27 | PACKAGECONFIG ?= "\ | ||
| 28 | auth dhcp dumpfile inotify ipset loop script tftp \ | ||
| 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'dhcp6', '', d)} \ | ||
| 30 | ${@bb.utils.contains('MACHINE_FEATURES', 'rtc', '', 'broken-rtc', d)} \ | ||
| 31 | " | ||
| 32 | |||
| 33 | # see src/config.h | ||
| 34 | PACKAGECONFIG[auth] = "-DHAVE_AUTH,-DNO_AUTH" | ||
| 35 | PACKAGECONFIG[broken-rtc] = "-DHAVE_BROKEN_RTC," | ||
| 36 | PACKAGECONFIG[conntrack] = "-DHAVE_CONNTRACK,,libnetfilter-conntrack" | ||
| 37 | PACKAGECONFIG[dbus] = "-DHAVE_DBUS,,dbus" | ||
| 38 | PACKAGECONFIG[dhcp] = "-DHAVE_DHCP,-DNO_DHCP" | ||
| 39 | PACKAGECONFIG[dhcp6] = "-DHAVE_DHCP6,-DNO_DHCP6" | ||
| 40 | PACKAGECONFIG[dnssec] = "-DHAVE_DNSSEC,,nettle" | ||
| 41 | PACKAGECONFIG[dumpfile] = "-DHAVE_DUMPFILE,-DNO_DUMPFILE" | ||
| 42 | PACKAGECONFIG[idn] = "-DHAVE_LIBIDN,,libidn,,,idn2" | ||
| 43 | PACKAGECONFIG[idn2] = "-DHAVE_LIBIDN2,,libidn2,,,idn" | ||
| 44 | PACKAGECONFIG[inotify] = "-DHAVE_INOTIFY,-DNO_INOTIFY" | ||
| 45 | PACKAGECONFIG[ipset] = "-DHAVE_IPSET,-DNO_IPSET" | ||
| 46 | PACKAGECONFIG[loop] = "-DHAVE_LOOP,-DNO_LOOP" | ||
| 47 | PACKAGECONFIG[lua] = "-DHAVE_LUASCRIPT -DHAVE_SCRIPT,,lua" | ||
| 48 | PACKAGECONFIG[nftset] = "-DHAVE_NFTSET,,nftables" | ||
| 49 | PACKAGECONFIG[no-gmp] = "-DNO_GMP," | ||
| 50 | PACKAGECONFIG[no-id] = "-DNO_ID," | ||
| 51 | PACKAGECONFIG[resolvconf] = ",,,resolvconf" | ||
| 52 | PACKAGECONFIG[script] = "-DHAVE_SCRIPT,-DNO_SCRIPT" | ||
| 53 | PACKAGECONFIG[tftp] = "-DHAVE_TFTP,-DNO_TFTP" | ||
| 54 | PACKAGECONFIG[ubus] = "-DHAVE_UBUS,,ubus" | ||
| 55 | |||
| 56 | DNSMASQ_LEASEFILE ?= "${localstatedir}/lib/misc/dnsmasq.leases" | ||
| 57 | DNSMASQ_CONFFILE ?= "${sysconfdir}/dnsmasq.conf" | ||
| 58 | DNSMASQ_RESOLVFILE ?= "${sysconfdir}/resolv.conf" | ||
| 59 | |||
| 60 | COPTS = "${PACKAGECONFIG_CONFARGS} \ | ||
| 61 | -DLEASEFILE=\"${DNSMASQ_LEASEFILE}\" \ | ||
| 62 | -DCONFFILE=\"${DNSMASQ_CONFFILE}\" \ | ||
| 63 | -DRESOLVFILE=\"${DNSMASQ_RESOLVFILE}\" \ | ||
| 64 | -DLOCALEDIR=\"${localedir}\"" | ||
| 65 | |||
| 66 | EXTRA_OEMAKE = "\ | ||
| 67 | 'COPTS=${COPTS}' \ | ||
| 68 | 'CFLAGS=${CFLAGS}' \ | ||
| 69 | 'LDFLAGS=${LDFLAGS}' \ | ||
| 70 | " | ||
| 71 | |||
| 72 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'resolvconf', 'file://dnsmasq.resolvconf file://99_dnsmasq file://dnsmasq-resolvconf-helper', '', d)}" | ||
| 73 | |||
| 74 | do_compile () { | ||
| 75 | oe_runmake all-i18n | ||
| 76 | if ${@bb.utils.contains_any('PACKAGECONFIG', ['dhcp', 'dhcp6'], 'true', 'false', d)}; then | ||
| 77 | # build dhcp_release | ||
| 78 | oe_runmake -C ${S}/contrib/lease-tools | ||
| 79 | fi | ||
| 80 | } | ||
| 81 | |||
| 82 | do_install () { | ||
| 83 | oe_runmake "PREFIX=${D}${prefix}" \ | ||
| 84 | "BINDIR=${D}${bindir}" \ | ||
| 85 | "MANDIR=${D}${mandir}" \ | ||
| 86 | install-i18n | ||
| 87 | install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d | ||
| 88 | install -m 644 ${S}/dnsmasq.conf.example ${D}${sysconfdir}/dnsmasq.conf | ||
| 89 | install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq | ||
| 90 | |||
| 91 | install -d ${D}${systemd_unitdir}/system | ||
| 92 | |||
| 93 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'resolvconf', d)}" ]; then | ||
| 94 | install -m 0644 ${UNPACKDIR}/dnsmasq-resolvconf.service ${D}${systemd_unitdir}/system/dnsmasq.service | ||
| 95 | else | ||
| 96 | install -m 0644 ${UNPACKDIR}/dnsmasq-noresolvconf.service ${D}${systemd_unitdir}/system/dnsmasq.service | ||
| 97 | fi | ||
| 98 | |||
| 99 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then | ||
| 100 | install -d ${D}${sysconfdir}/systemd/resolved.conf.d/ | ||
| 101 | install -m 0644 ${UNPACKDIR}/dnsmasq-resolved.conf ${D}${sysconfdir}/systemd/resolved.conf.d/ | ||
| 102 | fi | ||
| 103 | |||
| 104 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'dhcp', d)}" ]; then | ||
| 105 | install -m 0755 ${S}/contrib/lease-tools/dhcp_release ${D}${bindir} | ||
| 106 | install -m 0755 ${S}/contrib/lease-tools/dhcp_lease_time ${D}${bindir} | ||
| 107 | fi | ||
| 108 | |||
| 109 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'dhcp6', d)}" ]; then | ||
| 110 | install -m 0755 ${S}/contrib/lease-tools/dhcp_release6 ${D}${bindir} | ||
| 111 | fi | ||
| 112 | |||
| 113 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'dbus', d)}" ]; then | ||
| 114 | install -d ${D}${sysconfdir}/dbus-1/system.d | ||
| 115 | install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/ | ||
| 116 | fi | ||
| 117 | |||
| 118 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'resolvconf', d)}" ]; then | ||
| 119 | install -d ${D}${sysconfdir}/resolvconf/update.d/ | ||
| 120 | install -m 0755 ${UNPACKDIR}/dnsmasq.resolvconf ${D}${sysconfdir}/resolvconf/update.d/dnsmasq | ||
| 121 | |||
| 122 | install -d ${D}${sysconfdir}/default/volatiles | ||
| 123 | install -m 0644 ${UNPACKDIR}/99_dnsmasq ${D}${sysconfdir}/default/volatiles | ||
| 124 | install -m 0755 ${UNPACKDIR}/dnsmasq-resolvconf-helper ${D}${bindir} | ||
| 125 | fi | ||
| 126 | } | ||
| 127 | |||
| 128 | CONFFILES:${PN} = "${sysconfdir}/dnsmasq.conf" | ||
| 129 | |||
| 130 | RPROVIDES:${PN} += "${PN}-systemd" | ||
| 131 | RREPLACES:${PN} += "${PN}-systemd" | ||
| 132 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
| 133 | SYSTEMD_SERVICE:${PN} = "dnsmasq.service" | ||
