diff options
Diffstat (limited to 'meta/recipes-connectivity/avahi')
-rw-r--r-- | meta/recipes-connectivity/avahi/avahi-libnss-mdns_0.15.1.bb | 38 | ||||
-rw-r--r-- | meta/recipes-connectivity/avahi/avahi_0.8.bb | 8 | ||||
-rw-r--r-- | meta/recipes-connectivity/avahi/files/initscript.patch | 6 |
3 files changed, 47 insertions, 5 deletions
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..d45c06357d --- /dev/null +++ b/meta/recipes-connectivity/avahi/avahi-libnss-mdns_0.15.1.bb | |||
@@ -0,0 +1,38 @@ | |||
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 | |||
6 | LICENSE = "LGPL-2.1-or-later" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
8 | |||
9 | DEPENDS = "avahi" | ||
10 | |||
11 | SRC_URI = "git://github.com/lathiat/nss-mdns;branch=master;protocol=https \ | ||
12 | " | ||
13 | |||
14 | SRCREV = "4b3cfe818bf72d99a02b8ca8b8813cb2d6b40633" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
17 | |||
18 | COMPATIBLE_HOST:libc-musl = 'null' | ||
19 | |||
20 | EXTRA_OECONF = "--libdir=${base_libdir}" | ||
21 | |||
22 | RDEPENDS:${PN} = "avahi-daemon" | ||
23 | RPROVIDES:${PN} = "libnss-mdns" | ||
24 | |||
25 | pkg_postinst:${PN} () { | ||
26 | sed ' | ||
27 | /^hosts:/ !b | ||
28 | /\<mdns\(4\|6\)\?\(_minimal\)\?\>/ b | ||
29 | s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g | ||
30 | ' -i $D${sysconfdir}/nsswitch.conf | ||
31 | } | ||
32 | |||
33 | pkg_prerm:${PN} () { | ||
34 | sed ' | ||
35 | /^hosts:/ !b | ||
36 | s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g | ||
37 | ' -i $D${sysconfdir}/nsswitch.conf | ||
38 | } | ||
diff --git a/meta/recipes-connectivity/avahi/avahi_0.8.bb b/meta/recipes-connectivity/avahi/avahi_0.8.bb index 1f18d4491d..220160a7e1 100644 --- a/meta/recipes-connectivity/avahi/avahi_0.8.bb +++ b/meta/recipes-connectivity/avahi/avahi_0.8.bb | |||
@@ -85,7 +85,7 @@ do_compile:prepend() { | |||
85 | export GIR_EXTRA_LIBS_PATH="${B}/avahi-gobject/.libs:${B}/avahi-common/.libs:${B}/avahi-client/.libs:${B}/avahi-glib/.libs" | 85 | export GIR_EXTRA_LIBS_PATH="${B}/avahi-gobject/.libs:${B}/avahi-common/.libs:${B}/avahi-client/.libs:${B}/avahi-glib/.libs" |
86 | } | 86 | } |
87 | 87 | ||
88 | RRECOMMENDS:${PN}:append:libc-glibc = " libnss-mdns" | 88 | RRECOMMENDS:${PN}:append:libc-glibc = " avahi-libnss-mdns" |
89 | 89 | ||
90 | do_install() { | 90 | do_install() { |
91 | autotools_do_install | 91 | autotools_do_install |
@@ -157,7 +157,7 @@ DEV_PKG_DEPENDENCY = "avahi-daemon (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPK | |||
157 | DEV_PKG_DEPENDENCY += "${@["", " libavahi-client (= ${EXTENDPKGV})"][bb.utils.contains('PACKAGECONFIG', 'dbus', 1, 0, d)]}" | 157 | DEV_PKG_DEPENDENCY += "${@["", " libavahi-client (= ${EXTENDPKGV})"][bb.utils.contains('PACKAGECONFIG', 'dbus', 1, 0, d)]}" |
158 | RDEPENDS:${PN}-dnsconfd = "${PN}-daemon" | 158 | RDEPENDS:${PN}-dnsconfd = "${PN}-daemon" |
159 | 159 | ||
160 | RRECOMMENDS:avahi-daemon:append:libc-glibc = " libnss-mdns" | 160 | RRECOMMENDS:avahi-daemon:append:libc-glibc = " avahi-libnss-mdns" |
161 | 161 | ||
162 | CONFFILES:avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf" | 162 | CONFFILES:avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf" |
163 | 163 | ||
@@ -184,8 +184,8 @@ SYSTEMD_SERVICE:${PN}-dnsconfd = "avahi-dnsconfd.service" | |||
184 | 184 | ||
185 | do_install:append() { | 185 | do_install:append() { |
186 | install -d ${D}${sysconfdir}/udhcpc.d | 186 | install -d ${D}${sysconfdir}/udhcpc.d |
187 | install ${WORKDIR}/00avahi-autoipd ${D}${sysconfdir}/udhcpc.d | 187 | install ${UNPACKDIR}/00avahi-autoipd ${D}${sysconfdir}/udhcpc.d |
188 | install ${WORKDIR}/99avahi-autoipd ${D}${sysconfdir}/udhcpc.d | 188 | install ${UNPACKDIR}/99avahi-autoipd ${D}${sysconfdir}/udhcpc.d |
189 | } | 189 | } |
190 | 190 | ||
191 | # At the time the postinst runs, dbus might not be setup so only restart if running | 191 | # At the time the postinst runs, dbus might not be setup so only restart if running |
diff --git a/meta/recipes-connectivity/avahi/files/initscript.patch b/meta/recipes-connectivity/avahi/files/initscript.patch index c856c3df04..e1176888df 100644 --- a/meta/recipes-connectivity/avahi/files/initscript.patch +++ b/meta/recipes-connectivity/avahi/files/initscript.patch | |||
@@ -1,4 +1,8 @@ | |||
1 | Upstream-Status: Pending | 1 | Note: upcoming avahi 0.9 drops debian initscripts altogether, |
2 | so any version update would probably have to copy the last | ||
3 | upstream versions into oe-core, and install them from the recipe. | ||
4 | |||
5 | Upstream-Status: Inappropriate [upstream removed the files] | ||
2 | 6 | ||
3 | Index: avahi-0.7/initscript/debian/avahi-daemon.in | 7 | Index: avahi-0.7/initscript/debian/avahi-daemon.in |
4 | =================================================================== | 8 | =================================================================== |