diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-01 16:27:31 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-02 14:55:55 +0100 |
| commit | c51a6b5756d487a85b20b89daad8ab503764c749 (patch) | |
| tree | f7e6bb794e8212fc50ac819d86e7638f705671a2 | |
| parent | e24428521aad4c8f62a8876f97dfb377f5efad3a (diff) | |
| download | poky-c51a6b5756d487a85b20b89daad8ab503764c749.tar.gz | |
avahi: enable service when using systemd
(From OE-Core rev: d3fc33760a80b0a067b41ff88e99941f1c40c8f9)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/avahi/avahi.inc | 18 | ||||
| -rw-r--r-- | meta/recipes-connectivity/avahi/avahi_0.6.30.bb | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc index 099c5a4c2d..9e26a20f22 100644 --- a/meta/recipes-connectivity/avahi/avahi.inc +++ b/meta/recipes-connectivity/avahi/avahi.inc | |||
| @@ -46,6 +46,24 @@ PACKAGES =+ "avahi-systemd avahi-daemon libavahi-common libavahi-core libavahi-c | |||
| 46 | FILES_avahi-systemd = "${base_libdir}/systemd" | 46 | FILES_avahi-systemd = "${base_libdir}/systemd" |
| 47 | RDEPENDS_avahi-systemd = "avahi-daemon" | 47 | RDEPENDS_avahi-systemd = "avahi-daemon" |
| 48 | 48 | ||
| 49 | pkg_postinst_avahi-systemd() { | ||
| 50 | # can't do this offline | ||
| 51 | if [ "x$D" != "x" ]; then | ||
| 52 | exit 1 | ||
| 53 | fi | ||
| 54 | |||
| 55 | systemctl enable avahi-daemon.service | ||
| 56 | } | ||
| 57 | |||
| 58 | pkg_postrm_avahi-systemd() { | ||
| 59 | # can't do this offline | ||
| 60 | if [ "x$D" != "x" ]; then | ||
| 61 | exit 1 | ||
| 62 | fi | ||
| 63 | |||
| 64 | systemctl disable avahi-daemon.service | ||
| 65 | } | ||
| 66 | |||
| 49 | FILES_libavahi-common = "${libdir}/libavahi-common.so.*" | 67 | FILES_libavahi-common = "${libdir}/libavahi-common.so.*" |
| 50 | FILES_libavahi-core = "${libdir}/libavahi-core.so.*" | 68 | FILES_libavahi-core = "${libdir}/libavahi-core.so.*" |
| 51 | FILES_libavahi-ui = "${libdir}/libavahi-ui.so.*" | 69 | FILES_libavahi-ui = "${libdir}/libavahi-ui.so.*" |
diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb index e63f40645e..23c0fa0533 100644 --- a/meta/recipes-connectivity/avahi/avahi_0.6.30.bb +++ b/meta/recipes-connectivity/avahi/avahi_0.6.30.bb | |||
| @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | |||
| 7 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" | 7 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" |
| 8 | 8 | ||
| 9 | RDEPENDS_avahi-daemon = "sysvinit-pidof" | 9 | RDEPENDS_avahi-daemon = "sysvinit-pidof" |
| 10 | PR = "r1" | 10 | PR = "r3" |
| 11 | 11 | ||
| 12 | EXTRA_OECONF += "--disable-gtk3" | 12 | EXTRA_OECONF += "--disable-gtk3" |
| 13 | 13 | ||
