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
This commit is contained in:
Pete Fritchman 2001-12-23 22:30:21 +00:00
parent 27282dc7d6
commit 879ccb23f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52067
2 changed files with 13 additions and 0 deletions

View file

@ -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}

View file

@ -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