Sophie

Sophie

distrib > Mandriva > cs4.0 > x86_64 > by-pkgid > 9e08eb40f562dd5f2690d2d703d8ad62 > scriptlet

xorg-x11-xfs-6.9.0-5.9.20060mdk.x86_64.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user xorg-x11 $1 xfs /etc/X11/fs /bin/false 

# for msec high security levels
/usr/share/rpm-helper/add-group xorg-x11 $1 xgrp xfs

PREUN

/bin/sh
/usr/share/rpm-helper/del-service xorg-x11 $1 xfs

POSTIN

/bin/sh
# as we don't overwrite the config file, we may need to add those paths
# (2=update)
if [ "$1" -gt 1 ]; then
	for i in /usr/X11R6/lib/X11/fonts/drakfont \
			/usr/X11R6/lib/X11/fonts/pcf_drakfont:unscaled \
			/usr/X11R6/lib/X11/fonts/TTF
	do
		if ls `dirname $i`/`basename $i :unscaled`/*.* >/dev/null 2>/dev/null
		then
			if ! grep "$i" /etc/X11/fs/config >/dev/null 2>/dev/null ; then
				/usr/sbin/chkfontpath -q -a "$i"
			fi
		else
			if grep "$i" /etc/X11/fs/config >/dev/null 2>/dev/null ; then
				/usr/sbin/chkfontpath -q -r "$i"
			fi
		fi
	done
fi
/usr/share/rpm-helper/add-service xorg-x11 $1 xfs 

# handle init sequence change
if [ -f /etc/rc5.d/S90xfs ] && grep -q 'chkconfig: 2345 20 10' /etc/init.d/xfs; then
	/sbin/chkconfig --add xfs
fi

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user xorg-x11 $1 xfs

Triggers

XFree86-xfs

/bin/sh
/usr/share/rpm-helper/add-service xorg-x11 $1 xfs 
if [ ! -f /var/lock/subsys/xfs ]
then
  /sbin/service xfs start
fi