1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

- Move highscores and saves to /var/games

- Modernize plist
- Regenerate patches
This commit is contained in:
Dmitry Marakasov 2015-12-27 20:15:42 +00:00
parent 87264d18c3
commit f644c9e93c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404593
8 changed files with 103 additions and 123 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= xsokoban PORTNAME= xsokoban
PORTVERSION= 3.3c PORTVERSION= 3.3c
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= games CATEGORIES= games
MASTER_SITES= http://www.cs.cornell.edu/andru/release/ \ MASTER_SITES= http://www.cs.cornell.edu/andru/release/ \
ftp://ftp.pmg.lcs.mit.edu/pub/xsokoban/ ftp://ftp.pmg.lcs.mit.edu/pub/xsokoban/
@ -20,14 +20,15 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h
post-install: post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/scores \ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens
${STAGEDIR}${PREFIX}/lib/X11/xsokoban/bitmaps/defaults \ @${MKDIR} ${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
${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens ${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens
${INSTALL_DATA} ${WRKSRC}/bitmaps/defaults/* \ ${INSTALL_DATA} ${WRKSRC}/bitmaps/defaults/* \
${STAGEDIR}${PREFIX}/lib/X11/xsokoban/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 <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,19 +1,12 @@
*** Imakefile.orig Wed Aug 28 02:34:41 1996 --- Imakefile.orig 1996-08-27 17:34:41 UTC
--- Imakefile Sat Jan 15 00:00:00 2000 +++ Imakefile
*************** @@ -1,7 +1,7 @@
*** 1,7 **** DEFINES= -DNDEBUG
DEFINES= -DNDEBUG -EXTRA_INCLUDES= -I/usr/local/include
! EXTRA_INCLUDES= -I/usr/local/include +EXTRA_INCLUDES= -I$(INCDIR)/X11
! SYS_LIBRARIES= -L/usr/local/lib -lXpm $(XLIB) -SYS_LIBRARIES= -L/usr/local/lib -lXpm $(XLIB)
# -lXpm is only needed if you are using Xpm. +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 \
--- 1,7 ---- SRCS= display.c main.c resources.c play.c score.c screen.c \
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 \

View File

@ -1,53 +1,55 @@
*** config.h.orig Tue Aug 27 21:41:47 1996 --- config.h.orig 1997-07-17 16:27:58 UTC
--- config.h Mon Nov 18 18:25:14 1996 +++ config.h
*************** @@ -30,7 +30,7 @@
*** 30,36 **** variable in the installed version, but you know best...
variable in the installed version, but you know best... */
*/ #ifndef ROOTDIR
#ifndef ROOTDIR -#define ROOTDIR "."
! #define ROOTDIR "." +#define ROOTDIR "%%PREFIX%%/lib/X11/xsokoban"
#endif #endif
/* /*
--- 30,36 ---- @@ -46,7 +46,7 @@
variable in the installed version, but you know best... the name <username>.sav
*/ */
#ifndef ROOTDIR #ifndef SAVEPATH
! #define ROOTDIR "%%PREFIX%%/lib/X11/xsokoban" -#define SAVEPATH ROOTDIR "/saves"
#endif +#define SAVEPATH "/var/games/xsokoban/saves"
#endif
/*
*************** /*
*** 95,101 **** @@ -62,14 +62,14 @@
OWNER: defines the name of the local game owner. in the same directory as the score file.
*/ */
#ifndef OWNER #ifndef LOCKFILE
! #define OWNER "andru" -#define LOCKFILE ROOTDIR "/scores/lock"
#endif +#define LOCKFILE "/var/games/xsokoban/scores/lock"
#endif
/*
--- 95,101 ---- /*
OWNER: defines the name of the local game owner. SCOREFILE: the full pathname of the score file
*/ */
#ifndef OWNER #ifndef SCOREFILE
! #define OWNER "root" -#define SCOREFILE ROOTDIR "/scores/scores"
#endif +#define SCOREFILE "/var/games/xsokoban/scores/scores"
#endif
/*
*************** /*
*** 147,153 **** @@ -95,7 +95,7 @@
*/ OWNER: defines the name of the local game owner.
*/
#ifndef WWW #ifndef OWNER
! #define WWW 1 -#define OWNER "andru"
#endif +#define OWNER "root"
#endif
#define DEBUG_SERVER(x)
--- 147,153 ---- /*
*/ @@ -147,7 +147,7 @@
*/
#ifndef WWW
! #define WWW 0 #ifndef WWW
#endif -#define WWW 1
+#define WWW 0
#define DEBUG_SERVER(x) #endif
#define DEBUG_SERVER(x)

View File

@ -0,0 +1,11 @@
--- 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 <sys/param.h> */
#define HAVE_SYS_PARAM_H 1

View File

@ -1,19 +0,0 @@
*** 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 <sys/param.h> */
#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 <sys/param.h> */
#define HAVE_SYS_PARAM_H 1

View File

@ -1,14 +1,12 @@
*** externs.h.orig Sun Apr 16 07:46:14 1995 --- externs.h.orig 1995-04-15 22:46:14 UTC
--- externs.h Sat Jan 15 00:00:00 2000 +++ externs.h
*************** @@ -5,7 +5,9 @@
*** 5,11 **** #include <X11/Xresource.h>
--- 5,13 ---- #include <sys/stat.h>
#include <X11/Xresource.h> #include <sys/types.h>
#include <sys/stat.h> +#ifndef __STDC__
#include <sys/types.h> #include <malloc.h>
+ #ifndef __STDC__ +#endif
#include <malloc.h>
+ #endif #ifdef NEED_NETINET_IN
#include <netinet/in.h>
#ifdef NEED_NETINET_IN
#include <netinet/in.h>

View File

@ -1,3 +0,0 @@
First, type: 'xsokoban -c' to make score files.
You must be the superuser 'root', and enter password 'score'.

View File

@ -1,4 +1,4 @@
bin/xsokoban @(,games,2555) bin/xsokoban
man/man1/xsokoban.1.gz man/man1/xsokoban.1.gz
lib/X11/xsokoban/bitmaps/defaults/centerwall.xbm lib/X11/xsokoban/bitmaps/defaults/centerwall.xbm
lib/X11/xsokoban/bitmaps/defaults/centerwall.xpm 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.89
lib/X11/xsokoban/screens/screen.9 lib/X11/xsokoban/screens/screen.9
lib/X11/xsokoban/screens/screen.90 lib/X11/xsokoban/screens/screen.90
@unexec rm -f %D/lib/X11/xsokoban/scores/scores 2>/dev/null || true @sample(,games,664) /var/games/xsokoban/scores/scores.sample
@dirrm lib/X11/xsokoban/bitmaps/defaults @dir(,games,775) /var/games/xsokoban/scores
@dirrm lib/X11/xsokoban/bitmaps @dir(,games,775) /var/games/xsokoban/saves
@dirrm lib/X11/xsokoban/saves @dir /var/games/xsokoban
@dirrm lib/X11/xsokoban/scores
@dirrm lib/X11/xsokoban/screens
@dirrm lib/X11/xsokoban