svn commit: r512568 - head/games/nethack33
Greg Lewis
glewis at FreeBSD.org
Sun Sep 22 09:26:50 UTC 2019
Author: glewis
Date: Sun Sep 22 09:26:49 2019
New Revision: 512568
URL: https://svnweb.freebsd.org/changeset/ports/512568
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/nethack33/Makefile
head/games/nethack33/pkg-plist
Modified: head/games/nethack33/Makefile
==============================================================================
--- head/games/nethack33/Makefile Sun Sep 22 09:18:17 2019 (r512567)
+++ head/games/nethack33/Makefile Sun Sep 22 09:26:49 2019 (r512568)
@@ -97,6 +97,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/nethack33/pkg-plist
==============================================================================
--- head/games/nethack33/pkg-plist Sun Sep 22 09:18:17 2019 (r512567)
+++ head/games/nethack33/pkg-plist Sun Sep 22 09:26:49 2019 (r512568)
@@ -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
@@ -113,9 +111,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