avahi.inc 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. SUMMARY = "Avahi IPv4LL network address configuration daemon"
  2. DESCRIPTION = 'Avahi is a fully LGPL framework for Multicast DNS Service Discovery. It \
  3. allows programs to publish and discover services and hosts running on a local network \
  4. with no specific configuration. This tool implements IPv4LL, "Dynamic Configuration of \
  5. IPv4 Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address \
  6. configuration from the link-local 169.254.0.0/16 range without the need for a central \
  7. server.'
  8. AUTHOR = "Lennart Poettering <lennart@poettering.net>"
  9. HOMEPAGE = "http://avahi.org"
  10. BUGTRACKER = "https://github.com/lathiat/avahi/issues"
  11. SECTION = "network"
  12. # major part is under LGPLv2.1+, but several .dtd, .xsl, initscripts and
  13. # python scripts are under GPLv2+
  14. LICENSE = "GPLv2+ & LGPLv2.1+"
  15. LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
  16. file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d \
  17. file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \
  18. file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \
  19. file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf"
  20. SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz \
  21. file://fix-CVE-2017-6519.patch \
  22. "
  23. UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/"
  24. SRC_URI[md5sum] = "d76c59d0882ac6c256d70a2a585362a6"
  25. SRC_URI[sha256sum] = "57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804"
  26. DEPENDS = "expat libcap libdaemon glib-2.0 intltool-native"
  27. # For gtk related PACKAGECONFIGs: gtk, gtk3
  28. AVAHI_GTK ?= ""
  29. PACKAGECONFIG ??= "dbus ${AVAHI_GTK}"
  30. PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
  31. PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+"
  32. PACKAGECONFIG[gtk3] = "--enable-gtk3,--disable-gtk3,gtk+3"
  33. inherit autotools pkgconfig gettext gobject-introspection
  34. EXTRA_OECONF = "--with-avahi-priv-access-group=adm \
  35. --disable-stack-protector \
  36. --disable-gdbm \
  37. --disable-mono \
  38. --disable-monodoc \
  39. --disable-qt3 \
  40. --disable-qt4 \
  41. --disable-python \
  42. --disable-doxygen-doc \
  43. --enable-manpages \
  44. ${EXTRA_OECONF_SYSVINIT} \
  45. ${EXTRA_OECONF_SYSTEMD} \
  46. "
  47. # The distro choice determines what init scripts are installed
  48. EXTRA_OECONF_SYSVINIT = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','--with-distro=debian','--with-distro=none',d)}"
  49. EXTRA_OECONF_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES','systemd','--with-systemdsystemunitdir=${systemd_unitdir}/system/','--without-systemdsystemunitdir',d)}"
  50. do_configure_prepend() {
  51. sed 's:AM_CHECK_PYMOD:echo "no pymod" #AM_CHECK_PYMOD:g' -i ${S}/configure.ac
  52. # This m4 file will get in the way of our introspection.m4 with special cross-compilation fixes
  53. rm "${S}/common/introspection.m4" || true
  54. }
  55. do_compile_prepend() {
  56. export GIR_EXTRA_LIBS_PATH="${B}/avahi-gobject/.libs:${B}/avahi-common/.libs:${B}/avahi-client/.libs:${B}/avahi-glib/.libs"
  57. }
  58. RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"
  59. do_install() {
  60. autotools_do_install
  61. rm -rf ${D}/run
  62. rm -rf ${D}${datadir}/dbus-1/interfaces
  63. test -d ${D}${datadir}/dbus-1 && rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1
  64. rm -rf ${D}${libdir}/avahi
  65. }