avahi-libnss-mdns_0.15.1.bb 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. SUMMARY = "Name Service Switch module for Multicast DNS (zeroconf) name resolution"
  2. HOMEPAGE = "https://github.com/lathiat/nss-mdns"
  3. 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."
  4. SECTION = "libs"
  5. LICENSE = "LGPL-2.1-or-later"
  6. LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
  7. DEPENDS = "avahi"
  8. SRC_URI = "git://github.com/lathiat/nss-mdns;branch=master;protocol=https \
  9. "
  10. SRCREV = "4b3cfe818bf72d99a02b8ca8b8813cb2d6b40633"
  11. inherit autotools pkgconfig
  12. COMPATIBLE_HOST:libc-musl = 'null'
  13. EXTRA_OECONF = "--libdir=${base_libdir}"
  14. RDEPENDS:${PN} = "avahi-daemon"
  15. RPROVIDES:${PN} = "libnss-mdns"
  16. pkg_postinst:${PN} () {
  17. sed '
  18. /^hosts:/ !b
  19. /\<mdns\(4\|6\)\?\(_minimal\)\?\>/ b
  20. s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g
  21. ' -i $D${sysconfdir}/nsswitch.conf
  22. }
  23. pkg_prerm:${PN} () {
  24. sed '
  25. /^hosts:/ !b
  26. s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g
  27. ' -i $D${sysconfdir}/nsswitch.conf
  28. }