PREIN
/bin/sh
[ -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 glines gnometris
do
/usr/share/rpm-helper/create-file gnome-games $1 /var/lib/games/$i.scores games games 0664
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
POSTIN
/bin/sh
for SCHEMA in freecell gataxx gnect gnometris gnomine gtali iagno mahjongg same-gnome ; do
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 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