Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 543683e3f956a590eb25740f31433353 > scriptlet

gnome-games-2.18.0.1-1mdv2007.1.x86_64.rpm

PREIN

/bin/sh
[ -d /var/lib/games ] || mkdir -p /var/lib/games
for i in \
	glines \
	gnibbles.1.0 \
	gnibbles.1.1 \
	gnibbles.2.0 \
	gnibbles.2.1 \
	gnibbles.3.0 \
	gnibbles.3.1 \
	gnibbles.4.0 \
	gnibbles.4.1 \
	gnobots2.classic_robots-safe \
	gnobots2.classic_robots \
	gnobots2.classic_robots-super-safe \
	gnobots2.nightmare-safe \
	gnobots2.nightmare \
	gnobots2.nightmare-super-safe \
	gnobots2.robots2_easy-safe \
	gnobots2.robots2_easy \
	gnobots2.robots2_easy-super-safe \
	gnobots2.robots2-safe \
	gnobots2.robots2 \
	gnobots2.robots2-super-safe \
	gnobots2.robots_with_safe_teleport-safe \
	gnobots2.robots_with_safe_teleport \
	gnobots2.robots_with_safe_teleport-super-safe \
	gnometris \
	gnomine.Custom \
	gnomine.Large \
	gnomine.Medium \
	gnomine.Small \
	gnotravex.2x2 \
	gnotravex.3x3 \
	gnotravex.4x4 \
	gnotravex.5x5 \
	gnotravex.6x6 \
	gnotski.11 \
	gnotski.12 \
	gnotski.13 \
	gnotski.14 \
	gnotski.15 \
	gnotski.16 \
	gnotski.17 \
	gnotski.1 \
	gnotski.21 \
	gnotski.22 \
	gnotski.23 \
	gnotski.24 \
	gnotski.25 \
	gnotski.26 \
	gnotski.2 \
	gnotski.3 \
	gnotski.4 \
	gnotski.5 \
	gnotski.6 \
	gnotski.7 \
	gtali \
	mahjongg.difficult \
	mahjongg.easy \
	same-gnome \
; do
	/usr/share/rpm-helper/create-file gnome-games $1 /var/lib/games/$i.scores games games 0664 
	if [ -f "/var/lib/games/$i.scores" -a ! -s "/var/lib/games/$i.scores" ]; then
	echo "0.000000 `date +%s` gnome" >> /var/lib/games/$i.scores
	fi
done

PREUN

/bin/sh
if [ "$1" = "0" -a -x /usr/bin/gconftool-2 ]; then 
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` && 
for SCHEMA in aisleriot blackjack glines gnect gnibbles gnobots2 gnometris gnomine gnotravex gnotski gtali iagno libgnomegames mahjongg same-gnome glchess ; do 
  /usr/bin/gconftool-2 --makefile-uninstall-rule  /etc/gconf/schemas/$SCHEMA.schemas > /dev/null || true 
done ; fi

POSTIN

/bin/sh
if [ -x /usr/bin/gconftool-2 ]; then 
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` &&  
for SCHEMA in aisleriot blackjack glines gnect gnibbles gnobots2 gnometris gnomine gnotravex gnotski gtali iagno libgnomegames mahjongg same-gnome glchess ; do 
  /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$SCHEMA.schemas > /dev/null || true 
done ; fi 
if [ -x /usr/bin/scrollkeeper-update ]; then 
/usr/bin/scrollkeeper-update -q || true ; fi 

if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

if [ -x /usr/bin/gtk-update-icon-cache ]; then 
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor || true; fi

POSTUN

/bin/sh
if [ "$1" = "0" -a -x /usr/bin/scrollkeeper-update ]; 
then /usr/bin/scrollkeeper-update -q || true ; fi 

if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

if [ -x /usr/bin/gtk-update-icon-cache -a -r /usr/share/icons/hicolor/index.theme ]; then 
/usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor || true ; fi