Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > main > by-pkgid > da25d76a812696448a27ffa27f2d6079 > scriptlet

gnome-games-2.4.2-2mdk.i586.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 \
	gnome-stones \
	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" ]; then 
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
 for SCHEMA in aisleriot blackjack gataxx glines gnect gnibbles gnobots2 gnome-stones gnometris gnomine gnotravex gtali iagno mahjongg same-gnome ; do 
   gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$SCHEMA.schemas > /dev/null
 done
fi

POSTIN

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

POSTUN

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