Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 5caa8a69c7bbe85e840e4d136c96d1c0 > scriptlet

gnome-games-1.4.0.3-6mdk.i586.rpm

PREIN

/bin/sh
# 1 means first time install
if [ "$1" = "1" ]; then
	[ -d /var/lib/games ] || mkdir -p /var/lib/games
	for i in gnibbles.1.0 gnibbles.1.1 gnibbles.2.0 gnibbles.2.1 \
		gnibbles.3.0 gnibbles.3.1 gnibbles.4.0 gnibbles.4.1 \
		gnobots.safe gnobots.unsafe gnobots2.classic_robots-safe \
		gnobots2.classic_robots gnobots2.nightmare-safe \
		gnobots2.nightmare gnobots2.robots2-safe gnobots2.robots2 \
		gnobots2.robots2_easy-safe gnobots2.robots2_easy \
		gnobots2.robots_with_safe_teleport-safe \
		gnobots2.robots_with_safe_teleport gnome-stones \
		gnomine.Biiiig gnomine.Custom gnomine.Medium gnomine.Tiny \
		gnotravex.2x2 gnotravex.3x3 gnotravex.4x4 gnotravex.5x5 \
		gnotravex.6x6 gtali iagno.b1 iagno.b2 iagno.b3 iagno.w1 \
		iagno.w2 iagno.w3 mahjongg same-gnome
	do
		touch /var/lib/games/$i.scores
		chown games.games /var/lib/games/$i.scores
		chmod 664 /var/lib/games/$i.scores
	done
	for i in `find /var/lib/games -name "*.scores" -a -empty`
	do
		echo "100.000000 `date +%s` gnome" >> $i
		echo "150.000000 `date +%s` gnome" >> $i
		echo "200.000000 `date +%s` gnome" >> $i
	done
fi

POSTIN

/bin/sh
/sbin/ldconfig
if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update || true ; fi
## menu
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi

POSTUN

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