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.
mv /usr/share/config /usr/share/config.
while read old new link; do
if [ -d `dirname $old` -a ! -L $old ]; then
echo "moving $old to $new linking to $link"
if [ ! -d $new ]; then
mkdir -p $new
fi
if [ -d $old ]; then
mv -f $old/* $new
rm -rf $old
fi
#ln -sf $link $old
fi
done << EOF
/usr/share/config. /etc/kde/ ../../etc/kde
EOF
ln -sf ../../etc/kde /usr/share/config
rm -rf /usr/share/config.
POSTIN
/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
POSTUN
/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi