2011-08-31 01:57:54 +08:00
|
|
|
#
|
|
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-09-09 12:17:16 +08:00
|
|
|
# maintainer: abveritas@chakra-project.org
|
2012-01-24 08:28:59 +08:00
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgname=dbus-core
|
2013-07-15 17:11:07 +08:00
|
|
|
pkgver=1.6.12
|
|
|
|
pkgrel=1
|
2012-09-09 12:17:16 +08:00
|
|
|
pkgdesc="Freedesktop.org message bus system"
|
2010-03-13 23:25:19 +08:00
|
|
|
url="http://www.freedesktop.org/Software/dbus"
|
2012-09-09 12:17:16 +08:00
|
|
|
arch=(i686 x86_64)
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('GPL' 'custom')
|
2012-10-04 07:38:42 +08:00
|
|
|
depends=('expat' 'coreutils' 'filesystem' 'shadow') # shadow for install scriptlet FS#29341
|
|
|
|
makedepends=('libx11' 'systemd')
|
2010-03-13 23:25:19 +08:00
|
|
|
options=(!libtool)
|
2012-09-09 12:17:16 +08:00
|
|
|
install=dbus.install
|
2013-07-15 17:11:07 +08:00
|
|
|
source=(http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz
|
|
|
|
"systemd-user-session.patch")
|
|
|
|
md5sums=('a70edc50524f258eaf5c9a9994ed8748'
|
|
|
|
'd8a1bd529b3ddca671ee1a695a143db9')
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
2012-09-09 12:17:16 +08:00
|
|
|
cd dbus-$pkgver
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/dbus-1.0 --with-dbus-user=81 \
|
|
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
|
|
--with-system-socket=/run/dbus/system_bus_socket \
|
|
|
|
--enable-inotify --disable-dnotify \
|
|
|
|
--disable-verbose-mode --disable-static \
|
|
|
|
--disable-tests --disable-asserts \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
|
|
--enable-systemd
|
2013-07-15 17:11:07 +08:00
|
|
|
patch -p1 < "$srcdir/systemd-user-session.patch"
|
2010-11-12 05:40:31 +08:00
|
|
|
make
|
2011-08-31 01:57:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package(){
|
2012-09-09 12:17:16 +08:00
|
|
|
cd dbus-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
rm -f "$pkgdir/usr/bin/dbus-launch"
|
|
|
|
rm -f "$pkgdir/usr/share/man/man1/dbus-launch.1"
|
|
|
|
rm -rf "$pkgdir/var/run"
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
#Fix configuration file
|
|
|
|
sed -i -e 's|<user>81</user>|<user>dbus</user>|' "$pkgdir/etc/dbus-1/system.conf"
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
install -dm755 "$pkgdir/usr/share/licenses/dbus-core"
|
|
|
|
install -m644 COPYING "$pkgdir/usr/share/licenses/dbus-core/"
|
2011-06-19 04:44:01 +08:00
|
|
|
}
|