aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-03-19 07:48:12 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-03-19 07:48:12 +0800
commit887bcf778652a25ae4ede99a6e43f31e735ca233 (patch)
treeb88ab89230360af1b28ec7d389e72e10a2b54588 /games
parenteb7b931b0791fe012dfa25bbce685c7a3e71b1f9 (diff)
downloadfreebsd-ports-gnome-887bcf778652a25ae4ede99a6e43f31e735ca233.tar.gz
freebsd-ports-gnome-887bcf778652a25ae4ede99a6e43f31e735ca233.tar.zst
freebsd-ports-gnome-887bcf778652a25ae4ede99a6e43f31e735ca233.zip
- Fix leftover /var/games/sokoban (only when it is blank
and matches the default) and advise users to remove it otherwise. - Trim header
Diffstat (limited to 'games')
-rw-r--r--games/sokoban/Makefile6
-rw-r--r--games/sokoban/pkg-deinstall8
-rw-r--r--games/sokoban/pkg-plist1
3 files changed, 10 insertions, 5 deletions
diff --git a/games/sokoban/Makefile b/games/sokoban/Makefile
index e675892b28f4..68cad50f4c14 100644
--- a/games/sokoban/Makefile
+++ b/games/sokoban/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: sokoban
-# Date created: 2 July 1997
-# Whom: Andrey Zakhvatov
-#
+# Created by: Andrey Zakhvatov
# $FreeBSD$
-#
PORTNAME= sokoban
PORTVERSION= 1.0
diff --git a/games/sokoban/pkg-deinstall b/games/sokoban/pkg-deinstall
new file mode 100644
index 000000000000..349ca9edabc2
--- /dev/null
+++ b/games/sokoban/pkg-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+# $FreeBSD$
+
+FILE="/var/games/sokoban"
+
+if [ "$2" = "POST-DEINSTALL" -a -f "$FILE" ]; then
+ echo "===> If you are completely uninstalling sokoban you may also want to remove the scores files: $FILE"
+fi
diff --git a/games/sokoban/pkg-plist b/games/sokoban/pkg-plist
index 2bb8ba417136..6f2e91305c38 100644
--- a/games/sokoban/pkg-plist
+++ b/games/sokoban/pkg-plist
@@ -52,3 +52,4 @@ share/sokoban/screens/screen.49
share/sokoban/screens/screen.50
@dirrm share/sokoban/screens
@dirrm share/sokoban
+@unexec if [ `stat -f %z /var/games/sokoban 2>/dev/null` = "2" ]; then rm -f /var/games/sokoban; fi