aboutsummaryrefslogtreecommitdiff
path: root/games/xboing
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2014-03-30 18:24:30 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2014-03-30 18:24:30 +0000
commit0c7a73bea1cb5485a6734b60cfd7a331fdca8618 (patch)
tree5e72b1c3c4d24da24570da19ecd543be463b99ca /games/xboing
parentfcea89c8747613480e3263050250f6a714e08d83 (diff)
downloadports-0c7a73bea1cb5485a6734b60cfd7a331fdca8618.tar.gz
ports-0c7a73bea1cb5485a6734b60cfd7a331fdca8618.zip
- preserve highscore file on updates
Notes
Notes: svn path=/head/; revision=349664
Diffstat (limited to 'games/xboing')
-rw-r--r--games/xboing/Makefile5
-rw-r--r--games/xboing/pkg-plist10
2 files changed, 10 insertions, 5 deletions
diff --git a/games/xboing/Makefile b/games/xboing/Makefile
index e5fa41dd832d..a4e2bf754cae 100644
--- a/games/xboing/Makefile
+++ b/games/xboing/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xboing
PORTVERSION= 2.4
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= games
@@ -28,4 +28,7 @@ OPTIONS_SUB=yes
MAKE_ENV+= WITHOUT_AUDIO=True
.endif
+post-install:
+ ${RM} ${STAGEDIR}${PREFIX}/lib/X11/xboing/.xboing.scr
+
.include <bsd.port.mk>
diff --git a/games/xboing/pkg-plist b/games/xboing/pkg-plist
index c04ff2fa9108..c9ee62b020f1 100644
--- a/games/xboing/pkg-plist
+++ b/games/xboing/pkg-plist
@@ -1,5 +1,4 @@
bin/xboing
-lib/X11/xboing/.xboing.scr
lib/X11/xboing/levels/demo.data
lib/X11/xboing/levels/editor.data
lib/X11/xboing/levels/level01.data
@@ -131,11 +130,14 @@ man/man1/xboing.1.gz
%%SOUND%%lib/X11/xboing/sounds/wzzz2.au
%%SOUND%%lib/X11/xboing/sounds/youagod.au
lib/X11/xboing/problems.doc
-@dirrm lib/X11/xboing/levels
-%%SOUND%%@dirrm lib/X11/xboing/sounds
-@dirrm lib/X11/xboing
@exec chown root:games %D/bin/xboing
@exec chmod 2755 %D/bin/xboing
@exec touch %D/lib/X11/xboing/.xboing.scr
+@exec chown root:games %D/lib/X11/xboing
+@exec chmod 775 %D/lib/X11/xboing
@exec chown root:games %D/lib/X11/xboing/.xboing.scr
@exec chmod 664 %D/lib/X11/xboing/.xboing.scr
+@unexec if test ! -s %D/lib/X11/xboing/.xboing.scr ; then rm -f %D/lib/X11/xboing/.xboing.scr ; fi
+%%SOUND%%@dirrm lib/X11/xboing/sounds
+@dirrm lib/X11/xboing/levels
+@dirrm lib/X11/xboing