[Pkg-utopia-maintainers] Bug#467224: I don't have the symlink changing code in

Tim Richardson tim at tim-richardson.net
Sun Feb 24 07:00:53 UTC 2008


below is /var/lib/dpkg/info/dbus.postinst

quite different to the sid version I have on another machine (the
version in this email is from lenny, of course).



#!/bin/sh
# -*- coding: utf-8 -*-
# Post-installation script for D-BUS
# Copyright © 2003 Colin Walters <walters at debian.org>
# Copyright © 2006 Sjoerd Simons <sjoerd at debian.org>

set -e

MESSAGEUSER=messagebus
MESSAGEHOME=/var/run/dbus
LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper

case "$1" in
    configure)
	adduser --system \
	        --home "$MESSAGEHOME" \
                --no-create-home \
                --disabled-password \
        	--group "$MESSAGEUSER"

	chown "$MESSAGEUSER":"$MESSAGEUSER" "$MESSAGEHOME" 

	if ! dpkg-statoverride --list "$LAUNCHER" > /dev/null 2>&1; then
		chown root:"$MESSAGEUSER" "$LAUNCHER"
		chmod 4754 "$LAUNCHER"
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/dbus" ]; then
	update-rc.d dbus defaults >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d dbus start || exit $?
	else
		/etc/init.d/dbus start || exit $?
	fi
fi
# End automatically added section


exit 0

-- 
Tim Richardson <tim at tim-richardson.net>






More information about the Pkg-utopia-maintainers mailing list