diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2013-03-18 23:48:12 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2013-03-18 23:48:12 +0000 |
commit | 22931abc7c4aaedb247a073f492c4072d3d21e61 (patch) | |
tree | b88ab89230360af1b28ec7d389e72e10a2b54588 /games | |
parent | 82c28cbbf5d9f62801c8bb391463e42d9f2c8ed4 (diff) | |
download | ports-22931abc7c4aaedb247a073f492c4072d3d21e61.tar.gz ports-22931abc7c4aaedb247a073f492c4072d3d21e61.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/sokoban/Makefile | 6 | ||||
-rw-r--r-- | games/sokoban/pkg-deinstall | 8 | ||||
-rw-r--r-- | games/sokoban/pkg-plist | 1 |
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 |