diff options
Diffstat (limited to 'meta/packages/dbus/dbus.inc')
| -rw-r--r-- | meta/packages/dbus/dbus.inc | 93 |
1 files changed, 48 insertions, 45 deletions
diff --git a/meta/packages/dbus/dbus.inc b/meta/packages/dbus/dbus.inc index af866a9537..e1efaeed46 100644 --- a/meta/packages/dbus/dbus.inc +++ b/meta/packages/dbus/dbus.inc | |||
| @@ -5,16 +5,15 @@ LICENSE = "AFL2.1 | GPLv2+" | |||
| 5 | DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11 libsm" | 5 | DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11 libsm" |
| 6 | 6 | ||
| 7 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | 7 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ |
| 8 | file://cross.patch; \ | ||
| 9 | file://tmpdir.patch; \ | 8 | file://tmpdir.patch; \ |
| 10 | file://fix-install-daemon.patch; \ | 9 | file://fix-install-daemon.patch; \ |
| 11 | file://dbus-1.init \ | 10 | file://dbus-1.init \ |
| 12 | file://99_dbus" | 11 | file://99_dbus" |
| 13 | 12 | ||
| 14 | inherit autotools pkgconfig gettext | 13 | inherit autotools pkgconfig gettext update-rc.d |
| 15 | 14 | ||
| 16 | INITSCRIPT_NAME = "dbus-1" | 15 | INITSCRIPT_NAME = "dbus-1" |
| 17 | INITSCRIPT_PARAMS = "start 02 5 2 . stop 20 0 1 6 ." | 16 | INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ." |
| 18 | 17 | ||
| 19 | CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf" | 18 | CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf" |
| 20 | 19 | ||
| @@ -22,65 +21,69 @@ DEBIANNAME_${PN} = "dbus-1" | |||
| 22 | 21 | ||
| 23 | PACKAGES =+ "${PN}-lib" | 22 | PACKAGES =+ "${PN}-lib" |
| 24 | 23 | ||
| 25 | FILES_${PN} = "\ | 24 | FILES_${PN} = "${bindir}/dbus-daemon* \ |
| 26 | ${bindir}/dbus-daemon* \ | 25 | ${bindir}/dbus-uuidgen \ |
| 27 | ${bindir}/dbus-uuidgen \ | 26 | ${bindir}/dbus-launch \ |
| 28 | ${bindir}/dbus-launch \ | 27 | ${bindir}/dbus-cleanup-sockets \ |
| 29 | ${bindir}/dbus-cleanup-sockets \ | 28 | ${bindir}/dbus-send \ |
| 30 | ${bindir}/dbus-send \ | 29 | ${bindir}/dbus-monitor \ |
| 31 | ${bindir}/dbus-monitor \ | 30 | ${libexecdir}/dbus* \ |
| 32 | ${libexecdir}/dbus* \ | 31 | ${sysconfdir} \ |
| 33 | ${sysconfdir} \ | 32 | ${datadir}/dbus-1/services \ |
| 34 | ${datadir}/dbus-1/services \ | 33 | ${datadir}/dbus-1/system-services" |
| 35 | ${datadir}/dbus-1/system-services \ | ||
| 36 | " | ||
| 37 | FILES_${PN}-lib = "${libdir}/lib*.so.*" | 34 | FILES_${PN}-lib = "${libdir}/lib*.so.*" |
| 38 | RRECOMMENDS_${PN}-lib = "${PN}" | 35 | RRECOMMENDS_${PN}-lib = "${PN}" |
| 39 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool ${libdir}/" | 36 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" |
| 40 | 37 | ||
| 41 | pkg_postinst_dbus() { | 38 | pkg_postinst_dbus() { |
| 42 | #!/bin/sh | 39 | # can't do adduser stuff offline |
| 43 | 40 | if [ "x$D" != "x" ]; then | |
| 44 | # can't do adduser stuff offline | 41 | exit 1 |
| 45 | if [ "x$D" != "x" ]; then | 42 | fi |
| 46 | exit 1 | ||
| 47 | fi | ||
| 48 | 43 | ||
| 49 | MESSAGEUSER=messagebus | 44 | MESSAGEUSER=messagebus |
| 50 | MESSAGEHOME=/var/run/dbus | 45 | MESSAGEHOME=/var/run/dbus |
| 51 | 46 | ||
| 52 | mkdir -p $MESSAGEHOME || true | 47 | mkdir -p $MESSAGEHOME || true |
| 53 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" | 48 | chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" |
| 54 | chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password --ingroup "$MESSAGEUSER" "$MESSAGEUSER" | 49 | chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || \ |
| 50 | adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password \ | ||
| 51 | --ingroup "$MESSAGEUSER" "$MESSAGEUSER" | ||
| 55 | 52 | ||
| 56 | grep -q netdev: /etc/group || addgroup netdev | 53 | grep -q netdev: /etc/group || addgroup netdev |
| 57 | chmod u+s /usr/libexec/dbus-daemon-launch-helper | 54 | chmod u+s /usr/libexec/dbus-daemon-launch-helper |
| 58 | } | 55 | } |
| 59 | 56 | ||
| 60 | EXTRA_OECONF_X = "--with-x" | 57 | EXTRA_OECONF_X = "--with-x" |
| 58 | EXTRA_OECONF_X_virtclass-native = "--without-x" | ||
| 61 | 59 | ||
| 62 | EXTRA_OECONF = "\ | 60 | EXTRA_OECONF = "--disable-tests \ |
| 63 | --disable-qt \ | 61 | --disable-checks \ |
| 64 | --disable-qt3 \ | 62 | --disable-xml-docs \ |
| 65 | --disable-gtk \ | 63 | --disable-doxygen-docs \ |
| 66 | --disable-tests \ | 64 | --disable-libaudit \ |
| 67 | --disable-checks \ | 65 | --with-xml=expat \ |
| 68 | --disable-xml-docs \ | 66 | ${EXTRA_OECONF_X}" |
| 69 | --disable-doxygen-docs \ | ||
| 70 | --disable-libaudit \ | ||
| 71 | --with-xml=expat \ | ||
| 72 | ${EXTRA_OECONF_X} \ | ||
| 73 | " | ||
| 74 | 67 | ||
| 75 | do_install() { | 68 | do_install() { |
| 76 | autotools_do_install | 69 | autotools_do_install |
| 70 | |||
| 77 | install -d ${D}/etc/default/volatiles | 71 | install -d ${D}/etc/default/volatiles |
| 78 | install -m 0644 ${WORKDIR}/99_dbus ${D}/etc/default/volatiles/ | 72 | install -m 0644 ${WORKDIR}/99_dbus ${D}/etc/default/volatiles/ |
| 79 | 73 | ||
| 80 | install -d ${D}${sysconfdir}/init.d | 74 | install -d ${D}${sysconfdir}/init.d |
| 81 | install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1 | 75 | install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1 |
| 82 | # the stock install seems to install the libtool wrapper script, so we have to copy this manually :M: | ||
| 83 | if [ -e bus/.libs/dbus-daemon-launch-helper ]; then | ||
| 84 | install -m 0755 bus/.libs/dbus-daemon-launch-helper ${D}${libexecdir}/ | ||
| 85 | fi | ||
| 86 | } | 76 | } |
| 77 | |||
| 78 | do_install_virtclass-native() { | ||
| 79 | autotools_do_install | ||
| 80 | |||
| 81 | # for dbus-glib-native introspection generation | ||
| 82 | install -d ${STAGING_DATADIR_NATIVE}/dbus/ | ||
| 83 | # N.B. is below install actually required? | ||
| 84 | install -m 0644 bus/session.conf ${STAGING_DATADIR_NATIVE}/dbus/session.conf | ||
| 85 | |||
| 86 | # dbus-glib-native and dbus-glib need this xml file | ||
| 87 | ./bus/dbus-daemon --introspect > ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml | ||
| 88 | } | ||
| 89 | BBCLASSEXTEND = "native" | ||
