Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > afdb2031008e5b46aaa817ac0737493e > scriptlet

xfs-1.0.2-13mdv2007.0.x86_64.rpm

PREIN

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

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

PREUN

/bin/sh
/usr/share/rpm-helper/del-service xfs $1 xfs 
# FIXME: it can't really remove the xfs service because it is needed
#        by the dm service
true

POSTIN

/bin/sh
if [ ! -d /usr/X11R6/lib/X11 ]; then
   echo "creating /usr/X11R6/lib/X11 linked to /usr/lib/X11 for commercial applications"
   mkdir -p /usr/X11R6/lib
   ln -s ../../lib64/X11 /usr/X11R6/lib/X11
elif [ ! -d /usr/X11R6/lib/X11/fs ]; then
   echo "creating /usr/X11R6/lib/X11/fs linked to /usr/lib/X11/fs for commercial applications"
   ln -s ../../../lib64/X11/fs /usr/X11R6/lib/X11/fs
fi

# CHECKME: do drakfonts still exist? the dependency on chkfontpath at this point
#          is not good (as it creates a circular dependency involving PreReqs)

/usr/share/rpm-helper/add-service xfs $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 xfs $1 xfs

Triggers

XFree86-xfs

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