svn commit: r512564 - head/games/nethack34
Greg Lewis
glewis at FreeBSD.org
Sun Sep 22 08:56:51 UTC 2019
Author: glewis
Date: Sun Sep 22 08:56:50 2019
New Revision: 512564
URL: https://svnweb.freebsd.org/changeset/ports/512564
Log:
Preserve scores during updates
* Treat record and logfile as "samples" so that they will be kept when
updating if they have anything in them.
Modified:
head/games/nethack34/Makefile
head/games/nethack34/pkg-plist
Modified: head/games/nethack34/Makefile
==============================================================================
--- head/games/nethack34/Makefile Sun Sep 22 08:52:06 2019 (r512563)
+++ head/games/nethack34/Makefile Sun Sep 22 08:56:50 2019 (r512564)
@@ -128,6 +128,10 @@ post-install:
.endif
@cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} manpages
@${MKDIR} ${STAGEDIR}${DATADIR}/save
+ # Make "sample" files from records to prevent them being removed
+ # if they have been altered
+ @${CP} ${STAGEDIR}/${DATADIR}/logfile ${STAGEDIR}/${DATADIR}/logfile.sample
+ @${CP} ${STAGEDIR}/${DATADIR}/record ${STAGEDIR}/${DATADIR}/record.sample
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${STAGEDIR}${DOCSDIR}
Modified: head/games/nethack34/pkg-plist
==============================================================================
--- head/games/nethack34/pkg-plist Sun Sep 22 08:52:06 2019 (r512563)
+++ head/games/nethack34/pkg-plist Sun Sep 22 08:56:50 2019 (r512564)
@@ -94,9 +94,7 @@ bin/%%HACKNAME%%
%%DATADIR%%/juiblex.lev
%%DATADIR%%/knox.lev
%%DATADIR%%/license
- at mode 664
-%%DATADIR%%/logfile
- at mode
+ at sample(games,games,664) %%DATADIR%%/logfile.sample
%%DATADIR%%/mapbg.xpm
%%DATADIR%%/medusa-1.lev
%%DATADIR%%/medusa-2.lev
@@ -119,9 +117,7 @@ bin/%%HACKNAME%%
%%DATADIR%%/perm
%%DATADIR%%/pet_mark.xbm
%%DATADIR%%/quest.dat
- at mode 664
-%%DATADIR%%/record
- at mode
+ at sample(games,games,664) %%DATADIR%%/record.sample
@mode 02755
%%DATADIR%%/recover
@mode
More information about the svn-ports-head
mailing list