diff options
Diffstat (limited to 'openembedded/packages/avahi/avahi_0.5.2.bb')
-rw-r--r-- | openembedded/packages/avahi/avahi_0.5.2.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/openembedded/packages/avahi/avahi_0.5.2.bb b/openembedded/packages/avahi/avahi_0.5.2.bb new file mode 100644 index 0000000000..6a1a393e19 --- /dev/null +++ b/openembedded/packages/avahi/avahi_0.5.2.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | DESCRIPTION = "Avahi implements the DNS-SD over Multicast DNS" | ||
2 | HOMEPAGE = "http://www.freedesktop.org/Software/Avahi" | ||
3 | LICENCE= "GPL" | ||
4 | DEPENDS = "expat libdaemon dbus-0.50" | ||
5 | RRECOMMENDS = "libnss-mdns" | ||
6 | SECTION = "net" | ||
7 | PRIORITY = "optional" | ||
8 | PR = "r0" | ||
9 | |||
10 | SRC_URI = "http://www.freedesktop.org/~lennart/avahi-${PV}.tar.gz \ | ||
11 | file://alignment-fix.patch;patch=1" | ||
12 | |||
13 | PACKAGES = "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib avahi-dev avahi-doc" | ||
14 | |||
15 | FILES_libavahi-common = "${libdir}/libavahi-common.so.*" | ||
16 | FILES_libavahi-core= "${libdir}/libavahi-core.so.*" | ||
17 | FILES_avahi-daemon = "${sbindir}/avahi-daemon \ | ||
18 | ${sysconfdir}/avahi/avahi-daemon.conf \ | ||
19 | ${sysconfdir}/avahi/services \ | ||
20 | ${sysconfdir}/dbus-1 \ | ||
21 | ${sysconfdir}/init.d/avahi-daemon \ | ||
22 | ${datadir}/avahi/introspection/*.introspect \ | ||
23 | ${datadir}/avahi/avahi-service.dtd \ | ||
24 | ${datadir}/avahi/service-types" | ||
25 | FILES_libavahi-client = "${libdir}/libavahi-client.so.*" | ||
26 | FILES_avahi-dnsconfd = "${sbindir}/avahi-dnsconfd \ | ||
27 | ${sysconfdir}/avahi/avahi-dnsconfd.action \ | ||
28 | ${sysconfdir}/init.d/avahi-dnsconfd" | ||
29 | FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*" | ||
30 | |||
31 | CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf" | ||
32 | |||
33 | EXTRA_OECONF = "--with-distro=debian --disable-mono --disable-mono-docs --disable-gtk --disable-qt3 --disable-qt4 --disable-python" | ||
34 | inherit autotools | ||
35 | inherit update-rc.d | ||
36 | |||
37 | INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd" | ||
38 | INITSCRIPT_NAME_avahi-daemon = "avahi-daemon" | ||
39 | INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19" | ||
40 | INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd" | ||
41 | INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19" | ||
42 | |||
43 | pkg_postinst_avahi-daemon () { | ||
44 | grep avahi /etc/group || addgroup avahi | ||
45 | grep avahi /etc/passwd || adduser --disabled-password --system --home /var/run/avahi-daemon --no-create-home avahi --ingroup avahi -g Avahi | ||
46 | /etc/init.d/dbus-1 force-reload | ||
47 | } | ||
48 | |||
49 | pkg_postrm_avahi-daemon () { | ||
50 | deluser avahi || true | ||
51 | delgroup avahi || true | ||
52 | } | ||
53 | |||