From e9d498482ddacda31825ecc208ef1fd7610d1c4a Mon Sep 17 00:00:00 2001 From: petef Date: Sun, 23 Dec 2001 22:30:21 +0000 Subject: Add a patch to fix the default score file generation and adjust pkg-plist to remove the backup score file (if it is empty). Reported by: many Obtained from: dopewars cvs --- games/dopewars/files/patch-Makefile.in | 12 ++++++++++++ games/dopewars/pkg-plist | 1 + 2 files changed, 13 insertions(+) create mode 100644 games/dopewars/files/patch-Makefile.in (limited to 'games/dopewars') diff --git a/games/dopewars/files/patch-Makefile.in b/games/dopewars/files/patch-Makefile.in new file mode 100644 index 000000000000..0cddc213f10b --- /dev/null +++ b/games/dopewars/files/patch-Makefile.in @@ -0,0 +1,12 @@ +$FreeBSD$ + +--- Makefile.in 2001/10/30 18:46:00 1.14 ++++ Makefile.in 2001/10/30 20:44:26 1.15 +@@ -391,6 +391,7 @@ + @chgrp games ${SCORE} || chgrp wheel ${SCORE} || \ + echo "Unable to change group ownership of the high score file" + chmod 0660 ${SCORE} ++ src/dopewars -C ${SCORE} + ${mkinstalldirs} ${DESKTOPDIR} + ${INSTALL} -m 0644 ${DESKTOP} ${DESKTOPDIR} + diff --git a/games/dopewars/pkg-plist b/games/dopewars/pkg-plist index 70c5c41489df..0549f3024220 100644 --- a/games/dopewars/pkg-plist +++ b/games/dopewars/pkg-plist @@ -13,6 +13,7 @@ bin/dopewars %%PORTDOCS%%share/doc/%%DOPEWARS%%/servercommands.html %%PORTDOCS%%share/doc/%%DOPEWARS%%/windows.html share/dopewars/dopewars.sco +@unexec if [ ! -s %D/share/dopewars/dopewars.sco.bak ]; then rm -f %D/share/dopewars/dopewars.sco.bak; fi share/dopewars/pixmaps/dopewars-pill.png share/dopewars/pixmaps/dopewars-shot.png share/dopewars/pixmaps/dopewars-weed.png -- cgit