From owner-svn-ports-all@freebsd.org Sun Sep 22 09:26:50 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6DD04FB001; Sun, 22 Sep 2019 09:26:50 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46bht22Mjtz4YMv; Sun, 22 Sep 2019 09:26:50 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 358802464F; Sun, 22 Sep 2019 09:26:50 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8M9Qobf095099; Sun, 22 Sep 2019 09:26:50 GMT (envelope-from glewis@FreeBSD.org) Received: (from glewis@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8M9QnOU095098; Sun, 22 Sep 2019 09:26:49 GMT (envelope-from glewis@FreeBSD.org) Message-Id: <201909220926.x8M9QnOU095098@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glewis set sender to glewis@FreeBSD.org using -f From: Greg Lewis Date: Sun, 22 Sep 2019 09:26:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512568 - head/games/nethack33 X-SVN-Group: ports-head X-SVN-Commit-Author: glewis X-SVN-Commit-Paths: head/games/nethack33 X-SVN-Commit-Revision: 512568 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Sep 2019 09:26:50 -0000 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 -@mode 664 -%%DATADIR%%/logfile -@mode +@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 -@mode 664 -%%DATADIR%%/record -@mode +@sample(games,games,664) %%DATADIR%%/record.sample @mode 02755 %%DATADIR%%/recover @mode