Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 34b79d370c8e7d3265b2f10b3218c7bb > scriptlet

fvwm3-1.0.2-1.mga8.i586.rpm

POSTIN

/bin/sh
#if the file has been edited, or so, it is a regular file
#and not a symlink. So we first rename it before calling
#update-alternatives to create the symlink.
if [ -f /etc/fvwm3/system.fvwm3rc -a ! -h /etc/fvwm3/system.fvwm3rc ]; then
    mv /etc/fvwm3/system.fvwm3rc /etc/fvwm3/system.fvwm3rc.rpmold
fi
update-alternatives --install /etc/fvwm3/system.fvwm3rc fvwm3-config \
                    /etc/fvwm3/system-minimal.fvwm3rc 10

POSTUN

/bin/sh
#uninstall only
if [ $1 -eq 0 ]; then
   update-alternatives --remove fvwm3-config /etc/fvwm3/system-minimal.fvwm3rc
fi

POSTTRANS

/bin/sh
#old releases had system.fvwm3rc as file packaged in, so our symlink
#will be removed if one upgrade from those.
if ! [ -h /etc/fvwm3/system.fvwm3rc ]; then
   update-alternatives --install /etc/fvwm3/system.fvwm3rc fvwm3-config \
                    /etc/fvwm3/system-minimal.fvwm3rc 10
fi

# (ovitters) In posttrans, $1 is always equal to 1, even in the upgrade case.
# So just run this always:
if [ -e /usr/share/xsessions/09Fvwm3.desktop ]; then
        rm -rf /usr/share/xsessions/09Fvwm3.desktop
fi
if [ -e /etc/X11/dm/Sessions/09Fvwm3.desktop ]; then
        rm -rf /etc/X11/dm/Sessions/09Fvwm3.desktop
fi