diff options
-rw-r--r-- | meta/packages/dbus/dbus-1.2.14/99_dbus | 1 | ||||
-rw-r--r-- | meta/packages/dbus/dbus-1.2.14/cross.patch | 10 | ||||
-rw-r--r-- | meta/packages/dbus/dbus-1.2.14/dbus-1.init | 121 | ||||
-rw-r--r-- | meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch | 13 | ||||
-rw-r--r-- | meta/packages/dbus/dbus-1.2.14/tmpdir.patch | 30 | ||||
-rw-r--r-- | meta/packages/dbus/dbus-native_1.2.14.bb | 24 | ||||
-rw-r--r-- | meta/packages/dbus/dbus_1.2.14.bb | 7 |
7 files changed, 206 insertions, 0 deletions
diff --git a/meta/packages/dbus/dbus-1.2.14/99_dbus b/meta/packages/dbus/dbus-1.2.14/99_dbus new file mode 100644 index 0000000000..6821ae4dba --- /dev/null +++ b/meta/packages/dbus/dbus-1.2.14/99_dbus | |||
@@ -0,0 +1 @@ | |||
d messagebus messagebus 0755 /var/run/dbus none | |||
diff --git a/meta/packages/dbus/dbus-1.2.14/cross.patch b/meta/packages/dbus/dbus-1.2.14/cross.patch new file mode 100644 index 0000000000..268a3ae3de --- /dev/null +++ b/meta/packages/dbus/dbus-1.2.14/cross.patch | |||
@@ -0,0 +1,10 @@ | |||
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/dbus-1.init b/meta/packages/dbus/dbus-1.2.14/dbus-1.init new file mode 100644 index 0000000000..4abc4cbf73 --- /dev/null +++ b/meta/packages/dbus/dbus-1.2.14/dbus-1.init | |||
@@ -0,0 +1,121 @@ | |||
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 | |||
17 | set -e | ||
18 | |||
19 | DAEMON=/usr/bin/dbus-daemon | ||
20 | NAME=dbus | ||
21 | DAEMONUSER=messagebus | ||
22 | PIDDIR=/var/run/dbus | ||
23 | PIDFILE=$PIDDIR/pid | ||
24 | UUIDDIR=/var/lib/dbus | ||
25 | DESC="system message bus" | ||
26 | EVENTDIR=/etc/dbus-1/event.d | ||
27 | |||
28 | test -x $DAEMON || exit 0 | ||
29 | |||
30 | # Source defaults file; edit that file to configure this script. | ||
31 | ENABLED=1 | ||
32 | PARAMS="" | ||
33 | if [ -e /etc/default/dbus ]; then | ||
34 | . /etc/default/dbus | ||
35 | fi | ||
36 | |||
37 | test "$ENABLED" != "0" || exit 0 | ||
38 | |||
39 | start_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 | |||
73 | shut_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 | |||
90 | reload_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 | |||
100 | case "$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 | ;; | ||
119 | esac | ||
120 | |||
121 | exit 0 | ||
diff --git a/meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch b/meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch new file mode 100644 index 0000000000..c31786357d --- /dev/null +++ b/meta/packages/dbus/dbus-1.2.14/fix-install-daemon.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: dbus-0.94/bus/Makefile.am | ||
2 | =================================================================== | ||
3 | --- dbus-0.94.orig/bus/Makefile.am 2006-10-01 17:36:18.000000000 +0200 | ||
4 | +++ dbus-0.94/bus/Makefile.am 2006-10-14 21:40:05.000000000 +0200 | ||
5 | @@ -110,7 +110,7 @@ | ||
6 | $(mkinstalldirs) $(DESTDIR)$(DBUS_DAEMONDIR); \ | ||
7 | chmod 755 $(DESTDIR)$(DBUS_DAEMONDIR); \ | ||
8 | fi | ||
9 | - $(INSTALL_PROGRAM) dbus-daemon $(DESTDIR)$(DBUS_DAEMONDIR) | ||
10 | + $(INSTALL_PROGRAM) .libs/dbus-daemon $(DESTDIR)$(DBUS_DAEMONDIR) | ||
11 | $(mkinstalldirs) $(DESTDIR)$(localstatedir)/run/dbus | ||
12 | $(mkinstalldirs) $(DESTDIR)$(configdir)/system.d | ||
13 | $(mkinstalldirs) $(DESTDIR)$(datadir)/dbus-1/services | ||
diff --git a/meta/packages/dbus/dbus-1.2.14/tmpdir.patch b/meta/packages/dbus/dbus-1.2.14/tmpdir.patch new file mode 100644 index 0000000000..838b903f0a --- /dev/null +++ b/meta/packages/dbus/dbus-1.2.14/tmpdir.patch | |||
@@ -0,0 +1,30 @@ | |||
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 new file mode 100644 index 0000000000..d799ba2d1d --- /dev/null +++ b/meta/packages/dbus/dbus-native_1.2.14.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | require dbus.inc | ||
2 | inherit native | ||
3 | |||
4 | DEPENDS = "glib-2.0-native libxml2-native expat-native" | ||
5 | |||
6 | PR = "r3" | ||
7 | |||
8 | do_stage() { | ||
9 | oe_runmake install | ||
10 | autotools_stage_all | ||
11 | |||
12 | # for dbus-glib-native introspection generation | ||
13 | install -d ${STAGING_DATADIR}/dbus | ||
14 | install -m 0644 bus/session.conf ${STAGING_DATADIR}/dbus/session.conf | ||
15 | |||
16 | # dbus-glib-native and dbus-glib need this xml file | ||
17 | install -d ${STAGING_DATADIR_NATIVE}/dbus/ | ||
18 | cd ${S} | ||
19 | ./bus/dbus-daemon --introspect > ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml | ||
20 | } | ||
21 | |||
22 | do_install() { | ||
23 | : | ||
24 | } | ||
diff --git a/meta/packages/dbus/dbus_1.2.14.bb b/meta/packages/dbus/dbus_1.2.14.bb new file mode 100644 index 0000000000..b170e7b340 --- /dev/null +++ b/meta/packages/dbus/dbus_1.2.14.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | include dbus.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | inherit update-rc.d | ||
6 | |||
7 | SRC_URI += "file://fix-install-daemon.patch;patch=1 " | ||