diff options
Diffstat (limited to 'meta/packages/dbus/dbus.inc')
-rw-r--r-- | meta/packages/dbus/dbus.inc | 74 |
1 files changed, 49 insertions, 25 deletions
diff --git a/meta/packages/dbus/dbus.inc b/meta/packages/dbus/dbus.inc index 256ccde0b4..5cf5e91069 100644 --- a/meta/packages/dbus/dbus.inc +++ b/meta/packages/dbus/dbus.inc | |||
@@ -1,18 +1,17 @@ | |||
1 | SECTION = "base" | ||
2 | PR = "r0" | ||
3 | HOMEPAGE = "http://dbus.freedesktop.org" | ||
4 | DESCRIPTION = "Message bus system for applications to talk to one another" | 1 | DESCRIPTION = "Message bus system for applications to talk to one another" |
2 | HOMEPAGE = "http://dbus.freedesktop.org" | ||
3 | SECTION = "base" | ||
5 | LICENSE = "GPL" | 4 | LICENSE = "GPL" |
6 | DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11" | 5 | DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11" |
7 | 6 | ||
8 | DEFAULT_PREFERENCE = "-1" | 7 | SRC_URI = "\ |
9 | 8 | http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | |
10 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | 9 | file://cross.patch;patch=1 \ |
11 | file://cross.patch;patch=1 \ | 10 | file://tmpdir.patch;patch=1 \ |
12 | file://tmpdir.patch;patch=1 \ | 11 | file://fix-install-daemon.patch;patch=1 \ |
13 | file://fix-install-daemon.patch;patch=1 \ | 12 | file://dbus-1.init \ |
14 | file://dbus-1.init" | 13 | " |
15 | 14 | S = "${WORKDIR}/dbus-${PV}" | |
16 | 15 | ||
17 | inherit autotools pkgconfig update-rc.d gettext | 16 | inherit autotools pkgconfig update-rc.d gettext |
18 | 17 | ||
@@ -21,8 +20,25 @@ INITSCRIPT_PARAMS = "defaults" | |||
21 | 20 | ||
22 | CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf" | 21 | CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf" |
23 | 22 | ||
24 | FILES_${PN} = "${bindir}/dbus-daemon ${bindir}/dbus-launch ${bindir}/dbus-cleanup-sockets ${bindir}/dbus-send ${bindir}/dbus-monitor ${bindir}/dbus-uuidgen ${sysconfdir} ${datadir}/dbus-1/services ${libdir}/lib*.so.*" | 23 | DEBIANNAME_${PN} = "dbus-1" |
25 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include" | 24 | |
25 | PACKAGES =+ "${PN}-lib" | ||
26 | |||
27 | FILES_${PN} = "\ | ||
28 | ${bindir}/dbus-daemon* \ | ||
29 | ${bindir}/dbus-uuidgen \ | ||
30 | ${bindir}/dbus-launch \ | ||
31 | ${bindir}/dbus-cleanup-sockets \ | ||
32 | ${bindir}/dbus-send \ | ||
33 | ${bindir}/dbus-monitor \ | ||
34 | ${libexecdir}/dbus* \ | ||
35 | ${sysconfdir} \ | ||
36 | ${datadir}/dbus-1/services \ | ||
37 | ${datadir}/dbus-1/system-services \ | ||
38 | " | ||
39 | FILES_${PN}-lib = "${libdir}/lib*.so.*" | ||
40 | RRECOMMENDS_${PN}-lib = "${PN}" | ||
41 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool ${libdir}/" | ||
26 | 42 | ||
27 | pkg_postinst_dbus() { | 43 | pkg_postinst_dbus() { |
28 | #!/bin/sh | 44 | #!/bin/sh |
@@ -38,15 +54,24 @@ MESSAGEHOME=/var/run/dbus | |||
38 | mkdir -p $MESSAGEHOME || true | 54 | mkdir -p $MESSAGEHOME || true |
39 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" | 55 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" |
40 | chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password --ingroup "$MESSAGEUSER" "$MESSAGEUSER" | 56 | chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password --ingroup "$MESSAGEUSER" "$MESSAGEUSER" |
57 | |||
41 | grep -q netdev: /etc/group || addgroup netdev | 58 | grep -q netdev: /etc/group || addgroup netdev |
59 | chmod u+s /usr/libexec/dbus-daemon-launch-helper | ||
42 | } | 60 | } |
43 | 61 | ||
44 | EXTRA_OECONF = "--disable-qt --disable-qt3 --disable-gtk --disable-tests \ | 62 | EXTRA_OECONF = "\ |
45 | --disable-asserts --disable-xml-docs --disable-doxygen-docs \ | 63 | --disable-qt \ |
46 | --with-xml=expat --with-x" | 64 | --disable-qt3 \ |
47 | 65 | --disable-gtk \ | |
48 | 66 | --disable-tests \ | |
49 | do_stage () { | 67 | --disable-checks \ |
68 | --disable-xml-docs \ | ||
69 | --disable-doxygen-docs \ | ||
70 | --with-xml=expat \ | ||
71 | --with-x \ | ||
72 | " | ||
73 | |||
74 | do_stage() { | ||
50 | oe_libinstall -so -C dbus libdbus-1 ${STAGING_LIBDIR} | 75 | oe_libinstall -so -C dbus libdbus-1 ${STAGING_LIBDIR} |
51 | 76 | ||
52 | autotools_stage_includes | 77 | autotools_stage_includes |
@@ -55,12 +80,11 @@ do_stage () { | |||
55 | install -m 0644 dbus/dbus-arch-deps.h ${STAGING_LIBDIR}/dbus-1.0/include/dbus/ | 80 | install -m 0644 dbus/dbus-arch-deps.h ${STAGING_LIBDIR}/dbus-1.0/include/dbus/ |
56 | } | 81 | } |
57 | 82 | ||
58 | do_install_append () { | 83 | do_install_append() { |
59 | install -d ${D}${sysconfdir}/init.d | 84 | install -d ${D}${sysconfdir}/init.d |
60 | install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1 | 85 | install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1 |
61 | } | 86 | # the stock install seems to install the libtool wrapper script, so we have to copy this manually :M: |
62 | 87 | if [ -e bus/.libs/dbus-daemon-launch-helper ]; then | |
63 | python populate_packages_prepend () { | 88 | install -m 0755 bus/.libs/dbus-daemon-launch-helper ${D}${libexecdir}/ |
64 | if (bb.data.getVar('DEBIAN_NAMES', d, 1)): | 89 | fi |
65 | bb.data.setVar('PKG_dbus', 'dbus-1', d) | ||
66 | } | 90 | } |