PREIN
/bin/sh
/usr/share/rpm-helper/add-user XFree86 $1 xfs /etc/X11/fs /bin/false
# for msec high security levels
/usr/share/rpm-helper/add-group XFree86 $1 xgrp xfs
PREUN
/bin/sh
/usr/share/rpm-helper/del-service XFree86 $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 ! grep "$i" /etc/X11/fs/config >/dev/null 2>/dev/null ; then
/usr/sbin/chkfontpath -q -a "$i"
fi
done
fi
/usr/share/rpm-helper/add-service XFree86 $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 XFree86 $1 xfs