summaryrefslogtreecommitdiffstats
path: root/meta/packages/dbus/dbus-1.0.1
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-21 14:20:37 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-21 14:20:37 +0000
commit0405bf5645e53ae375fd54e8f95b140b374421e0 (patch)
tree6d0fe0c651f550cb5977eb2f617a7a2941c5230c /meta/packages/dbus/dbus-1.0.1
parent902bcfa157f48a012a8c3135d45d3f9479e63136 (diff)
downloadpoky-0405bf5645e53ae375fd54e8f95b140b374421e0.tar.gz
Add dbus+dbus-native 1.01, dbus-glib+dbus-glib-native 0.72 from OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@929 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/dbus/dbus-1.0.1')
-rw-r--r--meta/packages/dbus/dbus-1.0.1/cross.patch10
-rw-r--r--meta/packages/dbus/dbus-1.0.1/dbus-1.init96
-rw-r--r--meta/packages/dbus/dbus-1.0.1/fix-install-daemon.patch13
3 files changed, 119 insertions, 0 deletions
diff --git a/meta/packages/dbus/dbus-1.0.1/cross.patch b/meta/packages/dbus/dbus-1.0.1/cross.patch
new file mode 100644
index 0000000000..268a3ae3de
--- /dev/null
+++ b/meta/packages/dbus/dbus-1.0.1/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.0.1/dbus-1.init b/meta/packages/dbus/dbus-1.0.1/dbus-1.init
new file mode 100644
index 0000000000..38e7574ad5
--- /dev/null
+++ b/meta/packages/dbus/dbus-1.0.1/dbus-1.init
@@ -0,0 +1,96 @@
1#! /bin/sh
2# -*- coding: utf-8 -*-
3# Debian init.d script for D-BUS
4# Copyright © 2003 Colin Walters <walters@debian.org>
5
6set -e
7
8DAEMON=/usr/bin/dbus-daemon
9NAME=dbus
10DAEMONUSER=messagebus
11PIDDIR=/var/run/dbus
12PIDFILE=$PIDDIR/pid
13UUIDDIR=/var/lib/dbus
14DESC="system message bus"
15EVENTDIR=/etc/dbus-1/event.d
16
17test -x $DAEMON || exit 0
18
19# Source defaults file; edit that file to configure this script.
20ENABLED=1
21PARAMS=""
22if [ -e /etc/default/dbus ]; then
23 . /etc/default/dbus
24fi
25
26test "$ENABLED" != "0" || exit 0
27
28start_it_up()
29{
30 if [ ! -d $PIDDIR ]; then
31 mkdir -p $PIDDIR
32 chown $DAEMONUSER $PIDDIR
33 chgrp $DAEMONUSER $PIDDIR
34 fi
35 if [ -e $PIDFILE ]; then
36 PIDDIR=/proc/$(cat $PIDFILE)
37 if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then
38 echo "$DESC already started; not starting."
39 else
40 echo "Removing stale PID file $PIDFILE."
41 rm -f $PIDFILE
42 fi
43 fi
44
45 if [ ! -d $UUIDDIR ]; then
46 mkdir -p $UUIDDIR
47 chown $DAEMONUSER $UUIDDIR
48 chgrp $DAEMONUSER $UUIDDIR
49 fi
50
51 dbus-uuidgen --ensure
52
53 echo -n "Starting $DESC: "
54 start-stop-daemon --start --quiet --pidfile $PIDFILE \
55 --user $DAEMONUSER --exec $DAEMON -- --system $PARAMS
56 echo "$NAME."
57 if [ -d $EVENTDIR ]; then
58 run-parts --arg=start $EVENTDIR
59 fi
60}
61
62shut_it_down()
63{
64 if [ -d $EVENTDIR ]; then
65 run-parts --reverse --arg=stop $EVENTDIR
66 fi
67 echo -n "Stopping $DESC: "
68 start-stop-daemon --stop --quiet --pidfile $PIDFILE \
69 --user $DAEMONUSER
70 # We no longer include these arguments so that start-stop-daemon
71 # can do its job even given that we may have been upgraded.
72 # We rely on the pidfile being sanely managed
73 # --exec $DAEMON -- --system $PARAMS
74 echo "$NAME."
75 rm -f $PIDFILE
76}
77
78case "$1" in
79 start)
80 start_it_up
81 ;;
82 stop)
83 shut_it_down
84 ;;
85 restart|force-reload)
86 shut_it_down
87 sleep 1
88 start_it_up
89 ;;
90 *)
91 echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
92 exit 1
93 ;;
94esac
95
96exit 0
diff --git a/meta/packages/dbus/dbus-1.0.1/fix-install-daemon.patch b/meta/packages/dbus/dbus-1.0.1/fix-install-daemon.patch
new file mode 100644
index 0000000000..c31786357d
--- /dev/null
+++ b/meta/packages/dbus/dbus-1.0.1/fix-install-daemon.patch
@@ -0,0 +1,13 @@
1Index: 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