Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > 126ee6139e298e37faea74bf725be91d > scriptlet

Default-kde4-config-5-0.20150505.8.mga7.noarch.rpm

POSTIN

/bin/sh
if [ -f /etc/kde4rc -a ! -h /etc/kde4rc ]; then
    mv /etc/kde4rc /etc/kde4rc.rpmold
fi
update-alternatives --install /etc/kde4rc kde4-config /var/lib/mageia/kde4-profiles/Default/kde4rc 20

mkdir -p /usr/share/config/kdm
if [ -f /usr/share/config/kdm/kdmrc -a ! -h /usr/share/config/kdm/kdmrc ]; then
	mv /usr/share/config/kdm/kdmrc /usr/share/config/kdm/kdmrc.rpmold
fi
if [ -f /usr/share/config/kdm/backgroundrc -a ! -h /usr/share/config/kdm/backgroundrc ]; then
	mv /usr/share/config/kdm/backgroundrc /usr/share/config/kdm/backgroundrc.rpmold
fi
update-alternatives --install \
	/usr/share/config/kdm/kdmrc kdm4-config \
	/var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc \
	10 \
	--slave \
	/usr/share/config/kdm/backgroundrc \
	kdm4-background-config \
	/var/lib/mageia/kde4-profiles/Default/share/config/kdm/backgroundrc
ccp -b -i --type ini --set NoOrphans -o /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc -n /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc.rpmnew > /dev/null 2>&1

# As kdmrc is a config(noreplace), make sure that the poweroff commande is OK.
perl -MMDK::Common -e 'update_gnomekderc("/var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc", Shutdown, HaltCmd, "/usr/bin/poweroff")'
# Switch user id boundary to 1000+
perl -MMDK::Common -e 'update_gnomekderc("/var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc", "X-*-Greeter", MinShowUID, 1000)'

POSTUN

/bin/sh
if [ "$1" = "0" ]; then
    if ! [ -e /var/lib/mageia/kde4-profiles/Default/kde4rc ]; then
        update-alternatives --remove kde4-config /var/lib/mageia/kde4-profiles/Default/kde4rc
    fi
    if ! [ -e /var/lib/mageia/kde4-profiles/Default/share/config/kdmrc ]; then
        update-alternatives --remove kdm4-config /var/lib/mageia/kde4-profiles/Default/share/config/kdmrc
    fi
fi


#------------------------------------------------------------------------------