PREIN
/bin/sh
# here, we put things that we have moved around (like directories)
# that need to be cleaned up prior to the RPM's installation.
# Ugly. Necessary.
if [ ! -L /usr/X11R6/lib/X11/xkb/compiled ]; then
if [ -d /usr/X11R6/lib/X11/xkb/compiled ]; then
mkdir -p /var/lib/xkb 2>/dev/null
mv -f /usr/X11R6/lib/X11/xkb/compiled/* /var/lib/xkb /var/lib/xkb 2>/dev/null || :
rmdir /usr/X11R6/lib/X11/xkb/compiled 2> /dev/null
ln -sf ../../../../../var/lib/xkb /usr/X11R6/lib/X11/xkb/compiled 2>/dev/null || :
fi
fi
#%postun
#if [ $1 = 0 ]; then
# /sbin/chkconfig --del xdm
#fi
POSTIN
/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus; fi
POSTUN
/bin/sh
if [ "$1" = 0 -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus; fi
#%post
#/sbin/chkconfig --add xdm