Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 8b03678e7c8a12b4abc5341dd744781c > scriptlet

syslog-ng-3.1.1-1.fc14.i686.rpm

PREUN

/bin/sh
if [ "$1" = 0 ]; then
	/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
	/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