mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- Fix leftover /var/games/sokoban (only when it is blank
and matches the default) and advise users to remove it otherwise. - Trim header
This commit is contained in:
parent
82c28cbbf5
commit
22931abc7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314610
@ -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
|
||||
|
8
games/sokoban/pkg-deinstall
Normal file
8
games/sokoban/pkg-deinstall
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user