summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/distro/include/poky-fixed-revisions.inc2
-rw-r--r--meta/packages/dbus/dbus-1.2.14/cross.patch10
-rw-r--r--meta/packages/dbus/dbus-1.2.24/99_dbus (renamed from meta/packages/dbus/dbus-1.2.14/99_dbus)0
-rw-r--r--meta/packages/dbus/dbus-1.2.24/dbus-1.init (renamed from meta/packages/dbus/dbus-1.2.14/dbus-1.init)0
-rw-r--r--meta/packages/dbus/dbus-1.2.24/fix-install-daemon.patch (renamed from meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch)31
-rw-r--r--meta/packages/dbus/dbus-1.2.24/tmpdir.patch (renamed from meta/packages/dbus/dbus-1.2.14/tmpdir.patch)4
-rw-r--r--meta/packages/dbus/dbus-1.2.4/99_dbus1
-rw-r--r--meta/packages/dbus/dbus-1.2.4/cross.patch10
-rw-r--r--meta/packages/dbus/dbus-1.2.4/dbus-1.init121
-rw-r--r--meta/packages/dbus/dbus-1.2.4/fix-install-daemon.patch37
-rw-r--r--meta/packages/dbus/dbus-1.2.4/tmpdir.patch30
-rw-r--r--meta/packages/dbus/dbus-native_1.2.14.bb20
-rw-r--r--meta/packages/dbus/dbus-native_1.2.4.bb20
-rw-r--r--meta/packages/dbus/dbus.inc93
-rw-r--r--meta/packages/dbus/dbus_1.2.14.bb5
-rw-r--r--meta/packages/dbus/dbus_1.2.24.bb3
-rw-r--r--meta/packages/dbus/dbus_1.2.4.bb5
17 files changed, 80 insertions, 312 deletions
diff --git a/meta/conf/distro/include/poky-fixed-revisions.inc b/meta/conf/distro/include/poky-fixed-revisions.inc
index aca4cc02ba..b5f3886358 100644
--- a/meta/conf/distro/include/poky-fixed-revisions.inc
+++ b/meta/conf/distro/include/poky-fixed-revisions.inc
@@ -17,8 +17,6 @@ PREFERRED_VERSION_gtk+ ?= "2.20.1"
17 17
18PREFERRED_VERSION_librsvg ?= "2.26.3" 18PREFERRED_VERSION_librsvg ?= "2.26.3"
19 19
20PREFERRED_VERSION_dbus ?= "1.2.4"
21PREFERRED_VERSION_dbus-native ?= "1.2.4"
22PREFERRED_VERSION_dbus-glib ?= "0.82" 20PREFERRED_VERSION_dbus-glib ?= "0.82"
23PREFERRED_VERSION_dbus-glib-native ?= "0.82" 21PREFERRED_VERSION_dbus-glib-native ?= "0.82"
24PREFERRED_VERSION_gnome-vfs ?= "2.22.0" 22PREFERRED_VERSION_gnome-vfs ?= "2.22.0"
diff --git a/meta/packages/dbus/dbus-1.2.14/cross.patch b/meta/packages/dbus/dbus-1.2.14/cross.patch
deleted file mode 100644
index 268a3ae3de..0000000000
--- a/meta/packages/dbus/dbus-1.2.14/cross.patch
+++ /dev/null
@@ -1,10 +0,0 @@
1--- /tmp/configure.in 2006-11-09 21:47:10.000000000 +0100
2+++ dbus-0.95/configure.in 2006-11-09 21:48:13.108554000 +0100
3@@ -719,6 +719,7 @@
4 exit (0);
5 ]])],
6 [ac_cv_have_abstract_sockets=yes],
7+ [ac_cv_have_abstract_sockets=no],
8 [ac_cv_have_abstract_sockets=no]
9 )])
10 AC_LANG_POP(C)
diff --git a/meta/packages/dbus/dbus-1.2.14/99_dbus b/meta/packages/dbus/dbus-1.2.24/99_dbus
index 6821ae4dba..6821ae4dba 100644
--- a/meta/packages/dbus/dbus-1.2.14/99_dbus
+++ b/meta/packages/dbus/dbus-1.2.24/99_dbus
diff --git a/meta/packages/dbus/dbus-1.2.14/dbus-1.init b/meta/packages/dbus/dbus-1.2.24/dbus-1.init
index 4abc4cbf73..4abc4cbf73 100644
--- a/meta/packages/dbus/dbus-1.2.14/dbus-1.init
+++ b/meta/packages/dbus/dbus-1.2.24/dbus-1.init
diff --git a/meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch b/meta/packages/dbus/dbus-1.2.24/fix-install-daemon.patch
index 7012995fb9..edb63a5faf 100644
--- a/meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch
+++ b/meta/packages/dbus/dbus-1.2.24/fix-install-daemon.patch
@@ -1,31 +1,36 @@
1# Update fix-daemon-install patch to use automake magic to avoid the wrapper scripts
2#
3# original by RP, updated to handle dbus-daemon-launch-helper by Kevin Tian <kevin.tian@intel.com>, 2010-07-10
1Index: dbus-1.2.14/bus/Makefile.am 4Index: dbus-1.2.14/bus/Makefile.am
2=================================================================== 5===================================================================
3--- dbus-1.2.14.orig/bus/Makefile.am 2009-04-17 20:45:29.000000000 +0100 6--- dbus-1.2.14.orig/bus/Makefile.am 2009-04-17 20:45:29.000000000 +0100
4+++ dbus-1.2.14/bus/Makefile.am 2009-11-13 09:47:24.000000000 +0000 7+++ dbus-1.2.14/bus/Makefile.am 2009-11-13 09:47:24.000000000 +0000
5@@ -149,7 +149,7 @@ 8@@ -149,7 +149,7 @@ endif
6 9
7 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build 10 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
8 ## even when not doing "make check" 11 ## even when not doing "make check"
9-noinst_PROGRAMS=$(TESTS) dbus-daemon dbus-daemon-launch-helper-test dbus-daemon-launch-helper 12-noinst_PROGRAMS=$(TESTS) dbus-daemon dbus-daemon-launch-helper-test dbus-daemon-launch-helper
10+noinst_PROGRAMS=$(TESTS) dbus-daemon-launch-helper-test dbus-daemon-launch-helper 13+noinst_PROGRAMS=$(TESTS) dbus-daemon-launch-helper-test
11 14
12 bus_test_system_SOURCES= \ 15 bus_test_system_SOURCES= \
13 $(XML_SOURCES) \ 16 $(XML_SOURCES) \
14@@ -171,20 +171,17 @@ 17@@ -171,34 +171,22 @@ bus_test_SOURCES= \
15 bus_test_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_BUS_LIBS) 18 bus_test_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_BUS_LIBS)
16 bus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@ 19 bus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
17 20
18+dbusdaemondir = $(DBUS_DAEMONDIR) 21+dbusdaemondir = $(DBUS_DAEMONDIR)
19+dbusdaemon_PROGRAMS = dbus-daemon 22+dbusdaemon_PROGRAMS = dbus-daemon
20+ 23+
24+libexec_PROGRAMS = dbus-daemon-launch-helper
25+
21 ## mop up the gcov files 26 ## mop up the gcov files
22 clean-local: 27 clean-local:
23 /bin/rm *.bb *.bbg *.da *.gcov || true 28 /bin/rm *.bb *.bbg *.da *.gcov || true
24 29
25 uninstall-hook: 30-uninstall-hook:
26- rm -f $(DESTDIR)$(DBUS_DAEMONDIR)/dbus-daemon 31- rm -f $(DESTDIR)$(DBUS_DAEMONDIR)/dbus-daemon
27 rm -f $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper 32- rm -f $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper
28 33-
29 install-data-hook: 34 install-data-hook:
30- if test '!' -d $(DESTDIR)$(DBUS_DAEMONDIR); then \ 35- if test '!' -d $(DESTDIR)$(DBUS_DAEMONDIR); then \
31- $(mkinstalldirs) $(DESTDIR)$(DBUS_DAEMONDIR); \ 36- $(mkinstalldirs) $(DESTDIR)$(DBUS_DAEMONDIR); \
@@ -35,3 +40,17 @@ Index: dbus-1.2.14/bus/Makefile.am
35 $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus 40 $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus
36 $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d 41 $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d
37 $(mkinstalldirs) $(DESTDIR)$(configdir)/session.d 42 $(mkinstalldirs) $(DESTDIR)$(configdir)/session.d
43 $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/services
44 $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/system-services
45 $(mkinstalldirs) $(DESTDIR)$(libexecdir)/dbus-1
46- $(INSTALL_PROGRAM) dbus-daemon-launch-helper $(DESTDIR)$(libexecdir)
47- if test `id -u` -eq 0; then \
48- chown root:$(DBUS_USER) $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper; \
49- chmod 4750 $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper; \
50- else \
51- echo "Not installing $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper binary setuid!"; \
52- echo "You'll need to manually set permissions to root:$(DBUS_USER) and permissions 4750"; \
53- fi
54
55 #### Init scripts fun
56 SCRIPT_IN_FILES=messagebus.in \
diff --git a/meta/packages/dbus/dbus-1.2.14/tmpdir.patch b/meta/packages/dbus/dbus-1.2.24/tmpdir.patch
index 838b903f0a..f5c22af129 100644
--- a/meta/packages/dbus/dbus-1.2.14/tmpdir.patch
+++ b/meta/packages/dbus/dbus-1.2.24/tmpdir.patch
@@ -1,3 +1,7 @@
1# avoid to check tmp dir at build time. instead uses hard coded /tmp here
2#
3# comment added by Kevin Tian <kevin.tian@intel.com>
4
1--- dbus-0.22/configure.in.orig 2004-08-13 00:57:16.000000000 +0200 5--- dbus-0.22/configure.in.orig 2004-08-13 00:57:16.000000000 +0200
2+++ dbus-0.22/configure.in 2004-12-30 21:15:57.000000000 +0100 6+++ dbus-0.22/configure.in 2004-12-30 21:15:57.000000000 +0100
3@@ -1047,15 +1048,18 @@ 7@@ -1047,15 +1048,18 @@
diff --git a/meta/packages/dbus/dbus-1.2.4/99_dbus b/meta/packages/dbus/dbus-1.2.4/99_dbus
deleted file mode 100644
index 6821ae4dba..0000000000
--- a/meta/packages/dbus/dbus-1.2.4/99_dbus
+++ /dev/null
@@ -1 +0,0 @@
1d messagebus messagebus 0755 /var/run/dbus none
diff --git a/meta/packages/dbus/dbus-1.2.4/cross.patch b/meta/packages/dbus/dbus-1.2.4/cross.patch
deleted file mode 100644
index 268a3ae3de..0000000000
--- a/meta/packages/dbus/dbus-1.2.4/cross.patch
+++ /dev/null
@@ -1,10 +0,0 @@
1--- /tmp/configure.in 2006-11-09 21:47:10.000000000 +0100
2+++ dbus-0.95/configure.in 2006-11-09 21:48:13.108554000 +0100
3@@ -719,6 +719,7 @@
4 exit (0);
5 ]])],
6 [ac_cv_have_abstract_sockets=yes],
7+ [ac_cv_have_abstract_sockets=no],
8 [ac_cv_have_abstract_sockets=no]
9 )])
10 AC_LANG_POP(C)
diff --git a/meta/packages/dbus/dbus-1.2.4/dbus-1.init b/meta/packages/dbus/dbus-1.2.4/dbus-1.init
deleted file mode 100644
index 4abc4cbf73..0000000000
--- a/meta/packages/dbus/dbus-1.2.4/dbus-1.init
+++ /dev/null
@@ -1,121 +0,0 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: dbus
4# Required-Start: $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog
6# Default-Start: 2 3 4 5
7# Default-Stop: 1
8# Short-Description: D-Bus systemwide message bus
9# Description: D-Bus is a simple interprocess messaging system, used
10# for sending messages between applications.
11### END INIT INFO
12#
13# -*- coding: utf-8 -*-
14# Debian init.d script for D-BUS
15# Copyright © 2003 Colin Walters <walters@debian.org>
16
17set -e
18
19DAEMON=/usr/bin/dbus-daemon
20NAME=dbus
21DAEMONUSER=messagebus
22PIDDIR=/var/run/dbus
23PIDFILE=$PIDDIR/pid
24UUIDDIR=/var/lib/dbus
25DESC="system message bus"
26EVENTDIR=/etc/dbus-1/event.d
27
28test -x $DAEMON || exit 0
29
30# Source defaults file; edit that file to configure this script.
31ENABLED=1
32PARAMS=""
33if [ -e /etc/default/dbus ]; then
34 . /etc/default/dbus
35fi
36
37test "$ENABLED" != "0" || exit 0
38
39start_it_up()
40{
41 if [ ! -d $PIDDIR ]; then
42 mkdir -p $PIDDIR
43 chown $DAEMONUSER $PIDDIR
44 chgrp $DAEMONUSER $PIDDIR
45 fi
46 if [ -e $PIDFILE ]; then
47 PIDDIR=/proc/$(cat $PIDFILE)
48 if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then
49 echo "$DESC already started; not starting."
50 else
51 echo "Removing stale PID file $PIDFILE."
52 rm -f $PIDFILE
53 fi
54 fi
55
56 if [ ! -d $UUIDDIR ]; then
57 mkdir -p $UUIDDIR
58 chown $DAEMONUSER $UUIDDIR
59 chgrp $DAEMONUSER $UUIDDIR
60 fi
61
62 dbus-uuidgen --ensure
63
64 echo -n "Starting $DESC: "
65 start-stop-daemon --start --quiet --pidfile $PIDFILE \
66 --user $DAEMONUSER --exec $DAEMON -- --system $PARAMS
67 echo "$NAME."
68 if [ -d $EVENTDIR ]; then
69 run-parts --arg=start $EVENTDIR
70 fi
71}
72
73shut_it_down()
74{
75 if [ -d $EVENTDIR ]; then
76 # TODO: --reverse when busybox supports it
77 run-parts --arg=stop $EVENTDIR
78 fi
79 echo -n "Stopping $DESC: "
80 start-stop-daemon --stop --quiet --pidfile $PIDFILE \
81 --user $DAEMONUSER
82 # We no longer include these arguments so that start-stop-daemon
83 # can do its job even given that we may have been upgraded.
84 # We rely on the pidfile being sanely managed
85 # --exec $DAEMON -- --system $PARAMS
86 echo "$NAME."
87 rm -f $PIDFILE
88}
89
90reload_it()
91{
92 echo -n "Reloading $DESC config: "
93 dbus-send --print-reply --system --type=method_call \
94 --dest=org.freedesktop.DBus \
95 / org.freedesktop.DBus.ReloadConfig > /dev/null
96 # hopefully this is enough time for dbus to reload it's config file.
97 echo "done."
98}
99
100case "$1" in
101 start)
102 start_it_up
103 ;;
104 stop)
105 shut_it_down
106 ;;
107 reload|force-reload)
108 reload_it
109 ;;
110 restart)
111 shut_it_down
112 sleep 1
113 start_it_up
114 ;;
115 *)
116 echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
117 exit 1
118 ;;
119esac
120
121exit 0
diff --git a/meta/packages/dbus/dbus-1.2.4/fix-install-daemon.patch b/meta/packages/dbus/dbus-1.2.4/fix-install-daemon.patch
deleted file mode 100644
index 2c53faf97f..0000000000
--- a/meta/packages/dbus/dbus-1.2.4/fix-install-daemon.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1Index: dbus-1.2.4/bus/Makefile.am
2===================================================================
3--- dbus-1.2.4.orig/bus/Makefile.am 2008-08-07 19:44:35.000000000 +0100
4+++ dbus-1.2.4/bus/Makefile.am 2009-11-13 09:45:31.000000000 +0000
5@@ -149,7 +149,7 @@
6
7 ## we use noinst_PROGRAMS not check_PROGRAMS so that we build
8 ## even when not doing "make check"
9-noinst_PROGRAMS=$(TESTS) dbus-daemon dbus-daemon-launch-helper-test dbus-daemon-launch-helper
10+noinst_PROGRAMS=$(TESTS) dbus-daemon-launch-helper-test dbus-daemon-launch-helper
11
12 bus_test_system_SOURCES= \
13 $(XML_SOURCES) \
14@@ -171,20 +171,17 @@
15 bus_test_LDADD=$(top_builddir)/dbus/libdbus-convenience.la $(DBUS_BUS_LIBS)
16 bus_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
17
18+dbusdaemondir = $(DBUS_DAEMONDIR)
19+dbusdaemon_PROGRAMS = dbus-daemon
20+
21 ## mop up the gcov files
22 clean-local:
23 /bin/rm *.bb *.bbg *.da *.gcov || true
24
25 uninstall-hook:
26- rm -f $(DESTDIR)$(DBUS_DAEMONDIR)/dbus-daemon
27 rm -f $(DESTDIR)$(libexecdir)/dbus-daemon-launch-helper
28
29 install-data-hook:
30- if test '!' -d $(DESTDIR)$(DBUS_DAEMONDIR); then \
31- $(mkinstalldirs) $(DESTDIR)$(DBUS_DAEMONDIR); \
32- chmod 755 $(DESTDIR)$(DBUS_DAEMONDIR); \
33- fi
34- $(INSTALL_PROGRAM) dbus-daemon $(DESTDIR)$(DBUS_DAEMONDIR)
35 $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus
36 $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d
37 $(mkinstalldirs) $(DESTDIR)$(configdir)/session.d
diff --git a/meta/packages/dbus/dbus-1.2.4/tmpdir.patch b/meta/packages/dbus/dbus-1.2.4/tmpdir.patch
deleted file mode 100644
index 838b903f0a..0000000000
--- a/meta/packages/dbus/dbus-1.2.4/tmpdir.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1--- dbus-0.22/configure.in.orig 2004-08-13 00:57:16.000000000 +0200
2+++ dbus-0.22/configure.in 2004-12-30 21:15:57.000000000 +0100
3@@ -1047,15 +1048,18 @@
4 AC_SUBST(ABSOLUTE_TOP_BUILDDIR)
5
6 #### Find socket directories
7-if ! test -z "$TMPDIR" ; then
8- DEFAULT_SOCKET_DIR=$TMPDIR
9-elif ! test -z "$TEMP" ; then
10- DEFAULT_SOCKET_DIR=$TEMP
11-elif ! test -z "$TMP" ; then
12- DEFAULT_SOCKET_DIR=$TMP
13-else
14- DEFAULT_SOCKET_DIR=/tmp
15-fi
16+#if ! test -z "$TMPDIR" ; then
17+# DEFAULT_SOCKET_DIR=$TMPDIR
18+#elif ! test -z "$TEMP" ; then
19+# DEFAULT_SOCKET_DIR=$TEMP
20+#elif ! test -z "$TMP" ; then
21+# DEFAULT_SOCKET_DIR=$TMP
22+#else
23+# DEFAULT_SOCKET_DIR=/tmp
24+#fi
25+
26+# checks disabled to avoid expanding this at build time
27+DEFAULT_SOCKET_DIR=/tmp
28
29 if ! test -z "$with_test_socket_dir" ; then
30 TEST_SOCKET_DIR="$with_test_socket_dir"
diff --git a/meta/packages/dbus/dbus-native_1.2.14.bb b/meta/packages/dbus/dbus-native_1.2.14.bb
deleted file mode 100644
index 8114cd795b..0000000000
--- a/meta/packages/dbus/dbus-native_1.2.14.bb
+++ /dev/null
@@ -1,20 +0,0 @@
1require dbus.inc
2inherit native
3
4DEPENDS = "glib-2.0-native libxml2-native expat-native"
5
6PR = "r6"
7
8EXTRA_OECONF_X = "--without-x"
9
10do_install() {
11 autotools_do_install
12
13 # for dbus-glib-native introspection generation
14 install -d ${D}${datadir}/dbus/
15 install -m 0644 bus/session.conf ${D}${datadir}/dbus/session.conf
16
17 # dbus-glib-native and dbus-glib need this xml file
18 cd ${S}
19 ./bus/dbus-daemon --introspect > ${D}${datadir}/dbus/dbus-bus-introspect.xml
20}
diff --git a/meta/packages/dbus/dbus-native_1.2.4.bb b/meta/packages/dbus/dbus-native_1.2.4.bb
deleted file mode 100644
index 3b750f9e8d..0000000000
--- a/meta/packages/dbus/dbus-native_1.2.4.bb
+++ /dev/null
@@ -1,20 +0,0 @@
1require dbus.inc
2inherit native
3
4DEPENDS = "glib-2.0-native libxml2-native expat-native"
5
6PR = "r7"
7
8EXTRA_OECONF_X = "--without-x"
9
10do_install() {
11 autotools_do_install
12
13 # for dbus-glib-native introspection generation
14 install -d ${D}${datadir}/dbus/
15 install -m 0644 bus/session.conf ${D}${datadir}/dbus/session.conf
16
17 # dbus-glib-native and dbus-glib need this xml file
18 cd ${S}
19 ./bus/dbus-daemon --introspect > ${D}${datadir}/dbus/dbus-bus-introspect.xml
20}
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+"
5DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11 libsm" 5DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11 libsm"
6 6
7SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ 7SRC_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
14inherit autotools pkgconfig gettext 13inherit autotools pkgconfig gettext update-rc.d
15 14
16INITSCRIPT_NAME = "dbus-1" 15INITSCRIPT_NAME = "dbus-1"
17INITSCRIPT_PARAMS = "start 02 5 2 . stop 20 0 1 6 ." 16INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ."
18 17
19CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf" 18CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf"
20 19
@@ -22,65 +21,69 @@ DEBIANNAME_${PN} = "dbus-1"
22 21
23PACKAGES =+ "${PN}-lib" 22PACKAGES =+ "${PN}-lib"
24 23
25FILES_${PN} = "\ 24FILES_${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"
37FILES_${PN}-lib = "${libdir}/lib*.so.*" 34FILES_${PN}-lib = "${libdir}/lib*.so.*"
38RRECOMMENDS_${PN}-lib = "${PN}" 35RRECOMMENDS_${PN}-lib = "${PN}"
39FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool ${libdir}/" 36FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
40 37
41pkg_postinst_dbus() { 38pkg_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
45if [ "x$D" != "x" ]; then 42 fi
46 exit 1
47fi
48 43
49MESSAGEUSER=messagebus 44 MESSAGEUSER=messagebus
50MESSAGEHOME=/var/run/dbus 45 MESSAGEHOME=/var/run/dbus
51 46
52mkdir -p $MESSAGEHOME || true 47 mkdir -p $MESSAGEHOME || true
53chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" 48 chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER"
54chown "$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
56grep -q netdev: /etc/group || addgroup netdev 53 grep -q netdev: /etc/group || addgroup netdev
57chmod u+s /usr/libexec/dbus-daemon-launch-helper 54 chmod u+s /usr/libexec/dbus-daemon-launch-helper
58} 55}
59 56
60EXTRA_OECONF_X = "--with-x" 57EXTRA_OECONF_X = "--with-x"
58EXTRA_OECONF_X_virtclass-native = "--without-x"
61 59
62EXTRA_OECONF = "\ 60EXTRA_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
75do_install() { 68do_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
78do_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}
89BBCLASSEXTEND = "native"
diff --git a/meta/packages/dbus/dbus_1.2.14.bb b/meta/packages/dbus/dbus_1.2.14.bb
deleted file mode 100644
index 0d2ed25ecf..0000000000
--- a/meta/packages/dbus/dbus_1.2.14.bb
+++ /dev/null
@@ -1,5 +0,0 @@
1include dbus.inc
2
3PR = "r3"
4
5inherit update-rc.d
diff --git a/meta/packages/dbus/dbus_1.2.24.bb b/meta/packages/dbus/dbus_1.2.24.bb
new file mode 100644
index 0000000000..f331b140aa
--- /dev/null
+++ b/meta/packages/dbus/dbus_1.2.24.bb
@@ -0,0 +1,3 @@
1include dbus.inc
2
3PR = "r0"
diff --git a/meta/packages/dbus/dbus_1.2.4.bb b/meta/packages/dbus/dbus_1.2.4.bb
deleted file mode 100644
index 0d2ed25ecf..0000000000
--- a/meta/packages/dbus/dbus_1.2.4.bb
+++ /dev/null
@@ -1,5 +0,0 @@
1include dbus.inc
2
3PR = "r3"
4
5inherit update-rc.d