Date: Tue, 7 Oct 2014 23:26:12 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370409 - in head/games/sokoban: . files Message-ID: <201410072326.s97NQClo084284@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Oct 7 23:26:11 2014 New Revision: 370409 URL: https://svnweb.freebsd.org/changeset/ports/370409 QAT: https://qat.redports.org/buildarchive/r370409/ Log: - Use new pkg plist-related features - Move highscore file into /var/games PR: 193852 Submitted by: lifanov@mail.lifanov.com (maintainer) Modified: head/games/sokoban/Makefile head/games/sokoban/files/patch-sokoban.h head/games/sokoban/pkg-plist Modified: head/games/sokoban/Makefile ============================================================================== --- head/games/sokoban/Makefile Tue Oct 7 23:07:10 2014 (r370408) +++ head/games/sokoban/Makefile Tue Oct 7 23:26:11 2014 (r370409) @@ -3,7 +3,7 @@ PORTNAME= sokoban PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= games/strategy @@ -20,4 +20,8 @@ do-install: @${MKDIR} ${STAGEDIR}${DATADIR}/screens @${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${DATADIR}/screens +post-install: + @${MKDIR} ${STAGEDIR}/var/games/sokoban + @truncate -s 512 ${STAGEDIR}/var/games/sokoban/scores.sample + .include <bsd.port.mk> Modified: head/games/sokoban/files/patch-sokoban.h ============================================================================== --- head/games/sokoban/files/patch-sokoban.h Tue Oct 7 23:07:10 2014 (r370408) +++ head/games/sokoban/files/patch-sokoban.h Tue Oct 7 23:26:11 2014 (r370409) @@ -1,5 +1,5 @@ ---- ./sokoban.h.orig 1992-05-15 01:15:26.000000000 -0400 -+++ ./sokoban.h 2014-03-11 22:16:45.005739636 -0400 +--- sokoban.h.orig 1992-05-15 05:15:26 UTC ++++ sokoban.h @@ -1,6 +1,14 @@ /*********************************************************************** You may wish to alter the following directory paths @@ -7,9 +7,9 @@ + +#ifdef PREFIX +#define SCREENPATH PREFIX "/share/sokoban/screens" -+#define SAVEPATH PREFIX "/share/sokoban" ++#define SAVEPATH "/var/games/sokoban" +#define LOCKFILE "/tmp/sok.tmp" -+#define SCOREFILE "/var/games/sokoban" ++#define SCOREFILE "/var/games/sokoban/scores" +#else + /**/ Modified: head/games/sokoban/pkg-plist ============================================================================== --- head/games/sokoban/pkg-plist Tue Oct 7 23:07:10 2014 (r370408) +++ head/games/sokoban/pkg-plist Tue Oct 7 23:26:11 2014 (r370409) @@ -1,11 +1,6 @@ -@group games -@mode 2555 -bin/sokoban -@group -@mode -@exec truncate -s 512B /var/games/sokoban -@exec chgrp games /var/games/sokoban -@exec chmod 0664 /var/games/sokoban +@(root,games,2555) bin/sokoban +@dir(root,games,0775) /var/games/sokoban +@sample(root,games,0664) /var/games/sokoban/scores.sample %%DATADIR%%/screens/sokoban.help %%DATADIR%%/screens/screen.1 %%DATADIR%%/screens/screen.2 @@ -57,6 +52,3 @@ bin/sokoban %%DATADIR%%/screens/screen.48 %%DATADIR%%/screens/screen.49 %%DATADIR%%/screens/screen.50 -@dirrm %%DATADIR%%/screens -@dirrm %%DATADIR%% -@unexec rm -f /var/games/sokoban
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410072326.s97NQClo084284>