summaryrefslogtreecommitdiffstats
path: root/dbus/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-08-06 14:25:41 +0200
committerpiernov <piernov@piernov.org>2012-08-06 14:25:41 +0200
commit67a3607180754e184787c9e2c9fb5a85e33ccfdd (patch)
tree5749969f91b5044dba468bb33eab88c26f5156db /dbus/Pkgfile
parent9fcefccdb91e0b8eaf45104229d4656dd1c5de7f (diff)
downloadnutyx-pakxe-67a3607180754e184787c9e2c9fb5a85e33ccfdd.tar.gz
nutyx-pakxe-67a3607180754e184787c9e2c9fb5a85e33ccfdd.tar.bz2
nutyx-pakxe-67a3607180754e184787c9e2c9fb5a85e33ccfdd.tar.xz
nutyx-pakxe-67a3607180754e184787c9e2c9fb5a85e33ccfdd.zip
dbus dans base
Diffstat (limited to 'dbus/Pkgfile')
-rwxr-xr-xdbus/Pkgfile60
1 files changed, 60 insertions, 0 deletions
diff --git a/dbus/Pkgfile b/dbus/Pkgfile
new file mode 100755
index 000000000..826b50cb5
--- /dev/null
+++ b/dbus/Pkgfile
@@ -0,0 +1,60 @@
+# Description: Système de messages pour les bus
+# URL: http://dbus.freedesktop.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: xorg-libx11
+
+name=dbus
+version=1.6.4
+release=1
+source=(http://dbus.freedesktop.org/releases/dbus/$name-$version.tar.gz
+ session-local.conf)
+
+build() {
+ source /etc/blfs-bootscripts
+ if [ -f $PKGMK_SOURCE_DIR/$scripts-$scriptsversion.tar.bz2 ]; then
+ cp $PKGMK_SOURCE_DIR/$scripts-$scriptsversion.tar.bz2 .
+ else
+ wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+ fi
+ tar xvf $scripts-$scriptsversion.tar.bz2
+
+ cd $name-$version
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/lib/dbus-1.0 \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --enable-systemd \
+ --enable-x11-autolaunch \
+ --with-x \
+ --with-xml=expat \
+ --with-system-pid-file=/var/run/dbus.pid \
+ --with-system-socket=/var/run/dbus/system_bus_socket \
+ --with-session-socket-dir=/tmp \
+ --with-dbus-user=messagebus \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system
+
+ make
+ make DESTDIR=$PKG install
+ mkdir -p $PKG/etc/dbus-1
+ mv ../session-local.conf $PKG/etc/dbus-1/
+
+# rmdir $PKG/usr/lib/dbus-1.0/dbus-1
+
+ cd ../$scripts-$scriptsversion
+ make DESTDIR=$PKG install-dbus
+ mv $PKG/etc/rc.d/rc2.d/S{29,15}dbus
+ mv $PKG/etc/rc.d/rc3.d/S{29,15}dbus
+ mv $PKG/etc/rc.d/rc4.d/S{29,15}dbus
+ mv $PKG/etc/rc.d/rc5.d/S{29,15}dbus
+ mv $PKG/etc/rc.d/rc0.d/K{30,85}dbus
+ mv $PKG/etc/rc.d/rc6.d/K{30,85}dbus
+ mv $PKG/etc/rc.d/rc1.d/K{30,85}dbus
+ sed -i "s/dbus\/pid/dbus.pid/" $PKG/etc/rc.d/init.d/dbus
+ mkdir -p $PKG/usr/lib/dbus-1.0/services
+ mkdir -p $PKG/usr/share/dbus-1/services
+ mkdir -p $PKG/etc/dbus-1/system.d/
+ mkdir -p $PKG/etc/dbus-1/session.d/
+ rm -r $PKG/usr/share/doc
+}