diff options
Diffstat (limited to 'openembedded/packages/dbus/dbus_0.50.inc')
-rw-r--r-- | openembedded/packages/dbus/dbus_0.50.inc | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/openembedded/packages/dbus/dbus_0.50.inc b/openembedded/packages/dbus/dbus_0.50.inc new file mode 100644 index 0000000000..094a9b68d6 --- /dev/null +++ b/openembedded/packages/dbus/dbus_0.50.inc | |||
@@ -0,0 +1,65 @@ | |||
1 | SECTION = "base" | ||
2 | PR = "r0" | ||
3 | HOMEPAGE = "http://www.freedesktop.org/Software/dbus" | ||
4 | DESCRIPTION = "message bus system for applications to talk to one another" | ||
5 | LICENSE = "GPL" | ||
6 | DEPENDS = "expat glib-2.0 virtual/libintl" | ||
7 | DEFAULT_PREFERENCE = "-1" | ||
8 | |||
9 | SRC_URI = "http://freedesktop.org/software/dbus/releases/dbus-${PV}.tar.gz \ | ||
10 | file://cross.patch;patch=1 \ | ||
11 | file://tmpdir.patch;patch=1 \ | ||
12 | file://dbus-1.init \ | ||
13 | file://no-examples.patch;patch=1 \ | ||
14 | ${SRC_URI_EXTRA}" | ||
15 | |||
16 | inherit autotools pkgconfig update-rc.d gettext | ||
17 | |||
18 | INITSCRIPT_NAME = "dbus-1" | ||
19 | INITSCRIPT_PARAMS = "defaults" | ||
20 | |||
21 | CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf" | ||
22 | |||
23 | FILES_${PN} = "${bindir}/dbus-daemon ${bindir}/dbus-launch ${bindir}/dbus-cleanup-sockets ${bindir}/dbus-send ${bindir}/dbus-monitor ${sysconfdir} ${datadir}/dbus-1/services ${libdir}/lib*.so.*" | ||
24 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" | ||
25 | |||
26 | pkg_postinst_dbus() { | ||
27 | #!/bin/sh | ||
28 | |||
29 | # can't do adduser stuff offline | ||
30 | if [ "x$D" != "x" ]; then | ||
31 | exit 1 | ||
32 | fi | ||
33 | |||
34 | MESSAGEUSER=messagebus | ||
35 | MESSAGEHOME=/var/run/dbus | ||
36 | |||
37 | mkdir -p $MESSAGEHOME || true | ||
38 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" | ||
39 | chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password --ingroup "$MESSAGEUSER" "$MESSAGEUSER" | ||
40 | } | ||
41 | |||
42 | EXTRA_OECONF = "--disable-qt --disable-gtk --disable-tests \ | ||
43 | --disable-checks --disable-xml-docs --disable-doxygen-docs \ | ||
44 | --with-xml=expat --without-x" | ||
45 | |||
46 | |||
47 | do_stage () { | ||
48 | oe_libinstall -so -C dbus libdbus-1 ${STAGING_LIBDIR} | ||
49 | oe_libinstall -so -C glib libdbus-glib-1 ${STAGING_LIBDIR} | ||
50 | |||
51 | autotools_stage_includes | ||
52 | |||
53 | mkdir -p ${STAGING_LIBDIR}/dbus-1.0/include/dbus/ | ||
54 | install -m 0644 dbus/dbus-arch-deps.h ${STAGING_LIBDIR}/dbus-1.0/include/dbus/ | ||
55 | } | ||
56 | |||
57 | do_install_append () { | ||
58 | install -d ${D}${sysconfdir}/init.d | ||
59 | install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1 | ||
60 | } | ||
61 | |||
62 | python populate_packages_prepend () { | ||
63 | if (bb.data.getVar('DEBIAN_NAMES', d, 1)): | ||
64 | bb.data.setVar('PKG_dbus', 'dbus-1', d) | ||
65 | } | ||