summaryrefslogtreecommitdiff
path: root/games/sokoban/pkg-install
diff options
context:
space:
mode:
authorMark Pulford <markp@FreeBSD.org>2002-06-05 09:59:57 +0000
committerMark Pulford <markp@FreeBSD.org>2002-06-05 09:59:57 +0000
commite56553d416ef479503e1d556a7670775cfc1bbbc (patch)
tree21c689d83062182b5dae7bd83665510dc60183ee /games/sokoban/pkg-install
parentUpdate to the latest, 0.21. This version contains many changes, (diff)
Improved high score handling
Prompted by PR: 37338
Notes
Notes: svn path=/head/; revision=60641
Diffstat (limited to 'games/sokoban/pkg-install')
-rw-r--r--games/sokoban/pkg-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/games/sokoban/pkg-install b/games/sokoban/pkg-install
new file mode 100644
index 000000000000..9587d65b8106
--- /dev/null
+++ b/games/sokoban/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+FILE="/var/games/sokoban"
+[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
+
+echo "===> Creating initial high score file $FILE"
+dd if=/dev/zero of=$FILE bs=1 count=2
+chmod 664 $FILE
+chown root.games $FILE