From 7a42e31654a32955da904ec86585a87f188d1998 Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Sat, 1 Feb 2025 17:28:43 +0000 Subject: nss-mdns: Rename recipe to avahi-libnss-mdns meta-networking has Apple's mDNSResponder which also delivers libnss-mdns nsswitch plugin. Rename this recipe to avahi-libss-mdns and add an RPROVIDE so that either than be chosen. (From OE-Core rev: f9d10d6ac4b2a081d110ab58e7137aedddd960cb) Signed-off-by: Alex Kiernan Signed-off-by: Richard Purdie --- .../avahi/avahi-libnss-mdns_0.15.1.bb | 40 ++++++++++++++++++++++ .../libnss-mdns/libnss-mdns_0.15.1.bb | 39 --------------------- 2 files changed, 40 insertions(+), 39 deletions(-) create mode 100644 meta/recipes-connectivity/avahi/avahi-libnss-mdns_0.15.1.bb delete mode 100644 meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.15.1.bb (limited to 'meta/recipes-connectivity') diff --git a/meta/recipes-connectivity/avahi/avahi-libnss-mdns_0.15.1.bb b/meta/recipes-connectivity/avahi/avahi-libnss-mdns_0.15.1.bb new file mode 100644 index 0000000000..9b8275b113 --- /dev/null +++ b/meta/recipes-connectivity/avahi/avahi-libnss-mdns_0.15.1.bb @@ -0,0 +1,40 @@ +SUMMARY = "Name Service Switch module for Multicast DNS (zeroconf) name resolution" +HOMEPAGE = "https://github.com/lathiat/nss-mdns" +DESCRIPTION = "nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local." +SECTION = "libs" + +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" + +DEPENDS = "avahi" + +SRC_URI = "git://github.com/lathiat/nss-mdns;branch=master;protocol=https \ + " + +SRCREV = "4b3cfe818bf72d99a02b8ca8b8813cb2d6b40633" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +COMPATIBLE_HOST:libc-musl = 'null' + +EXTRA_OECONF = "--libdir=${base_libdir}" + +RDEPENDS:${PN} = "avahi-daemon" +RPROVIDES:${PN} = "libnss-mdns" + +pkg_postinst:${PN} () { + sed ' + /^hosts:/ !b + /\/ b + s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g + ' -i $D${sysconfdir}/nsswitch.conf +} + +pkg_prerm:${PN} () { + sed ' + /^hosts:/ !b + s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g + ' -i $D${sysconfdir}/nsswitch.conf +} diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.15.1.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.15.1.bb deleted file mode 100644 index 0db609fc47..0000000000 --- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.15.1.bb +++ /dev/null @@ -1,39 +0,0 @@ -SUMMARY = "Name Service Switch module for Multicast DNS (zeroconf) name resolution" -HOMEPAGE = "https://github.com/lathiat/nss-mdns" -DESCRIPTION = "nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local." -SECTION = "libs" - -LICENSE = "LGPL-2.1-or-later" -LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" - -DEPENDS = "avahi" - -SRC_URI = "git://github.com/lathiat/nss-mdns;branch=master;protocol=https \ - " - -SRCREV = "4b3cfe818bf72d99a02b8ca8b8813cb2d6b40633" - -S = "${WORKDIR}/git" - -inherit autotools pkgconfig - -COMPATIBLE_HOST:libc-musl = 'null' - -EXTRA_OECONF = "--libdir=${base_libdir}" - -RDEPENDS:${PN} = "avahi-daemon" - -pkg_postinst:${PN} () { - sed ' - /^hosts:/ !b - /\/ b - s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g - ' -i $D${sysconfdir}/nsswitch.conf -} - -pkg_prerm:${PN} () { - sed ' - /^hosts:/ !b - s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g - ' -i $D${sysconfdir}/nsswitch.conf -} -- cgit v1.2.3-54-g00ecf