Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 286c0ec692701a2121e1a5b9e3991161 > scriptlet

syslog-ng-3.1.4-4.fc14.i686.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ] ; then
    # Package removal, not upgrade
    /sbin/service syslog-ng stop > /dev/null 2>&1
    /sbin/chkconfig --del syslog-ng
fi

POSTIN

/bin/sh
/sbin/chkconfig --add syslog-ng

POSTUN

/bin/sh
if [ $1 -ge 1 ] ; then
    # Package upgrade, not uninstall
    /sbin/service syslog-ng condrestart >/dev/null 2>&1
fi

Triggers

vim-common

/bin/sh
VIMVERNEW=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | tail -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
[ -d /usr/share/vim/vim${VIMVERNEW}/syntax ] && \
    cd /usr/share/vim/vim${VIMVERNEW}/syntax && \
    ln -sf ../../../syslog-ng/syslog-ng.vim . || :

vim-common

/bin/sh
VIMVEROLD=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | head -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
[ $2 = 0 ] && rm -f /usr/share/vim/vim${VIMVEROLD}/syntax/syslog-ng.vim || :

vim-common

/bin/sh
VIMVEROLD=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | head -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
VIMVERNEW=`rpm -q --qf='%{epoch}:%{version}\n' vim-common | sort | tail -n 1 | sed -e 's/[0-9]*://' | sed -e 's/\.[0-9]*$//' | sed -e 's/\.//'`
if [ $1 = 1 ]; then
    rm -f /usr/share/vim/vim${VIMVEROLD}/syntax/syslog-ng.vim || :
    [ -d /usr/share/vim/vim${VIMVERNEW}/syntax ] && \
        cd /usr/share/vim/vim${VIMVERNEW}/syntax && \
        ln -sf ../../../syslog-ng/syslog-ng.vim . || :
fi