diff options
Diffstat (limited to 'meta/recipes-connectivity/avahi')
10 files changed, 444 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb b/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb new file mode 100644 index 0000000000..557c1c1651 --- /dev/null +++ b/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb | |||
@@ -0,0 +1,69 @@ | |||
1 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
2 | file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d \ | ||
3 | file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \ | ||
4 | file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \ | ||
5 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" | ||
6 | |||
7 | require avahi.inc | ||
8 | |||
9 | inherit python-dir pythonnative | ||
10 | |||
11 | PACKAGECONFIG ??= "python" | ||
12 | PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python" | ||
13 | |||
14 | PR = "${INC_PR}.0" | ||
15 | |||
16 | SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d" | ||
17 | SRC_URI[sha256sum] = "8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48" | ||
18 | |||
19 | DEPENDS += "avahi gtk+ libglade" | ||
20 | |||
21 | AVAHI_GTK = "--enable-gtk --disable-gtk3" | ||
22 | |||
23 | S = "${WORKDIR}/avahi-${PV}" | ||
24 | |||
25 | PACKAGES = "${PN} ${PN}-utils ${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN}-doc python-avahi avahi-discover avahi-discover-standalone" | ||
26 | |||
27 | FILES_${PN} = "${libdir}/libavahi-ui*.so.*" | ||
28 | FILES_${PN}-dbg += "${libdir}/.debug/libavah-ui*" | ||
29 | FILES_${PN}-dev += "${libdir}/libavahi-ui${SOLIBSDEV}" | ||
30 | FILES_${PN}-staticdev += "${libdir}/libavahi-ui.a" | ||
31 | |||
32 | FILES_${PN}-utils = "${bindir}/b* ${datadir}/applications/b*" | ||
33 | |||
34 | FILES_python-avahi = "${PYTHON_SITEPACKAGES_DIR}/avahi ${PYTHON_SITEPACKAGES_DIR}/avahi_discover" | ||
35 | FILES_avahi-discover = "${bindir}/avahi-discover \ | ||
36 | ${datadir}/applications/avahi-discover.desktop \ | ||
37 | ${datadir}/avahi/interfaces/avahi-discover*" | ||
38 | FILES_avahi-discover-standalone = "${bindir}/avahi-discover-standalone \ | ||
39 | ${datadir}/avahi/interfaces/avahi-discover.glade" | ||
40 | |||
41 | RDEPENDS_avahi-discover = "python-avahi python-pygtk" | ||
42 | RDEPENDS_python-avahi = "python-core python-dbus" | ||
43 | |||
44 | |||
45 | do_install_append () { | ||
46 | rm ${D}${sysconfdir} -rf | ||
47 | rm ${D}${base_libdir} -rf | ||
48 | rm ${D}${base_libdir} -rf | ||
49 | rm ${D}${bindir}/avahi-b* | ||
50 | rm ${D}${bindir}/avahi-p* | ||
51 | rm ${D}${bindir}/avahi-r* | ||
52 | rm ${D}${bindir}/avahi-s* | ||
53 | rm ${D}${includedir}/avahi-c* -rf | ||
54 | rm ${D}${includedir}/avahi-g* -rf | ||
55 | rm ${D}${libdir}/libavahi-c* | ||
56 | rm ${D}${libdir}/libavahi-g* | ||
57 | rm ${D}${libdir}/pkgconfig/avahi-c* | ||
58 | rm ${D}${libdir}/pkgconfig/avahi-g* | ||
59 | rm ${D}${sbindir} -rf | ||
60 | rm ${D}${datadir}/avahi/a* | ||
61 | rm ${D}${datadir}/avahi/s* | ||
62 | rm ${D}${datadir}/locale/ -rf | ||
63 | rm ${D}${datadir}/dbus* -rf | ||
64 | rm ${D}${mandir}/man1/a* | ||
65 | rm ${D}${mandir}/man5 -rf | ||
66 | rm ${D}${mandir}/man8 -rf | ||
67 | rmdir ${D}${localstatedir} | ||
68 | } | ||
69 | |||
diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc new file mode 100644 index 0000000000..cf063db8b0 --- /dev/null +++ b/meta/recipes-connectivity/avahi/avahi.inc | |||
@@ -0,0 +1,150 @@ | |||
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 = "http://avahi.org/report" | ||
11 | SECTION = "network" | ||
12 | |||
13 | # major part is under LGPLv2.1+, but several .dtd, .xsl, initscripts and | ||
14 | # python scripts are under GPLv2+ | ||
15 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
16 | |||
17 | INC_PR = "r7" | ||
18 | |||
19 | DEPENDS = "expat libcap libdaemon dbus glib-2.0" | ||
20 | |||
21 | SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \ | ||
22 | file://00avahi-autoipd \ | ||
23 | file://99avahi-autoipd \ | ||
24 | file://initscript.patch \ | ||
25 | file://avahi_fix_install_issue.patch \ | ||
26 | file://fix_for_automake_1.12.x.patch \ | ||
27 | file://out-of-tree.patch \ | ||
28 | " | ||
29 | |||
30 | USERADD_PACKAGES = "avahi-daemon avahi-autoipd" | ||
31 | USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \ | ||
32 | --no-create-home --shell /bin/false \ | ||
33 | --user-group avahi" | ||
34 | |||
35 | USERADD_PARAM_avahi-autoipd = "--system --home /var/run/avahi-autoipd \ | ||
36 | --no-create-home --shell /bin/false \ | ||
37 | --user-group \ | ||
38 | -c \"Avahi autoip daemon\" \ | ||
39 | avahi-autoipd" | ||
40 | |||
41 | inherit autotools pkgconfig update-rc.d gettext useradd | ||
42 | |||
43 | EXTRA_OECONF = "--disable-introspection \ | ||
44 | --with-avahi-priv-access-group=adm \ | ||
45 | --disable-stack-protector \ | ||
46 | --disable-gdbm \ | ||
47 | --disable-mono \ | ||
48 | --disable-monodoc \ | ||
49 | --disable-qt3 \ | ||
50 | --disable-qt4 \ | ||
51 | --disable-python \ | ||
52 | --disable-doxygen-doc \ | ||
53 | ${EXTRA_OECONF_SYSVINIT} \ | ||
54 | ${EXTRA_OECONF_SYSTEMD} \ | ||
55 | ${AVAHI_GTK} \ | ||
56 | " | ||
57 | |||
58 | # The distro choice determines what init scripts are installed | ||
59 | EXTRA_OECONF_SYSVINIT = "${@base_contains('DISTRO_FEATURES','sysvinit','--with-distro=debian','--with-distro=none',d)}" | ||
60 | EXTRA_OECONF_SYSTEMD = "${@base_contains('DISTRO_FEATURES','systemd','--with-systemdsystemunitdir=${systemd_unitdir}/system/','--without-systemdsystemunitdir',d)}" | ||
61 | |||
62 | AVAHI_GTK ?= "--disable-gtk --disable-gtk3" | ||
63 | |||
64 | LDFLAGS_append_libc-uclibc = " -lintl" | ||
65 | LDFLAGS_append_uclinux-uclibc = " -lintl" | ||
66 | |||
67 | do_configure_prepend() { | ||
68 | sed 's:AM_CHECK_PYMOD:echo "no pymod" #AM_CHECK_PYMOD:g' -i ${S}/configure.ac | ||
69 | } | ||
70 | |||
71 | |||
72 | PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils" | ||
73 | |||
74 | FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \ | ||
75 | ${sysconfdir}/avahi/avahi-autoipd.action \ | ||
76 | ${sysconfdir}/dhcp/*/avahi-autoipd \ | ||
77 | ${sysconfdir}/udhcpc.d/00avahi-autoipd \ | ||
78 | ${sysconfdir}/udhcpc.d/99avahi-autoipd" | ||
79 | FILES_libavahi-common = "${libdir}/libavahi-common.so.*" | ||
80 | FILES_libavahi-core = "${libdir}/libavahi-core.so.*" | ||
81 | FILES_avahi-daemon = "${sbindir}/avahi-daemon \ | ||
82 | ${sysconfdir}/avahi/avahi-daemon.conf \ | ||
83 | ${sysconfdir}/avahi/hosts \ | ||
84 | ${sysconfdir}/avahi/services \ | ||
85 | ${sysconfdir}/dbus-1 \ | ||
86 | ${sysconfdir}/init.d/avahi-daemon \ | ||
87 | ${datadir}/avahi/introspection/*.introspect \ | ||
88 | ${datadir}/avahi/avahi-service.dtd \ | ||
89 | ${datadir}/avahi/service-types \ | ||
90 | ${datadir}/dbus-1/system-services" | ||
91 | FILES_libavahi-client = "${libdir}/libavahi-client.so.*" | ||
92 | FILES_libavahi-ui = "${libdir}/libavahi-ui.so.*" | ||
93 | FILES_avahi-dnsconfd = "${sbindir}/avahi-dnsconfd \ | ||
94 | ${sysconfdir}/avahi/avahi-dnsconfd.action \ | ||
95 | ${sysconfdir}/init.d/avahi-dnsconfd" | ||
96 | FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*" | ||
97 | FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*" | ||
98 | FILES_avahi-utils = "${bindir}/avahi-*" | ||
99 | |||
100 | # uclibc has no nss | ||
101 | RRECOMMENDS_avahi-daemon_append_libc-glibc = "libnss-mdns" | ||
102 | RRECOMMENDS_${PN}_append_libc-glibc = "libnss-mdns" | ||
103 | |||
104 | RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev" | ||
105 | RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev" | ||
106 | |||
107 | RRECOMMENDS_avahi-dev[nodeprrecs] = "1" | ||
108 | |||
109 | CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf" | ||
110 | |||
111 | INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd" | ||
112 | INITSCRIPT_NAME_avahi-daemon = "avahi-daemon" | ||
113 | INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19" | ||
114 | INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd" | ||
115 | INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19" | ||
116 | |||
117 | do_install() { | ||
118 | autotools_do_install | ||
119 | |||
120 | # don't install /var/run when populating rootfs. Do it through volatile | ||
121 | # /var/run of current version is empty, so just remove it. | ||
122 | # if /var/run become non-empty in the future, need to install it via volatile | ||
123 | rm -rf ${D}/var/run | ||
124 | rm -rf ${D}${datadir}/dbus-1/interfaces | ||
125 | rmdir --ignore-fail-on-non-empty ${D}${datadir}/dbus-1 | ||
126 | rm -rf ${D}${libdir}/avahi | ||
127 | |||
128 | install -d ${D}${sysconfdir}/udhcpc.d | ||
129 | install ${WORKDIR}/00avahi-autoipd ${D}${sysconfdir}/udhcpc.d | ||
130 | install ${WORKDIR}/99avahi-autoipd ${D}${sysconfdir}/udhcpc.d | ||
131 | } | ||
132 | |||
133 | # At the time the postinst runs, dbus might not be setup so only restart if running | ||
134 | # Don't exit early, because update-rc.d needs to run subsequently. | ||
135 | |||
136 | pkg_postinst_avahi-daemon () { | ||
137 | if [ -z "$D" ]; then | ||
138 | killall -q -HUP dbus-daemon || true | ||
139 | fi | ||
140 | } | ||
141 | |||
142 | pkg_postrm_avahi-daemon () { | ||
143 | deluser avahi || true | ||
144 | delgroup avahi || true | ||
145 | } | ||
146 | |||
147 | pkg_postrm_avahi-autoipd () { | ||
148 | deluser avahi-autoipd || true | ||
149 | delgroup avahi-autoipd || true | ||
150 | } | ||
diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.31.bb b/meta/recipes-connectivity/avahi/avahi_0.6.31.bb new file mode 100644 index 0000000000..5d796a202b --- /dev/null +++ b/meta/recipes-connectivity/avahi/avahi_0.6.31.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | require avahi.inc | ||
2 | |||
3 | inherit systemd | ||
4 | |||
5 | SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-dnsconfd" | ||
6 | SYSTEMD_SERVICE_${PN}-daemon = "avahi-daemon.service" | ||
7 | SYSTEMD_SERVICE_${PN}-dnsconfd = "avahi-dnsconfd.service" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
10 | file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d \ | ||
11 | file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \ | ||
12 | file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \ | ||
13 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" | ||
14 | |||
15 | PR = "${INC_PR}.1" | ||
16 | |||
17 | SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d" | ||
18 | SRC_URI[sha256sum] = "8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48" | ||
19 | |||
20 | DEPENDS += "intltool-native" | ||
21 | |||
22 | PACKAGES =+ "libavahi-gobject" | ||
diff --git a/meta/recipes-connectivity/avahi/files/00avahi-autoipd b/meta/recipes-connectivity/avahi/files/00avahi-autoipd new file mode 100644 index 0000000000..a0ab814603 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/00avahi-autoipd | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 | ||
4 | |||
5 | case "$1" in | ||
6 | |||
7 | deconfig|renew|bound) | ||
8 | /usr/sbin/avahi-autoipd -k $interface 2> /dev/null | ||
9 | ;; | ||
10 | esac | ||
diff --git a/meta/recipes-connectivity/avahi/files/99avahi-autoipd b/meta/recipes-connectivity/avahi/files/99avahi-autoipd new file mode 100644 index 0000000000..234cdaa3eb --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/99avahi-autoipd | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 | ||
4 | |||
5 | case "$1" in | ||
6 | |||
7 | leasefail) | ||
8 | /usr/sbin/avahi-autoipd -wD $interface 2> /dev/null | ||
9 | ;; | ||
10 | esac | ||
diff --git a/meta/recipes-connectivity/avahi/files/avahi_fix_install_issue.patch b/meta/recipes-connectivity/avahi/files/avahi_fix_install_issue.patch new file mode 100644 index 0000000000..32f20ece43 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/avahi_fix_install_issue.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Fixes this install issue | ||
4 | #| /bin/sh: line 0: cd: /srv/home/nitin/builds/build-gcc47/tmp/work/i586-poky-linux/avahi-0.6.31-r3.0/image//usr/bin: No such file or directory | ||
5 | |||
6 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
7 | 2012/05/03 | ||
8 | |||
9 | Index: avahi-0.6.31/avahi-utils/Makefile.am | ||
10 | =================================================================== | ||
11 | --- avahi-0.6.31.orig/avahi-utils/Makefile.am | ||
12 | +++ avahi-0.6.31/avahi-utils/Makefile.am | ||
13 | @@ -54,6 +54,7 @@ avahi_set_host_name_CFLAGS = $(AM_CFLAGS | ||
14 | avahi_set_host_name_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la | ||
15 | |||
16 | install-exec-local: | ||
17 | + $(MKDIR_P) $(DESTDIR)/$(bindir) && \ | ||
18 | cd $(DESTDIR)/$(bindir) && \ | ||
19 | rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \ | ||
20 | $(LN_S) avahi-resolve avahi-resolve-host-name && \ | ||
21 | Index: avahi-0.6.31/avahi-utils/Makefile.in | ||
22 | =================================================================== | ||
23 | --- avahi-0.6.31.orig/avahi-utils/Makefile.in | ||
24 | +++ avahi-0.6.31/avahi-utils/Makefile.in | ||
25 | @@ -906,6 +906,7 @@ uninstall-am: uninstall-binPROGRAMS | ||
26 | |||
27 | |||
28 | @HAVE_DBUS_TRUE@install-exec-local: | ||
29 | +@HAVE_DBUS_TRUE@ $(MKDIR_P) $(DESTDIR)/$(bindir) && \ | ||
30 | @HAVE_DBUS_TRUE@ cd $(DESTDIR)/$(bindir) && \ | ||
31 | @HAVE_DBUS_TRUE@ rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \ | ||
32 | @HAVE_DBUS_TRUE@ $(LN_S) avahi-resolve avahi-resolve-host-name && \ | ||
diff --git a/meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch b/meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch new file mode 100644 index 0000000000..e7a1908a63 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/fix_for_automake_1.11.2.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake version 1.11.2 has made use of dir variables more strict. | ||
4 | the use of pkglibdir with DATA var results in automake errors. | ||
5 | This commits uses pkgdatadir var instead of pkglibdir to avoid | ||
6 | the strict check errors. | ||
7 | |||
8 | Fixes this error: | ||
9 | service-type-database/Makefile.am:21: `pkglibdir' is not a legitimate directory for `DATA' | ||
10 | autoreconf: automake failed with exit status: 1 | ||
11 | ERROR: autoreconf execution failed. | ||
12 | |||
13 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
14 | 2011/12/28 | ||
15 | |||
16 | |||
17 | Index: avahi-0.6.30/service-type-database/Makefile.am | ||
18 | =================================================================== | ||
19 | --- avahi-0.6.30.orig/service-type-database/Makefile.am | ||
20 | +++ avahi-0.6.30/service-type-database/Makefile.am | ||
21 | @@ -18,13 +18,12 @@ | ||
22 | EXTRA_DIST=build-db.in service-types | ||
23 | |||
24 | pkgdata_DATA=service-types | ||
25 | -pkglib_DATA= | ||
26 | |||
27 | if HAVE_PYTHON | ||
28 | if HAVE_GDBM | ||
29 | |||
30 | noinst_SCRIPTS=build-db | ||
31 | -pkglib_DATA+=service-types.db | ||
32 | +pkgdata_DATA+=service-types.db | ||
33 | |||
34 | build-db: build-db.in | ||
35 | $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ | ||
36 | @@ -41,7 +40,7 @@ endif | ||
37 | if HAVE_DBM | ||
38 | |||
39 | noinst_SCRIPTS=build-db | ||
40 | -pkglib_DATA+=service-types.db.pag service-types.db.dir | ||
41 | +pkgdata_DATA+=service-types.db.pag service-types.db.dir | ||
42 | |||
43 | build-db: build-db.in | ||
44 | $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ | ||
diff --git a/meta/recipes-connectivity/avahi/files/fix_for_automake_1.12.x.patch b/meta/recipes-connectivity/avahi/files/fix_for_automake_1.12.x.patch new file mode 100644 index 0000000000..0fc4c290c4 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/fix_for_automake_1.12.x.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | autoamke 1.12.x has depricated use of mkdir_p , and recommends use of MKDIR_P | ||
4 | instead. Fixed the automake files accordingly to avoid warning-errors. | ||
5 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
6 | 2012/07/09 | ||
7 | |||
8 | |||
9 | Index: avahi-0.6.31/avahi-daemon/Makefile.am | ||
10 | =================================================================== | ||
11 | --- avahi-0.6.31.orig/avahi-daemon/Makefile.am | ||
12 | +++ avahi-0.6.31/avahi-daemon/Makefile.am | ||
13 | @@ -169,7 +169,7 @@ xmllint: | ||
14 | done | ||
15 | |||
16 | install-data-local: | ||
17 | - test -z "$(localstatedir)/run" || $(mkdir_p) "$(DESTDIR)$(localstatedir)/run" | ||
18 | + test -z "$(localstatedir)/run" || $(MKDIR_P) "$(DESTDIR)$(localstatedir)/run" | ||
19 | |||
20 | update-systemd: | ||
21 | curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c | ||
22 | Index: avahi-0.6.31/avahi-autoipd/Makefile.am | ||
23 | =================================================================== | ||
24 | --- avahi-0.6.31.orig/avahi-autoipd/Makefile.am | ||
25 | +++ avahi-0.6.31/avahi-autoipd/Makefile.am | ||
26 | @@ -76,7 +76,7 @@ dhcliententerdir = $(sysconfdir)/dhcp/dh | ||
27 | dhclientexitdir = $(sysconfdir)/dhcp/dhclient-exit-hooks.d | ||
28 | |||
29 | install-exec-hook: dhclient-exit-hook dhclient-enter-hook | ||
30 | - $(mkdir_p) $(DESTDIR)$(dhcliententerdir) $(DESTDIR)$(dhclientexitdir) | ||
31 | + $(MKDIR_P) $(DESTDIR)$(dhcliententerdir) $(DESTDIR)$(dhclientexitdir) | ||
32 | $(INSTALL) dhclient-enter-hook $(DESTDIR)$(dhcliententerdir)/avahi-autoipd | ||
33 | $(INSTALL) dhclient-exit-hook $(DESTDIR)$(dhclientexitdir)/avahi-autoipd | ||
34 | |||
diff --git a/meta/recipes-connectivity/avahi/files/initscript.patch b/meta/recipes-connectivity/avahi/files/initscript.patch new file mode 100644 index 0000000000..193889eb5c --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/initscript.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | diff --git a/initscript/debian/avahi-daemon.in b/initscript/debian/avahi-daemon.in | ||
4 | index 30a2c2f..b5848a8 100755 | ||
5 | --- a/initscript/debian/avahi-daemon.in | ||
6 | +++ b/initscript/debian/avahi-daemon.in | ||
7 | @@ -1,2 +1,14 @@ | ||
8 | #!/bin/sh | ||
9 | - | ||
10 | +### BEGIN INIT INFO | ||
11 | +# Provides: avahi | ||
12 | +# Required-Start: $remote_fs dbus | ||
13 | +# Required-Stop: $remote_fs dbus | ||
14 | +# Should-Start: $syslog | ||
15 | +# Should-Stop: $syslog | ||
16 | +# Default-Start: 2 3 4 5 | ||
17 | +# Default-Stop: 0 1 6 | ||
18 | +# Short-Description: Avahi mDNS/DNS-SD Daemon | ||
19 | +# Description: Zeroconf daemon for configuring your network | ||
20 | +# automatically | ||
21 | +### END INIT INFO | ||
22 | +# | ||
23 | diff --git a/initscript/debian/avahi-dnsconfd.in b/initscript/debian/avahi-dnsconfd.in | ||
24 | index ac34804..f95c340 100755 | ||
25 | --- a/initscript/debian/avahi-dnsconfd.in | ||
26 | +++ b/initscript/debian/avahi-dnsconfd.in | ||
27 | @@ -1,1 +1,14 @@ | ||
28 | #!/bin/sh | ||
29 | +### BEGIN INIT INFO | ||
30 | +# Provides: avahi-dnsconfd | ||
31 | +# Required-Start: $remote_fs avahi | ||
32 | +# Required-Stop: $remote_fs avahi | ||
33 | +# Should-Start: $syslog | ||
34 | +# Should-Stop: $syslog | ||
35 | +# Default-Start: 2 3 4 5 | ||
36 | +# Default-Stop: 0 1 6 | ||
37 | +# Short-Description: Avahi mDNS/DNS-SD DNS configuration | ||
38 | +# Description: Zeroconf daemon for configuring your network | ||
39 | +# automatically | ||
40 | +### END INIT INFO | ||
41 | +# | ||
diff --git a/meta/recipes-connectivity/avahi/files/out-of-tree.patch b/meta/recipes-connectivity/avahi/files/out-of-tree.patch new file mode 100644 index 0000000000..43476cde05 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/out-of-tree.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Upstream-Status: Pending | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From a62dc95d75691ea4aefa86d8bbe54c62afd78ff6 Mon Sep 17 00:00:00 2001 | ||
5 | From: Ross Burton <ross.burton@intel.com> | ||
6 | Date: Tue, 17 Sep 2013 12:27:36 +0100 | ||
7 | Subject: [PATCH] build-sys: fix out-of-tree builds without xmltoman | ||
8 | |||
9 | If manpages are enabled but xmltoman isn't present, out-of-tree builds fail | ||
10 | because it checks inside the build directory for the pre-generated manpages. | ||
11 | |||
12 | Fix this by using $srcdir when looking for files inside the source directory. | ||
13 | --- | ||
14 | configure.ac | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/configure.ac b/configure.ac | ||
18 | index 9debce2..047c7ae 100644 | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -1021,7 +1021,7 @@ if test x$manpages = xyes ; then | ||
22 | fi | ||
23 | |||
24 | if test x$have_xmltoman = xno -o x$xmltoman = xno; then | ||
25 | - if ! test -e man/avahi-daemon.8 ; then | ||
26 | + if ! test -e $srcdir/man/avahi-daemon.8 ; then | ||
27 | AC_MSG_ERROR([*** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman]) | ||
28 | exit 1 | ||
29 | fi | ||
30 | -- | ||
31 | 1.7.10.4 | ||
32 | |||