diff options
author | dinoex <dinoex@FreeBSD.org> | 2014-03-31 02:24:30 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2014-03-31 02:24:30 +0800 |
commit | 50afdc2d5e6fde85b8151434ba2fa54409f91000 (patch) | |
tree | 5e72b1c3c4d24da24570da19ecd543be463b99ca | |
parent | f0a08b0cd43d59347b3d212c5232f45405a25d3b (diff) | |
download | freebsd-ports-gnome-50afdc2d5e6fde85b8151434ba2fa54409f91000.tar.gz freebsd-ports-gnome-50afdc2d5e6fde85b8151434ba2fa54409f91000.tar.zst freebsd-ports-gnome-50afdc2d5e6fde85b8151434ba2fa54409f91000.zip |
- preserve highscore file on updates
-rw-r--r-- | games/xboing/Makefile | 5 | ||||
-rw-r--r-- | games/xboing/pkg-plist | 10 |
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 |