From owner-svn-ports-head@freebsd.org Sun Dec 27 20:15:44 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36AB8A525EE; Sun, 27 Dec 2015 20:15:44 +0000 (UTC) (envelope-from amdmi3@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 mx1.freebsd.org (Postfix) with ESMTPS id 0B47E1B3E; Sun, 27 Dec 2015 20:15:43 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBRKFhsb080364; Sun, 27 Dec 2015 20:15:43 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBRKFgpU080358; Sun, 27 Dec 2015 20:15:42 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201512272015.tBRKFgpU080358@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sun, 27 Dec 2015 20:15:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r404593 - in head/games/xsokoban: . 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.20 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: Sun, 27 Dec 2015 20:15:44 -0000 Author: amdmi3 Date: Sun Dec 27 20:15:42 2015 New Revision: 404593 URL: https://svnweb.freebsd.org/changeset/ports/404593 Log: - Move highscores and saves to /var/games - Modernize plist - Regenerate patches Added: head/games/xsokoban/files/patch-config__local.h - copied, changed from r404592, head/games/xsokoban/files/patch-config_local.h Deleted: head/games/xsokoban/files/patch-config_local.h head/games/xsokoban/pkg-message Modified: head/games/xsokoban/Makefile head/games/xsokoban/files/patch-Imakefile head/games/xsokoban/files/patch-config.h head/games/xsokoban/files/patch-externs.h head/games/xsokoban/pkg-plist Modified: head/games/xsokoban/Makefile ============================================================================== --- head/games/xsokoban/Makefile Sun Dec 27 19:45:58 2015 (r404592) +++ head/games/xsokoban/Makefile Sun Dec 27 20:15:42 2015 (r404593) @@ -3,7 +3,7 @@ PORTNAME= xsokoban PORTVERSION= 3.3c -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.cs.cornell.edu/andru/release/ \ ftp://ftp.pmg.lcs.mit.edu/pub/xsokoban/ @@ -20,14 +20,15 @@ post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h post-install: - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/scores \ - ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/bitmaps/defaults \ - ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/saves \ - ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens - @${CHMOD} 777 ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/scores - @${CHMOD} 775 ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/saves + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/bitmaps/defaults ${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens ${INSTALL_DATA} ${WRKSRC}/bitmaps/defaults/* \ ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/bitmaps/defaults + @${MKDIR} ${STAGEDIR}/var/games/xsokoban/scores + @${MKDIR} ${STAGEDIR}/var/games/xsokoban/saves +# may be created by xsokoban -c + @${PRINTF} "xs02\0\0" > ${STAGEDIR}/var/games/xsokoban/scores/scores.sample + .include Modified: head/games/xsokoban/files/patch-Imakefile ============================================================================== --- head/games/xsokoban/files/patch-Imakefile Sun Dec 27 19:45:58 2015 (r404592) +++ head/games/xsokoban/files/patch-Imakefile Sun Dec 27 20:15:42 2015 (r404593) @@ -1,19 +1,12 @@ -*** Imakefile.orig Wed Aug 28 02:34:41 1996 ---- Imakefile Sat Jan 15 00:00:00 2000 -*************** -*** 1,7 **** - DEFINES= -DNDEBUG -! EXTRA_INCLUDES= -I/usr/local/include - -! SYS_LIBRARIES= -L/usr/local/lib -lXpm $(XLIB) - # -lXpm is only needed if you are using Xpm. - - SRCS= display.c main.c resources.c play.c score.c screen.c \ ---- 1,7 ---- - DEFINES= -DNDEBUG -! EXTRA_INCLUDES= -I$(INCDIR)/X11 - -! SYS_LIBRARIES= -lXpm $(XLIB) - # -lXpm is only needed if you are using Xpm. - - SRCS= display.c main.c resources.c play.c score.c screen.c \ +--- Imakefile.orig 1996-08-27 17:34:41 UTC ++++ Imakefile +@@ -1,7 +1,7 @@ + DEFINES= -DNDEBUG +-EXTRA_INCLUDES= -I/usr/local/include ++EXTRA_INCLUDES= -I$(INCDIR)/X11 + +-SYS_LIBRARIES= -L/usr/local/lib -lXpm $(XLIB) ++SYS_LIBRARIES= -lXpm $(XLIB) + # -lXpm is only needed if you are using Xpm. + + SRCS= display.c main.c resources.c play.c score.c screen.c \ Modified: head/games/xsokoban/files/patch-config.h ============================================================================== --- head/games/xsokoban/files/patch-config.h Sun Dec 27 19:45:58 2015 (r404592) +++ head/games/xsokoban/files/patch-config.h Sun Dec 27 20:15:42 2015 (r404593) @@ -1,53 +1,55 @@ -*** config.h.orig Tue Aug 27 21:41:47 1996 ---- config.h Mon Nov 18 18:25:14 1996 -*************** -*** 30,36 **** - variable in the installed version, but you know best... - */ - #ifndef ROOTDIR -! #define ROOTDIR "." - #endif - - /* ---- 30,36 ---- - variable in the installed version, but you know best... - */ - #ifndef ROOTDIR -! #define ROOTDIR "%%PREFIX%%/lib/X11/xsokoban" - #endif - - /* -*************** -*** 95,101 **** - OWNER: defines the name of the local game owner. - */ - #ifndef OWNER -! #define OWNER "andru" - #endif - - /* ---- 95,101 ---- - OWNER: defines the name of the local game owner. - */ - #ifndef OWNER -! #define OWNER "root" - #endif - - /* -*************** -*** 147,153 **** - */ - - #ifndef WWW -! #define WWW 1 - #endif - - #define DEBUG_SERVER(x) ---- 147,153 ---- - */ - - #ifndef WWW -! #define WWW 0 - #endif - - #define DEBUG_SERVER(x) +--- config.h.orig 1997-07-17 16:27:58 UTC ++++ config.h +@@ -30,7 +30,7 @@ + variable in the installed version, but you know best... + */ + #ifndef ROOTDIR +-#define ROOTDIR "." ++#define ROOTDIR "%%PREFIX%%/lib/X11/xsokoban" + #endif + + /* +@@ -46,7 +46,7 @@ + the name .sav + */ + #ifndef SAVEPATH +-#define SAVEPATH ROOTDIR "/saves" ++#define SAVEPATH "/var/games/xsokoban/saves" + #endif + + /* +@@ -62,14 +62,14 @@ + in the same directory as the score file. + */ + #ifndef LOCKFILE +-#define LOCKFILE ROOTDIR "/scores/lock" ++#define LOCKFILE "/var/games/xsokoban/scores/lock" + #endif + + /* + SCOREFILE: the full pathname of the score file + */ + #ifndef SCOREFILE +-#define SCOREFILE ROOTDIR "/scores/scores" ++#define SCOREFILE "/var/games/xsokoban/scores/scores" + #endif + + /* +@@ -95,7 +95,7 @@ + OWNER: defines the name of the local game owner. + */ + #ifndef OWNER +-#define OWNER "andru" ++#define OWNER "root" + #endif + + /* +@@ -147,7 +147,7 @@ + */ + + #ifndef WWW +-#define WWW 1 ++#define WWW 0 + #endif + + #define DEBUG_SERVER(x) Copied and modified: head/games/xsokoban/files/patch-config__local.h (from r404592, head/games/xsokoban/files/patch-config_local.h) ============================================================================== --- head/games/xsokoban/files/patch-config_local.h Sun Dec 27 19:45:58 2015 (r404592, copy source) +++ head/games/xsokoban/files/patch-config__local.h Sun Dec 27 20:15:42 2015 (r404593) @@ -1,19 +1,11 @@ -*** config_local.h.orig Sun Apr 16 00:50:16 1995 ---- config_local.h Mon Nov 18 18:33:14 1996 -*************** -*** 61,67 **** - #define LOCALTIME_PROTO 1 - - /* Is there a nl_langinfo() call? */ -! #define HAVE_NL_LANGINFO 1 - - /* Is there a working */ - #define HAVE_SYS_PARAM_H 1 ---- 61,67 ---- - #define LOCALTIME_PROTO 1 - - /* Is there a nl_langinfo() call? */ -! #undef HAVE_NL_LANGINFO - - /* Is there a working */ - #define HAVE_SYS_PARAM_H 1 +--- config_local.h.orig 1996-10-29 19:44:31 UTC ++++ config_local.h +@@ -61,7 +61,7 @@ + #define LOCALTIME_PROTO 1 + + /* Is there a nl_langinfo() call? */ +-#define HAVE_NL_LANGINFO 1 ++#undef HAVE_NL_LANGINFO + + /* Is there a working */ + #define HAVE_SYS_PARAM_H 1 Modified: head/games/xsokoban/files/patch-externs.h ============================================================================== --- head/games/xsokoban/files/patch-externs.h Sun Dec 27 19:45:58 2015 (r404592) +++ head/games/xsokoban/files/patch-externs.h Sun Dec 27 20:15:42 2015 (r404593) @@ -1,14 +1,12 @@ -*** externs.h.orig Sun Apr 16 07:46:14 1995 ---- externs.h Sat Jan 15 00:00:00 2000 -*************** -*** 5,11 **** ---- 5,13 ---- - #include - #include - #include -+ #ifndef __STDC__ - #include -+ #endif - - #ifdef NEED_NETINET_IN - #include +--- externs.h.orig 1995-04-15 22:46:14 UTC ++++ externs.h +@@ -5,7 +5,9 @@ + #include + #include + #include ++#ifndef __STDC__ + #include ++#endif + + #ifdef NEED_NETINET_IN + #include Modified: head/games/xsokoban/pkg-plist ============================================================================== --- head/games/xsokoban/pkg-plist Sun Dec 27 19:45:58 2015 (r404592) +++ head/games/xsokoban/pkg-plist Sun Dec 27 20:15:42 2015 (r404593) @@ -1,4 +1,4 @@ -bin/xsokoban +@(,games,2555) bin/xsokoban man/man1/xsokoban.1.gz lib/X11/xsokoban/bitmaps/defaults/centerwall.xbm lib/X11/xsokoban/bitmaps/defaults/centerwall.xpm @@ -136,10 +136,7 @@ lib/X11/xsokoban/screens/screen.88 lib/X11/xsokoban/screens/screen.89 lib/X11/xsokoban/screens/screen.9 lib/X11/xsokoban/screens/screen.90 -@unexec rm -f %D/lib/X11/xsokoban/scores/scores 2>/dev/null || true -@dirrm lib/X11/xsokoban/bitmaps/defaults -@dirrm lib/X11/xsokoban/bitmaps -@dirrm lib/X11/xsokoban/saves -@dirrm lib/X11/xsokoban/scores -@dirrm lib/X11/xsokoban/screens -@dirrm lib/X11/xsokoban +@sample(,games,664) /var/games/xsokoban/scores/scores.sample +@dir(,games,775) /var/games/xsokoban/scores +@dir(,games,775) /var/games/xsokoban/saves +@dir /var/games/xsokoban