summaryrefslogtreecommitdiff
path: root/games/dopewars
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-23 22:30:21 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-23 22:30:21 +0000
commit879ccb23f8f9b2f018142ccb7909ca10431cdbb7 (patch)
tree9c1724b173d918f96473827e93a8e2e59a7550db /games/dopewars
parentChase checksum (minor changes in documentation). (diff)
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
Notes
Notes: svn path=/head/; revision=52067
Diffstat (limited to 'games/dopewars')
-rw-r--r--games/dopewars/files/patch-Makefile.in12
-rw-r--r--games/dopewars/pkg-plist1
2 files changed, 13 insertions, 0 deletions
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