diff options
author | Radu Moisan <radu.moisan@intel.com> | 2013-02-08 22:43:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-11 14:46:10 +0000 |
commit | aaa915bf12034b74fe4a84d173304376565498d9 (patch) | |
tree | 9859aa4f39667d67ae14e2a309a8517f9308c6f3 /meta/recipes-connectivity/avahi/avahi.inc | |
parent | 66af82eab3da7677739a56b115d4ddd502b1ceaa (diff) | |
download | poky-aaa915bf12034b74fe4a84d173304376565498d9.tar.gz |
avahi: Enabling with systemd
(From OE-Core rev: 6d89c6744a98dce1fee6a21f1dad1305f6bf6fb5)
Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/avahi/avahi.inc')
-rw-r--r-- | meta/recipes-connectivity/avahi/avahi.inc | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc index 185207b65d..3a4547c3cf 100644 --- a/meta/recipes-connectivity/avahi/avahi.inc +++ b/meta/recipes-connectivity/avahi/avahi.inc | |||
@@ -37,10 +37,13 @@ USERADD_PARAM_avahi-autoipd = "--system --home /var/run/avahi-autoipd \ | |||
37 | -c \"Avahi autoip daemon\" \ | 37 | -c \"Avahi autoip daemon\" \ |
38 | avahi-autoipd" | 38 | avahi-autoipd" |
39 | 39 | ||
40 | inherit autotools pkgconfig update-rc.d gettext useradd | 40 | inherit autotools pkgconfig update-rc.d gettext systemd useradd |
41 | 41 | ||
42 | EXTRA_OECONF = "--with-distro=debian \ | 42 | SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-dnsconfd" |
43 | --disable-introspection \ | 43 | SYSTEMD_SERVICE_avahi-daemon = "avahi-daemon.service" |
44 | SYSTEMD_SERVICE_avahi-dnsconfd = "avahi-dnsconfd.service" | ||
45 | |||
46 | EXTRA_OECONF = "--disable-introspection \ | ||
44 | --with-avahi-priv-access-group=adm \ | 47 | --with-avahi-priv-access-group=adm \ |
45 | --disable-stack-protector \ | 48 | --disable-stack-protector \ |
46 | --disable-gdbm \ | 49 | --disable-gdbm \ |
@@ -50,10 +53,15 @@ EXTRA_OECONF = "--with-distro=debian \ | |||
50 | --disable-qt4 \ | 53 | --disable-qt4 \ |
51 | --disable-python \ | 54 | --disable-python \ |
52 | --disable-doxygen-doc \ | 55 | --disable-doxygen-doc \ |
53 | --with-systemdsystemunitdir=${systemd_unitdir}/system/ \ | 56 | ${EXTRA_OECONF_SYSVINIT} \ |
57 | ${EXTRA_OECONF_SYSTEMD} \ | ||
54 | ${AVAHI_GTK} \ | 58 | ${AVAHI_GTK} \ |
55 | " | 59 | " |
56 | 60 | ||
61 | # The distro choice determines what init scripts are installed | ||
62 | EXTRA_OECONF_SYSVINIT = "${@base_contains('DISTRO_FEATURES','sysvinit','--with-distro=debian','--with-distro=none',d)}" | ||
63 | EXTRA_OECONF_SYSTEMD = "${@base_contains('DISTRO_FEATURES','systemd','--with-systemdsystemunitdir=${systemd_unitdir}/system/','',d)}" | ||
64 | |||
57 | AVAHI_GTK ?= "--disable-gtk --disable-gtk3" | 65 | AVAHI_GTK ?= "--disable-gtk --disable-gtk3" |
58 | 66 | ||
59 | LDFLAGS_append_libc-uclibc = " -lintl" | 67 | LDFLAGS_append_libc-uclibc = " -lintl" |
@@ -64,9 +72,8 @@ do_configure_prepend() { | |||
64 | } | 72 | } |
65 | 73 | ||
66 | 74 | ||
67 | PACKAGES =+ "avahi-systemd avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils" | 75 | PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils" |
68 | 76 | ||
69 | FILES_avahi-systemd = "${systemd_unitdir}" | ||
70 | FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \ | 77 | FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \ |
71 | ${sysconfdir}/avahi/avahi-autoipd.action \ | 78 | ${sysconfdir}/avahi/avahi-autoipd.action \ |
72 | ${sysconfdir}/dhcp/*/avahi-autoipd \ | 79 | ${sysconfdir}/dhcp/*/avahi-autoipd \ |
@@ -94,8 +101,6 @@ FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*" | |||
94 | FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*" | 101 | FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*" |
95 | FILES_avahi-utils = "${bindir}/avahi-*" | 102 | FILES_avahi-utils = "${bindir}/avahi-*" |
96 | 103 | ||
97 | RDEPENDS_avahi-systemd = "avahi-daemon" | ||
98 | |||
99 | RDEPENDS_avahi-daemon = "sysvinit-pidof" | 104 | RDEPENDS_avahi-daemon = "sysvinit-pidof" |
100 | 105 | ||
101 | # uclibc has no nss | 106 | # uclibc has no nss |