aboutsummaryrefslogtreecommitdiffstats
path: root/games/gnomegames2/pkg-install
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-06-16 13:34:00 +0800
committermarcus <marcus@FreeBSD.org>2003-06-16 13:34:00 +0800
commitd23b937d7961667d6f99230d270bfc18b7f2f3b7 (patch)
tree989f01fb363c8a5c5d4c71ff02540ad71d0635f5 /games/gnomegames2/pkg-install
parent890918ca007d59cdaab32101ab08f529a6e9d746 (diff)
downloadfreebsd-ports-gnome-d23b937d7961667d6f99230d270bfc18b7f2f3b7.tar.gz
freebsd-ports-gnome-d23b937d7961667d6f99230d270bfc18b7f2f3b7.tar.zst
freebsd-ports-gnome-d23b937d7961667d6f99230d270bfc18b7f2f3b7.zip
Don't delete score files if they contain data. This should keep people
from losing their high scores after upgrading gnomegames2.
Diffstat (limited to 'games/gnomegames2/pkg-install')
-rw-r--r--games/gnomegames2/pkg-install25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/gnomegames2/pkg-install b/games/gnomegames2/pkg-install
new file mode 100644
index 000000000000..c754797a5caf
--- /dev/null
+++ b/games/gnomegames2/pkg-install
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if [ -n "${PACKAGE_BUILDING}" ]; then
+ exit 0
+fi
+
+SCORES="glines.scores gnibbles.1.0.scores gnibbles.1.1.scores gnibbles.2.0.scores gnibbles.2.1.scores gnibbles.3.0.scores gnibbles.3.1.scores gnibbles.4.0.scores gnibbles.4.1.scores gnobots2.classic_robots-safe.scores gnobots2.classic_robots-super-safe.scores gnobots2.classic_robots.scores gnobots2.nightmare-safe.scores gnobots2.nightmare-super-safe.scores gnobots2.nightmare.scores gnobots2.robots2-safe.scores gnobots2.robots2-super-safe.scores gnobots2.robots2.scores gnobots2.robots2_easy-safe.scores gnobots2.robots2_easy-super-safe.scores gnobots2.robots2_easy.scores gnobots2.robots_with_safe_teleport-safe.scores gnobots2.robots_with_safe_teleport-super-safe.scores gnobots2.robots_with_safe_teleport.scores gnome-stones.scores gnome-xbill.scores gnometris.scores gnomine.Biiiig.scores gnomine.Custom.scores gnomine.Medium.scores gnomine.Tiny.scores gnotravex.2x2.scores gnotravex.3x3.scores gnotravex.4x4.scores gnotravex.5x5.scores gnotravex.6x6.scores gnotski.1.scores gnotski.11.scores gnotski.12.scores gnotski.13.scores gnotski.14.scores gnotski.15.scores gnotski.16.scores gnotski.17.scores gnotski.2.scores gnotski.21.scores gnotski.22.scores gnotski.23.scores gnotski.24.scores gnotski.25.scores gnotski.26.scores gnotski.3.scores gnotski.4.scores gnotski.5.scores gnotski.6.scores gnotski.7.scores gtali.scores iagno.b1.scores iagno.b2.scores iagno.b3.scores iagno.w1.scores iagno.w2.scores iagno.w3.scores mahjongg.difficult.scores mahjongg.easy.scores same-gnome.scores"
+
+if [ "$1" = "MAINTAINER" ]; then
+ for i in ${SCORES}; do
+ echo "@unexec [ -s %D/share/gnome/games/${i} ] || rm -f %D/share/gnome/games/${i}"
+ done
+ exit 0
+fi
+
+if [ "$2" = "POST-INSTALL" ]; then
+ mkdir -p ${PKG_PREFIX}/share/gnome/games
+ for i in ${SCORES}; do
+ if [ ! -f ${PKG_PREFIX}/share/gnome/games/${i} ]; then
+ touch -f ${PKG_PREFIX}/share/gnome/games/${i}
+ chown games:games ${PKG_PREFIX}/share/gnome/games/${i}
+ chmod 664 ${PKG_PREFIX}/share/gnome/games/${i}
+ fi
+ done
+fi