From: Victor Martinez Date: Thu, 24 Dec 2009 18:20:49 +0000 (+0100) Subject: dbus: Initial import (verified compilation) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=2ac25e180ffa7564aa3058bc2a7f533fa0872868;p=attic%2Fports%2Fopt-cross.git dbus: Initial import (verified compilation) --- diff --git a/dbus/.footprint b/dbus/.footprint new file mode 100644 index 0000000..1aba4f2 --- /dev/null +++ b/dbus/.footprint @@ -0,0 +1,72 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/X11/ +drwxr-xr-x root/root etc/X11/xinit/ +drwxr-xr-x root/root etc/X11/xinit/xinitrc.d/ +-rwxr-xr-x root/root etc/X11/xinit/xinitrc.d/30-dbus.launch +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/dbus +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/dbus-cleanup-sockets +-rwxr-xr-x root/root usr/bin/dbus-launch +-rwxr-xr-x root/root usr/bin/dbus-monitor +-rwxr-xr-x root/root usr/bin/dbus-send +-rwxr-xr-x root/root usr/bin/dbus-uuidgen +drwxr-xr-x root/root usr/etc/ +drwxr-xr-x root/root usr/etc/dbus-1/ +-rw-r--r-- root/root usr/etc/dbus-1/session.conf +drwxr-xr-x root/root usr/etc/dbus-1/session.d/ +-rw-r--r-- root/root usr/etc/dbus-1/system.conf +drwxr-xr-x root/root usr/etc/dbus-1/system.d/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/dbus-1.0/ +drwxr-xr-x root/root usr/include/dbus-1.0/dbus/ +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-address.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-bus.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-connection.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-errors.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-macros.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-memory.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-message.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-misc.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-pending-call.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-protocol.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-server.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-shared.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-signature.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-threads.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus-types.h +-rw-r--r-- root/root usr/include/dbus-1.0/dbus/dbus.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/dbus-1.0/ +drwxr-xr-x root/root usr/lib/dbus-1.0/include/ +drwxr-xr-x root/root usr/lib/dbus-1.0/include/dbus/ +-rw-r--r-- root/root usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h +drwxr-xr-x root/root usr/lib/dbus/ +drwxr-xr-x root/root usr/lib/dbus/dbus-1/ +-rwsr-x--- root/messagebus usr/lib/dbus/dbus-daemon-launch-helper +-rwxr-xr-x root/root usr/lib/libdbus-1.la +lrwxrwxrwx root/root usr/lib/libdbus-1.so -> libdbus-1.so.3.4.0 +lrwxrwxrwx root/root usr/lib/libdbus-1.so.3 -> libdbus-1.so.3.4.0 +-rwxr-xr-x root/root usr/lib/libdbus-1.so.3.4.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/dbus-1.pc +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/dbus-cleanup-sockets.1.gz +-rw-r--r-- root/root usr/man/man1/dbus-daemon.1.gz +-rw-r--r-- root/root usr/man/man1/dbus-launch.1.gz +-rw-r--r-- root/root usr/man/man1/dbus-monitor.1.gz +-rw-r--r-- root/root usr/man/man1/dbus-send.1.gz +-rw-r--r-- root/root usr/man/man1/dbus-uuidgen.1.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/dbus-daemon +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/dbus-1/ +drwxr-xr-x root/root usr/share/dbus-1/services/ +drwxr-xr-x root/root usr/share/dbus-1/system-services/ +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/dbus/ +drwxr-xr-x root/root var/run/ +drwxr-xr-x root/root var/run/dbus/ diff --git a/dbus/.md5sum b/dbus/.md5sum new file mode 100644 index 0000000..f396e61 --- /dev/null +++ b/dbus/.md5sum @@ -0,0 +1,3 @@ +23bc5ff22fe4f9a208d65fbbfd489ad9 30-dbus.launch +c7a47b851ebe02f6726b65b78d1b730b dbus-1.2.16.tar.gz +dd882e45b9397a5dbf8650057ee9a340 rc.dbus diff --git a/dbus/30-dbus.launch b/dbus/30-dbus.launch new file mode 100755 index 0000000..6d2a7de --- /dev/null +++ b/dbus/30-dbus.launch @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ -x /usr/bin/dbus-launch ] +then + eval `dbus-launch --sh-syntax --exit-with-session` + export DBUS_SESSION_BUS_ADDRESS + export DBUS_SESSION_BUS_PID +fi diff --git a/dbus/Pkgfile b/dbus/Pkgfile new file mode 100644 index 0000000..9b7a71d --- /dev/null +++ b/dbus/Pkgfile @@ -0,0 +1,33 @@ +# Description: A message bus system +# URL: http://freedesktop.org/wiki/Software/dbus +# Packager: Matt Housh, jaeger at crux dot nu +# Maintainer: Lucas Hazel, lucas at die dot net dot au +# Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org +# Depends on: expat + +name=dbus +version=1.2.16 +release=1 +source=(http://dbus.freedesktop.org/releases/dbus/$name-$version.tar.gz \ +rc.dbus 30-dbus.launch) + +build() { + cd $name-$version + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --with-dbus-daemondir=/usr/sbin \ + --localstatedir=/var \ + --libexecdir=/usr/lib/dbus \ + --mandir=/usr/man \ + --disable-static \ + --with-dbus-user=messagebus \ + --with-xml=expat \ + --with-system-pid-file=/var/run/$name/$name.pid \ + --without-x + make + make DESTDIR=$PKG install + install -D -m 0755 $SRC/rc.dbus $PKG/etc/rc.d/dbus + install -D -m 0755 $SRC/30-dbus.launch \ + $PKG/etc/X11/xinit/xinitrc.d/30-dbus.launch +} diff --git a/dbus/post-install b/dbus/post-install new file mode 100755 index 0000000..25fe391 --- /dev/null +++ b/dbus/post-install @@ -0,0 +1,2 @@ +#!/bin/sh +dbus-uuidgen --ensure diff --git a/dbus/rc.dbus b/dbus/rc.dbus new file mode 100644 index 0000000..b333247 --- /dev/null +++ b/dbus/rc.dbus @@ -0,0 +1,28 @@ +#!/bin/sh +# +# /etc/rc.d/dbus: start/stop dbus messagebus daemon +# + +case $1 in + start) + if [ ! -f /var/lib/dbus/machine-id ] + then + /usr/bin/dbus-uuidgen --ensure + fi + /usr/sbin/dbus-daemon --system + ;; + stop) + killall -q /usr/sbin/dbus-daemon + rm -f /var/run/dbus/dbus.pid + ;; + restart) + $0 stop + sleep 2 + $0 start + ;; + *) + echo "Usage: $0 [start|stop|restart]" + ;; +esac + +# End of file