From owner-svn-ports-head@FreeBSD.ORG Tue Oct 7 23:26:13 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9C75C55; Tue, 7 Oct 2014 23:26:12 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CB053FBC; Tue, 7 Oct 2014 23:26:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s97NQCQX084287; Tue, 7 Oct 2014 23:26:12 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s97NQClo084284; Tue, 7 Oct 2014 23:26:12 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201410072326.s97NQClo084284@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 7 Oct 2014 23:26:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370409 - in head/games/sokoban: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 23:26:13 -0000 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 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