diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2024-06-05 16:04:00 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-06-07 09:11:54 -0700 |
| commit | db6540fee146e0c82de1433fc4cd624b8601f4be (patch) | |
| tree | de1acd304514f296524959a9e232b8c2ea086b00 /meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb | |
| parent | bfc372f8c49e735782287197c2ec78bb5d233342 (diff) | |
| download | meta-openembedded-db6540fee146e0c82de1433fc4cd624b8601f4be.tar.gz | |
mdns: Upgrade 2200.100.94.0.2 -> 2200.120.24
Drop 0015-Add-missing-limits.h.patch (equivalent patch merged upstream),
rebase other patches.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb')
| -rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb b/meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb deleted file mode 100644 index ff7b0447bb..0000000000 --- a/meta-networking/recipes-protocols/mdns/mdns_2200.100.94.0.2.bb +++ /dev/null | |||
| @@ -1,135 +0,0 @@ | |||
| 1 | SUMMARY = "Publishes & browses available services on a link according to the Zeroconf / Bonjour protocol" | ||
| 2 | DESCRIPTION = "Bonjour, also known as zero-configuration networking, enables automatic discovery of computers, devices, and services on IP networks." | ||
| 3 | HOMEPAGE = "https://developer.apple.com/bonjour/" | ||
| 4 | LICENSE = "Apache-2.0 & BSD-3-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=31c50371921e0fb731003bbc665f29bf" | ||
| 6 | |||
| 7 | DEPENDS:append:libc-musl = " musl-nscd" | ||
| 8 | |||
| 9 | SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=rel/mDNSResponder-2200 \ | ||
| 10 | file://0001-dns-sd-Include-missing-headers.patch \ | ||
| 11 | file://0002-make-Set-libdns_sd.so-soname-correctly.patch \ | ||
| 12 | file://0004-make-Separate-TLS-targets-from-libraries.patch \ | ||
| 13 | file://0005-mDNSCore-Fix-broken-debug-parameter.patch \ | ||
| 14 | file://0006-make-Add-top-level-Makefile.patch \ | ||
| 15 | file://0001-Create-subroutine-for-cleaning-recent-interfaces.patch \ | ||
| 16 | file://0002-Create-subroutine-for-tearing-down-an-interface.patch \ | ||
| 17 | file://0003-Track-interface-socket-family.patch \ | ||
| 18 | file://0004-Indicate-loopback-interface-to-mDNS-core.patch \ | ||
| 19 | file://0005-Use-list-for-changed-interfaces.patch \ | ||
| 20 | file://0006-Handle-noisy-netlink-sockets.patch \ | ||
| 21 | file://0007-Mark-deleted-interfaces-as-being-changed.patch \ | ||
| 22 | file://0008-Handle-errors-from-socket-calls.patch \ | ||
| 23 | file://0009-remove-unneeded-headers.patch \ | ||
| 24 | file://mdns.service \ | ||
| 25 | file://0015-Add-missing-limits.h.patch \ | ||
| 26 | file://0001-Handle-interface-without-ifa_addr.patch \ | ||
| 27 | file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ | ||
| 28 | " | ||
| 29 | SRCREV = "8f70f98fc1d0cf439ca3a6470be6ad8ac2bcc019" | ||
| 30 | |||
| 31 | # We install a stub Makefile in the top directory so that the various checks | ||
| 32 | # in base.bbclass pass their tests for a Makefile, this ensures (that amongst | ||
| 33 | # other things) the sstate checks will clean the build directory when the | ||
| 34 | # task hashes changes. | ||
| 35 | # | ||
| 36 | # We can't use the approach of setting ${S} to mDNSPosix as we need | ||
| 37 | # DEBUG_PREFIX_MAP to cover files which come from the Clients directory too. | ||
| 38 | S = "${WORKDIR}/git" | ||
| 39 | |||
| 40 | inherit github-releases manpages systemd update-rc.d | ||
| 41 | |||
| 42 | PACKAGECONFIG ?= "tls \ | ||
| 43 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
| 44 | PACKAGECONFIG[debug] = "DEBUG=1,DEBUG=0" | ||
| 45 | PACKAGECONFIG[ipv6] = "HAVE_IPV6=1,HAVE_IPV6=0" | ||
| 46 | PACKAGECONFIG[manpages] = "" | ||
| 47 | PACKAGECONFIG[tls] = ",tls=no,mbedtls" | ||
| 48 | |||
| 49 | CVE_PRODUCT = "apple:mdnsresponder" | ||
| 50 | |||
| 51 | CVE_STATUS[CVE-2007-0613] = "not-applicable-platform: Issue affects Apple products \ | ||
| 52 | i.e. ichat,mdnsresponder, instant message framework and MacOS. Also, \ | ||
| 53 | https://www.exploit-db.com/exploits/3230 shows the part of code \ | ||
| 54 | affected by CVE-2007-0613 which is not preset in upstream source code. \ | ||
| 55 | Hence, CVE-2007-0613 does not affect other Yocto implementations and \ | ||
| 56 | is not reported for other distros can be marked whitelisted. \ | ||
| 57 | Links: https://vulmon.com/vulnerabilitydetails?qid=CVE-2007-0613 \ | ||
| 58 | https://www.incibe-cert.es/en/early-warning/vulnerabilities/cve-2007-0613 \ | ||
| 59 | https://security-tracker.debian.org/tracker/CVE-2007-0613 \ | ||
| 60 | https://vulmon.com/vulnerabilitydetails?qid=CVE-2007-0613" | ||
| 61 | |||
| 62 | PARALLEL_MAKE = "" | ||
| 63 | |||
| 64 | EXTRA_OEMAKE = "os=linux 'CC=${CCLD}' 'LD=${CCLD}' 'LINKOPTS=${LDFLAGS}' STRIP=: ${PACKAGECONFIG_CONFARGS}" | ||
| 65 | |||
| 66 | # MDNS_VERSIONSTR_NODTS disables __DATE__ and __TIME__ in the version string, | ||
| 67 | # which are fixed anyway for build reproducibility. | ||
| 68 | TARGET_CPPFLAGS += "-DMDNS_VERSIONSTR_NODTS" | ||
| 69 | |||
| 70 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 71 | |||
| 72 | MDNS_BUILDDIR = "build/${@bb.utils.contains('PACKAGECONFIG','debug','debug','prod', d)}" | ||
| 73 | |||
| 74 | do_install () { | ||
| 75 | cd mDNSPosix | ||
| 76 | |||
| 77 | install -d ${D}${sbindir} | ||
| 78 | install ${MDNS_BUILDDIR}/mdnsd ${D}${sbindir} | ||
| 79 | |||
| 80 | install -d ${D}${libdir} | ||
| 81 | install -m 0644 ${MDNS_BUILDDIR}/libdns_sd.so ${D}${libdir}/libdns_sd.so.1 | ||
| 82 | ln -s libdns_sd.so.1 ${D}${libdir}/libdns_sd.so | ||
| 83 | |||
| 84 | install -d ${D}${includedir} | ||
| 85 | install -m 0644 ../mDNSShared/dns_sd.h ${D}${includedir} | ||
| 86 | |||
| 87 | install -d ${D}${mandir}/man8 | ||
| 88 | install -m 0644 ../mDNSShared/mDNSResponder.8 ${D}${mandir}/man8/mdnsd.8 | ||
| 89 | |||
| 90 | install -d ${D}${bindir} | ||
| 91 | install -m 0755 ../Clients/build/dns-sd ${D}${bindir} | ||
| 92 | |||
| 93 | install -d ${D}${libdir} | ||
| 94 | oe_libinstall -C ${MDNS_BUILDDIR} -so libnss_mdns-0.2 ${D}${libdir} | ||
| 95 | ln -s libnss_mdns-0.2.so ${D}${libdir}/libnss_mdns.so.2 | ||
| 96 | |||
| 97 | install -d ${D}${sysconfdir} | ||
| 98 | install -m 0644 nss_mdns.conf ${D}${sysconfdir} | ||
| 99 | |||
| 100 | install -d ${D}${mandir}/man5 | ||
| 101 | install -m 0644 nss_mdns.conf.5 ${D}${mandir}/man5 | ||
| 102 | |||
| 103 | install -d ${D}${mandir}/man8 | ||
| 104 | install -m 0644 libnss_mdns.8 ${D}${mandir}/man8 | ||
| 105 | |||
| 106 | install -d ${D}${systemd_system_unitdir} | ||
| 107 | install -m 0644 ${UNPACKDIR}/mdns.service ${D}${systemd_system_unitdir} | ||
| 108 | |||
| 109 | install -d ${D}${INIT_D_DIR} | ||
| 110 | install mdnsd.sh ${D}${INIT_D_DIR}/mdns | ||
| 111 | } | ||
| 112 | |||
| 113 | pkg_postinst:${PN} () { | ||
| 114 | if [ -r $D${sysconfdir}/nsswitch.conf ]; then | ||
| 115 | sed -e '/^hosts:/s/\s*\<mdns\>//' \ | ||
| 116 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns\3\4\5/' \ | ||
| 117 | -i $D${sysconfdir}/nsswitch.conf | ||
| 118 | fi | ||
| 119 | } | ||
| 120 | |||
| 121 | pkg_prerm:${PN} () { | ||
| 122 | if [ -r $D${sysconfdir}/nsswitch.conf ]; then | ||
| 123 | sed -e '/^hosts:/s/\s*\<mdns\>//' \ | ||
| 124 | -e '/^hosts:/s/\s*mdns//' \ | ||
| 125 | -i $D${sysconfdir}/nsswitch.conf | ||
| 126 | fi | ||
| 127 | } | ||
| 128 | |||
| 129 | SYSTEMD_SERVICE:${PN} = "mdns.service" | ||
| 130 | INITSCRIPT_NAME = "mdns" | ||
| 131 | |||
| 132 | FILES_SOLIBSDEV = "${libdir}/libdns_sd.so" | ||
| 133 | FILES:${PN} += "${libdir}/libnss_mdns-0.2.so" | ||
| 134 | |||
| 135 | RPROVIDES:${PN} += "libdns_sd.so" | ||
