blob: 94fe6a16b639fda75fda2392226b9020a5dc16c6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Avahi IPv4LL network address configuration daemon"
2DESCRIPTION = 'Avahi is a fully LGPL framework for Multicast DNS Service Discovery. It \
3allows programs to publish and discover services and hosts running on a local network \
4with no specific configuration. This tool implements IPv4LL, "Dynamic Configuration of \
5IPv4 Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address \
6configuration from the link-local 169.254.0.0/16 range without the need for a central \
7server.'
8AUTHOR = "Lennart Poettering <lennart@poettering.net>"
9HOMEPAGE = "http://avahi.org"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010BUGTRACKER = "https://github.com/lathiat/avahi/issues"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011SECTION = "network"
12
13# major part is under LGPLv2.1+, but several .dtd, .xsl, initscripts and
14# python scripts are under GPLv2+
15LICENSE = "GPLv2+ & LGPLv2.1+"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
17 file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d \
18 file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \
19 file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \
20 file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf"
21
Brad Bishop19323692019-04-05 15:28:33 -040022SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz \
23 file://fix-CVE-2017-6519.patch \
24 "
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080025
26UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/"
27SRC_URI[md5sum] = "d76c59d0882ac6c256d70a2a585362a6"
28SRC_URI[sha256sum] = "57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050030DEPENDS = "expat libcap libdaemon glib-2.0 intltool-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
Brad Bishop316dfdd2018-06-25 12:45:53 -040032# For gtk related PACKAGECONFIGs: gtk, gtk3
Patrick Williamsc0f7c042017-02-23 20:41:17 -060033AVAHI_GTK ?= ""
34
35PACKAGECONFIG ??= "dbus ${AVAHI_GTK}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050036PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+"
38PACKAGECONFIG[gtk3] = "--enable-gtk3,--disable-gtk3,gtk+3"
Brad Bishop15ae2502019-06-18 21:44:24 -040039PACKAGECONFIG[libdns_sd] = "--enable-compat-libdns_sd --enable-dbus,,dbus"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080041inherit autotools pkgconfig gettext gobject-introspection
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050043EXTRA_OECONF = "--with-avahi-priv-access-group=adm \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044 --disable-stack-protector \
45 --disable-gdbm \
46 --disable-mono \
47 --disable-monodoc \
48 --disable-qt3 \
49 --disable-qt4 \
50 --disable-python \
51 --disable-doxygen-doc \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050052 --enable-manpages \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053 ${EXTRA_OECONF_SYSVINIT} \
54 ${EXTRA_OECONF_SYSTEMD} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050055 "
56
57# The distro choice determines what init scripts are installed
58EXTRA_OECONF_SYSVINIT = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','--with-distro=debian','--with-distro=none',d)}"
59EXTRA_OECONF_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES','systemd','--with-systemdsystemunitdir=${systemd_unitdir}/system/','--without-systemdsystemunitdir',d)}"
60
Patrick Williamsc124f4f2015-09-15 14:41:29 -050061do_configure_prepend() {
62 sed 's:AM_CHECK_PYMOD:echo "no pymod" #AM_CHECK_PYMOD:g' -i ${S}/configure.ac
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050063
64 # This m4 file will get in the way of our introspection.m4 with special cross-compilation fixes
65 rm "${S}/common/introspection.m4" || true
Patrick Williamsc124f4f2015-09-15 14:41:29 -050066}
67
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050068do_compile_prepend() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060069 export GIR_EXTRA_LIBS_PATH="${B}/avahi-gobject/.libs:${B}/avahi-common/.libs:${B}/avahi-client/.libs:${B}/avahi-glib/.libs"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050070}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050071
Patrick Williamsc124f4f2015-09-15 14:41:29 -050072RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"
73
Patrick Williamsc124f4f2015-09-15 14:41:29 -050074do_install() {
75 autotools_do_install
Brad Bishop316dfdd2018-06-25 12:45:53 -040076 rm -rf ${D}/run
Patrick Williamsc124f4f2015-09-15 14:41:29 -050077 rm -rf ${D}${datadir}/dbus-1/interfaces
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050078 test -d ${D}${datadir}/dbus-1 && rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1
Patrick Williamsc124f4f2015-09-15 14:41:29 -050079 rm -rf ${D}${libdir}/avahi
Patrick Williamsc124f4f2015-09-15 14:41:29 -050080}
Brad Bishop15ae2502019-06-18 21:44:24 -040081
82PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "libdns_sd", "libavahi-compat-libdnssd", "", d)}"
83
84FILES_libavahi-compat-libdnssd = "${libdir}/libdns_sd.so.*"
85
86RPROVIDES_libavahi-compat-libdnssd = "libdns-sd"