summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/avahi/avahi.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-06-01 14:27:31 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-02 13:55:55 (GMT)
commitc51a6b5756d487a85b20b89daad8ab503764c749 (patch)
treef7e6bb794e8212fc50ac819d86e7638f705671a2 /meta/recipes-connectivity/avahi/avahi.inc
parente24428521aad4c8f62a8876f97dfb377f5efad3a (diff)
downloadpoky-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>
Diffstat (limited to 'meta/recipes-connectivity/avahi/avahi.inc')
-rw-r--r--meta/recipes-connectivity/avahi/avahi.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index 099c5a4..9e26a20 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
46FILES_avahi-systemd = "${base_libdir}/systemd" 46FILES_avahi-systemd = "${base_libdir}/systemd"
47RDEPENDS_avahi-systemd = "avahi-daemon" 47RDEPENDS_avahi-systemd = "avahi-daemon"
48 48
49pkg_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
58pkg_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
49FILES_libavahi-common = "${libdir}/libavahi-common.so.*" 67FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
50FILES_libavahi-core = "${libdir}/libavahi-core.so.*" 68FILES_libavahi-core = "${libdir}/libavahi-core.so.*"
51FILES_libavahi-ui = "${libdir}/libavahi-ui.so.*" 69FILES_libavahi-ui = "${libdir}/libavahi-ui.so.*"