blob: 11846849f0c4a70cc64c6891eb8958d3e0d23f7e [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
22SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz"
23
24UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/"
25SRC_URI[md5sum] = "d76c59d0882ac6c256d70a2a585362a6"
26SRC_URI[sha256sum] = "57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028DEPENDS = "expat libcap libdaemon glib-2.0 intltool-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Brad Bishop316dfdd2018-06-25 12:45:53 -040030# For gtk related PACKAGECONFIGs: gtk, gtk3
Patrick Williamsc0f7c042017-02-23 20:41:17 -060031AVAHI_GTK ?= ""
32
33PACKAGECONFIG ??= "dbus ${AVAHI_GTK}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060035PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+"
36PACKAGECONFIG[gtk3] = "--enable-gtk3,--disable-gtk3,gtk+3"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038inherit autotools pkgconfig gettext gobject-introspection
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040EXTRA_OECONF = "--with-avahi-priv-access-group=adm \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041 --disable-stack-protector \
42 --disable-gdbm \
43 --disable-mono \
44 --disable-monodoc \
45 --disable-qt3 \
46 --disable-qt4 \
47 --disable-python \
48 --disable-doxygen-doc \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050049 --enable-manpages \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050 ${EXTRA_OECONF_SYSVINIT} \
51 ${EXTRA_OECONF_SYSTEMD} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052 "
53
54# The distro choice determines what init scripts are installed
55EXTRA_OECONF_SYSVINIT = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','--with-distro=debian','--with-distro=none',d)}"
56EXTRA_OECONF_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES','systemd','--with-systemdsystemunitdir=${systemd_unitdir}/system/','--without-systemdsystemunitdir',d)}"
57
Patrick Williamsc124f4f2015-09-15 14:41:29 -050058do_configure_prepend() {
59 sed 's:AM_CHECK_PYMOD:echo "no pymod" #AM_CHECK_PYMOD:g' -i ${S}/configure.ac
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050060
61 # This m4 file will get in the way of our introspection.m4 with special cross-compilation fixes
62 rm "${S}/common/introspection.m4" || true
Patrick Williamsc124f4f2015-09-15 14:41:29 -050063}
64
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050065do_compile_prepend() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060066 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 -050067}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068
Patrick Williamsc124f4f2015-09-15 14:41:29 -050069RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"
70
Patrick Williamsc124f4f2015-09-15 14:41:29 -050071do_install() {
72 autotools_do_install
Brad Bishop316dfdd2018-06-25 12:45:53 -040073 rm -rf ${D}/run
Patrick Williamsc124f4f2015-09-15 14:41:29 -050074 rm -rf ${D}${datadir}/dbus-1/interfaces
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050075 test -d ${D}${datadir}/dbus-1 && rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1
Patrick Williamsc124f4f2015-09-15 14:41:29 -050076 rm -rf ${D}${libdir}/avahi
Patrick Williamsc124f4f2015-09-15 14:41:29 -050077}