svn commit: r370409 - in head/games/sokoban: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Oct 7 23:26:13 UTC 2014
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 at 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 @@
- at group games
- at mode 2555
-bin/sokoban
- at group
- at mode
- at exec truncate -s 512B /var/games/sokoban
- at exec chgrp games /var/games/sokoban
- at exec chmod 0664 /var/games/sokoban
+@(root,games,2555) bin/sokoban
+ at dir(root,games,0775) /var/games/sokoban
+ at 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
- at dirrm %%DATADIR%%/screens
- at dirrm %%DATADIR%%
- at unexec rm -f /var/games/sokoban
More information about the svn-ports-head
mailing list