wok diff dbus/receipt @ rev 903

Up: freetype (2.3.6)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 14 18:58:30 2008 +0200 (2008-06-14)
parents
children 050151a9f32f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dbus/receipt	Sat Jun 14 18:58:30 2008 +0200
     1.3 @@ -0,0 +1,75 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dbus"
     1.7 +VERSION="1.2.1"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="D-Bus is a message bus system."
    1.10 +DEPENDS="expat xorg-libX11"
    1.11 +BUILD_DEPENDS="xorg-libX11-dev"
    1.12 +MAINTAINER="pankso@slitaz.org"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.freedesktop.org/wiki/Software/dbus"
    1.15 +WGET_URL="http://dbus.freedesktop.org/releases/dbus/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	./configure \
    1.22 +		--prefix=/usr \
    1.23 +		--libexecdir=/usr/lib/dbus \
    1.24 +		--sysconfdir=/etc \
    1.25 +		--localstatedir=/var \
    1.26 +		--mandir=/usr/share/man \
    1.27 +		$CONFIGURE_ARGS
    1.28 +	make
    1.29 +	make DESTDIR=$PWD/_pkg install
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	mkdir -p $fs/usr/lib $fs/usr/share
    1.36 +	cp -a $_pkg/etc $fs
    1.37 +	cp -a $_pkg/var $fs
    1.38 +	cp -a $_pkg/usr/bin $fs/usr
    1.39 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.40 +	cp -a $_pkg/usr/lib/dbus $fs/usr/lib
    1.41 +	# Remove helper (600 Kb).
    1.42 +	rm $fs/usr/lib/dbus/dbus-daemon-launch-helper
    1.43 +	cp -a $_pkg/usr/share/dbus* $fs/usr/share
    1.44 +	# Init script
    1.45 +	cp -a stuff/etc $fs
    1.46 +	chown -R root.root $fs
    1.47 +}
    1.48 +
    1.49 +pre_install()
    1.50 +{
    1.51 +	local root
    1.52 +	root=$1
    1.53 +	# Go for echoing on configuration files if any messagebus user
    1.54 +	# was found.
    1.55 +	if ! grep -q 'messagebus' $root/etc/passwd; then
    1.56 +		echo -n "Adding user: messagebus..."
    1.57 +		echo 'messagebus:x:25:25:DBUS Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
    1.58 +		echo 'messagebus:!:14013:0:99999:7:::' >> $root/etc/shadow
    1.59 +		echo 'messagebus:x:25:' >> $root/etc/group
    1.60 +		echo 'messagebus:!::' >> $root/etc/gshadow
    1.61 +		status
    1.62 +	fi
    1.63 +	if ! grep -q ^DBUS_OPTIONS $root/etc/daemons.conf; then
    1.64 +		echo -n "Configuring $root/etc/daemons.conf..."
    1.65 +		cat >> $root/etc/daemons.conf << "EOT"
    1.66 +# DBUS daemon options.
    1.67 +DBUS_OPTIONS="--system"
    1.68 +
    1.69 +EOT
    1.70 +		status
    1.71 +	fi
    1.72 +}
    1.73 +
    1.74 +pre_remove()
    1.75 +{
    1.76 +	/etc/init.d/dbus stop
    1.77 +	deluser messagebus
    1.78 +}