diff --git a/games/xnethack/Makefile b/games/xnethack/Makefile index ca1993103cf3..b342ec0f71d5 100644 --- a/games/xnethack/Makefile +++ b/games/xnethack/Makefile @@ -1,86 +1,99 @@ PORTNAME= xNetHack DISTVERSIONPREFIX= xnh -DISTVERSION= 6.1 -PORTREVISION= 1 +DISTVERSION= 7.0 CATEGORIES= games MAINTAINER= fuz@fuz.su COMMENT= Experimental features and improvements applied to NetHack 3.7-dev LICENSE= nethack LICENSE_NAME= NETHACK GENERAL PUBLIC LICENSE LICENSE_FILE= ${WRKSRC}/dat/license LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -FLAVORS= x11 nox11 +FLAVORS= x11 nox11 qt FLAVOR?= ${FLAVORS:[1]} nox11_PKGNAMESUFFIX= -nox11 +qt_PKGNAMESUFFIX= -qt USES= alias compiler:c11 gmake ncurses tar:tgz lua:54 USE_GITHUB= yes GH_ACCOUNT= copperwater MAKE_ENV= GRAPHICS="${GRAPHICS}" PLIST_SUB= HACKNAME="${HACKNAME}" # Configure these variables as you want them to be. HACKNAME?= ${PORTNAME:tl} HACKDIR?= share/${HACKNAME} DATADIR= ${PREFIX}/${HACKDIR} DOCSDIR= ${PREFIX}/share/doc/${HACKNAME} .if ${FLAVOR} == "x11" USES+= xorg USE_XORG= xaw xpm xmu xext xt x11 sm ice -CFLAGS+= -DX11_GRAPHICS -DUSE_TILES +CFLAGS+= -DUSE_TILES GRAPHICS= X11_GRAPHICS .elif ${FLAVOR} == "nox11" GRAPHICS= # none +.elif ${FLAVOR} == "qt" +USES+= localbase pkgconfig qt:5 +USE_QT= buildtools_build core gui multimedia network widgets +MAKE_ENV+= MOCPATH=${MOC} LINK="${CXX} -pie" +# Qt wants PIC for some reason. For C code, PIE should be enough. +CFLAGS+= -I${QT_INCDIR} -fpie +CXXFLAGS+= -I${QT_INCDIR} -fpic +GRAPHICS= QT_GRAPHICS .endif + CFLAGS+= -DNOMAIL -DCURSES_GRAPHICS OPTIONS_DEFINE= DOCS .include post-patch: .for f in include/config.h sys/unix/Makefile.doc sys/unix/Makefile.src sys/unix/Makefile.top @${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \ -e 's|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' \ ${WRKSRC}/${f} .endfor .for f in dlb.6 nethack.6 recover.6 @${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \ -e 's|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' \ ${WRKSRC}/doc/${f} .endfor .if defined(WITHOUT_SHELL) @${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h .endif .if defined(WITH_MAIL) @${REINPLACE_CMD} -e 's|/\* #define MAIL \*/|#define MAIL|' ${WRKSRC}/include/unixconf.h .endif do-configure: + ${TOUCH} ${WRKSRC}/dat/gitinfo.txt @cd ${WRKSRC}/sys/unix; ${SH} setup.sh + # work around a race condition + cd ${WRKSRC}/util; ${MAKE_CMD} tiletxt.c post-install: ${STRIP_CMD} ${STAGEDIR}${DATADIR}/recover ${STRIP_CMD} ${STAGEDIR}${DATADIR}/${HACKNAME} @cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} manpages @${MKDIR} ${STAGEDIR}${DATADIR}/save @${CP} ${WRKSRC}/sys/unix/sysconf ${STAGEDIR}/${DATADIR}/sysconf # Make sysconf a sample to prevent it being removed if altered @${CP} ${STAGEDIR}/${DATADIR}/sysconf ${STAGEDIR}/${DATADIR}/sysconf.sample # Make "sample" files from records to prevent them being removed # if they have been altered + @${CP} ${STAGEDIR}/${DATADIR}/logfile ${STAGEDIR}/${DATADIR}/livelog.sample @${CP} ${STAGEDIR}/${DATADIR}/logfile ${STAGEDIR}/${DATADIR}/logfile.sample @${CP} ${STAGEDIR}/${DATADIR}/record ${STAGEDIR}/${DATADIR}/record.sample @${CP} ${STAGEDIR}/${DATADIR}/xlogfile ${STAGEDIR}/${DATADIR}/xlogfile.sample .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/games/xnethack/distinfo b/games/xnethack/distinfo index b414821b5fcf..311196d7ea1d 100644 --- a/games/xnethack/distinfo +++ b/games/xnethack/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1620650405 -SHA256 (copperwater-xNetHack-xnh6.1_GH0.tar.gz) = 48cdb14a0b30cd439e04ccc3daa21d4db8b2abe9090dd7dcb2fdfa839a9572d8 -SIZE (copperwater-xNetHack-xnh6.1_GH0.tar.gz) = 5850953 +TIMESTAMP = 1646737487 +SHA256 (copperwater-xNetHack-xnh7.0_GH0.tar.gz) = d2f9ed47a2dde9d1dfeba073f4f2cbb6c226f8d98457a860b56ec00551429725 +SIZE (copperwater-xNetHack-xnh7.0_GH0.tar.gz) = 5985717 diff --git a/games/xnethack/files/patch-doc_dlb.6 b/games/xnethack/files/patch-doc_dlb.6 index ee45582bb8a7..a6884527a5e2 100644 --- a/games/xnethack/files/patch-doc_dlb.6 +++ b/games/xnethack/files/patch-doc_dlb.6 @@ -1,11 +1,11 @@ ---- doc/dlb.6.orig 2021-03-22 22:28:14 UTC +--- doc/dlb.6.orig 2022-03-07 23:57:15 UTC +++ doc/dlb.6 -@@ -96,7 +96,7 @@ List the contents of the archive 'foo': +@@ -95,7 +95,7 @@ List the contents of the archive 'foo': Kenneth Lorber .SH "SEE ALSO" .PP -nethack(6), tar(1) +xnethack(6), tar(1) .SH BUGS .PP Not a good tar emulation; - does not mean stdin or stdout. diff --git a/games/xnethack/files/patch-doc_nethack.6 b/games/xnethack/files/patch-doc_nethack.6 index 179b1c2e1bce..e25ec372830c 100644 --- a/games/xnethack/files/patch-doc_nethack.6 +++ b/games/xnethack/files/patch-doc_nethack.6 @@ -1,38 +1,29 @@ ---- doc/nethack.6.orig 2021-03-22 22:28:14 UTC +--- doc/nethack.6.orig 2022-03-07 23:57:15 UTC +++ doc/nethack.6 -@@ -17,7 +17,7 @@ nethack \- Exploring The Mazes of Menace +@@ -16,7 +16,7 @@ nethack \- Exploring The Mazes of Menace .SH SYNOPSIS .na .hy 0 -.B nethack +.B xnethack [ .B \-d .I directory -@@ -219,7 +219,7 @@ option, which must be the first argument if it appears +@@ -218,7 +218,7 @@ option, which must be the first argument if it appears supplies a directory which is to serve as the playground. It overrides the value from NETHACKDIR, HACKDIR, or the directory specified by the game administrator during compilation -(usually /usr/games/lib/nethackdir). +(usually %%HACKDIR%%). This option is usually only useful to the game administrator. The playground must contain several auxiliary files such as help files, the list of top scorers, and a subdirectory -@@ -265,7 +265,7 @@ name is '.xnethackrc' in the user's home directory. +@@ -264,7 +264,7 @@ name is '.xnethackrc' in the user's home directory. .br All other files are in the playground directory, -normally /usr/games/lib/nethackdir. +normally %%HACKDIR%%. If DLB was defined during the compile, the data files and special levels will be inside a larger file, normally nhdat, instead of being separate files. -@@ -392,7 +392,7 @@ SHOPTYPE and SPLEVTYPE can be used in debugging (wizar - DEBUGFILES can be used if the program was built with 'DEBUG' enabled. - .SH "SEE ALSO" - .PP --recover(6) -+recover(6) - .SH BUGS - .PP - Probably infinite. diff --git a/games/xnethack/files/patch-doc_recover.6 b/games/xnethack/files/patch-doc_recover.6 index 06d36363e29a..9273032901e3 100644 --- a/games/xnethack/files/patch-doc_recover.6 +++ b/games/xnethack/files/patch-doc_recover.6 @@ -1,20 +1,20 @@ ---- doc/recover.6.orig 2021-03-22 22:28:14 UTC +--- doc/recover.6.orig 2022-03-07 23:57:15 UTC +++ doc/recover.6 -@@ -43,7 +43,7 @@ option, which must be the first argument if it appears +@@ -42,7 +42,7 @@ option, which must be the first argument if it appears supplies a directory which is the NetHack playground. It overrides the value from NETHACKDIR, HACKDIR, or the directory specified by the game administrator during compilation -(usually /usr/games/lib/nethackdir). +(usually %%HACKDIR%%). .PP ^?ALLDOCS For recovery to be possible, -@@ -130,7 +130,7 @@ but even a compression-using +@@ -129,7 +129,7 @@ but even a compression-using .I nethack will find them in the uncompressed form. .SH "SEE ALSO" -nethack(6) +xnethack(6) .SH BUGS .PP .I recover diff --git a/games/xnethack/files/patch-include-config.h b/games/xnethack/files/patch-include-config.h index 09e486a83591..cd282cbf1737 100644 --- a/games/xnethack/files/patch-include-config.h +++ b/games/xnethack/files/patch-include-config.h @@ -1,36 +1,36 @@ ---- include/config.h.orig 2021-03-22 22:28:14 UTC +--- include/config.h.orig 2022-03-07 23:57:15 UTC +++ include/config.h -@@ -294,11 +294,11 @@ +@@ -303,11 +303,11 @@ #if defined(UNIX) && !defined(ZLIB_COMP) && !defined(COMPRESS) /* path and file name extension for compression program */ -#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ -#define COMPRESS_EXTENSION ".Z" /* compress's extension */ +/* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */ +/* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */ /* An example of one alternative you might want to use: */ -/* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */ -/* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */ +#define COMPRESS "/usr/bin/gzip" /* FSF gzip compression */ +#define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ #endif #ifndef COMPRESS -@@ -383,7 +383,7 @@ +@@ -392,7 +392,7 @@ * otherwise it will be the current directory. */ #ifndef HACKDIR -#define HACKDIR "/usr/games/lib/xnethackdir" +#define HACKDIR "%%HACKDIR%%" #endif /* -@@ -646,7 +646,7 @@ typedef unsigned char uchar; +@@ -653,7 +653,7 @@ typedef unsigned char uchar; #ifdef DUMPLOG #ifndef DUMPLOG_FILE -#define DUMPLOG_FILE "/tmp/xnethack.%n.%d.log" +#define DUMPLOG_FILE "/tmp/xnethack.%v.%u.%n.%D.log" /* DUMPLOG_FILE allows following placeholders: %% literal '%' %v version (eg. "3.6.3-0") diff --git a/games/xnethack/files/patch-include-unixconf.h b/games/xnethack/files/patch-include-unixconf.h index 790f7ccdbedd..f845b24a7169 100644 --- a/games/xnethack/files/patch-include-unixconf.h +++ b/games/xnethack/files/patch-include-unixconf.h @@ -1,27 +1,27 @@ ---- include/unixconf.h.orig 2021-03-22 22:28:14 UTC +--- include/unixconf.h.orig 2022-03-07 23:57:15 UTC +++ include/unixconf.h @@ -20,13 +20,13 @@ */ /* define exactly one of the following four choices */ -/* #define BSD 1 */ /* define for 4.n/Free/Open/Net BSD */ +#define BSD 1 /* define for 4.n/Free/Open/Net BSD */ /* also for relatives like SunOS 4.x, DG/UX, and */ /* older versions of Linux */ /* #define ULTRIX */ /* define for Ultrix v3.0 or higher (but not lower) */ /* Use BSD for < v3.0 */ /* "ULTRIX" not to be confused with "ultrix" */ -#define SYSV /* define for System V, Solaris 2.x, newer versions */ +/* #define SYSV */ /* define for System V, Solaris 2.x, newer versions */ /* of Linux */ /* #define HPUX */ /* Hewlett-Packard's Unix, version 6.5 or higher */ /* use SYSV for < v6.5 */ -@@ -315,7 +315,7 @@ +@@ -317,7 +317,7 @@ #endif #if defined(BSD) || defined(ULTRIX) -#if !defined(DGUX) && !defined(SUNOS4) +#if !defined(DGUX) && !defined(SUNOS4) && !defined(__FreeBSD__) #define memcpy(d, s, n) bcopy(s, d, n) #define memcmp(s1, s2, n) bcmp(s2, s1, n) #endif diff --git a/games/xnethack/files/patch-sys-unix-Makefile.doc b/games/xnethack/files/patch-sys-unix-Makefile.doc index d9d793b86507..3e70c98d130d 100644 --- a/games/xnethack/files/patch-sys-unix-Makefile.doc +++ b/games/xnethack/files/patch-sys-unix-Makefile.doc @@ -1,39 +1,42 @@ ---- sys/unix/Makefile.doc.orig 2021-03-22 22:28:14 UTC +--- sys/unix/Makefile.doc.orig 2022-03-07 23:57:15 UTC +++ sys/unix/Makefile.doc -@@ -66,15 +66,15 @@ Guidebook.dvi: Guidebook.tex - latex Guidebook.tex - +@@ -73,17 +73,17 @@ Guidebook.dvi : Guidebook.tex + # (note: 'make makedefs', not 'make $(MAKEDEFS)') + $(MAKEDEFS) : ../util/makedefs.c ../include/config.h ../src/mdlib.c \ + ../util/mdgrep.h +- ( cd ../util ; make makedefs ) ++ ( cd ../util ; ${MAKE} makedefs ) -GAME = nethack -MANDIR = /usr/man/man6 +GAME = xnethack +MANDIR = ${PREFIX}/man/man6 MANEXT = 6 # manual installation for most BSD-style systems -GAMEMANCREATE = cat nethack.6 | $(NHGREP) > -RCVRMANCREATE = cat recover.6 | $(NHGREP) > -DLBMANCREATE = cat dlb.6 | $(NHGREP) > -MDMANCREATE = cat makedefs.6 | $(NHGREP) > +GAMEMANCREATE = cat nethack.6 | $(NHGREP) > nethack.6.out ; ${BSD_INSTALL_MAN} nethack.6.out +RCVRMANCREATE = cat recover.6 | $(NHGREP) > recover.6.out ; ${BSD_INSTALL_MAN} recover.6.out +DLBMANCREATE = cat dlb.6 | $(NHGREP) > dlb.6.out ; ${BSD_INSTALL_MAN} dlb.6.out +MDMANCREATE = cat makedefs.6 | $(NHGREP) > makedefs.6.out ; ${BSD_INSTALL_MAN} makedefs.6.out # manual installation for most SYSV-style systems # GAMEMANCREATE = cat nethack.6 | $(NHGREP) | nroff -man - > # RCVRMANCREATE = cat recover.6 | $(NHGREP) | nroff -man - > -@@ -82,10 +82,10 @@ MDMANCREATE = cat makedefs.6 | $(NHGREP) > +@@ -91,10 +91,10 @@ MDMANCREATE = cat makedefs.6 | $(NHGREP) > # MDMANCREATE = cat makedefs.6 | $(NHGREP) | nroff -man - > manpages: - -$(GAMEMANCREATE) $(MANDIR)/$(GAME).$(MANEXT) - -$(RCVRMANCREATE) $(MANDIR)/recover.$(MANEXT) - -$(DLBMANCREATE) $(MANDIR)/dlb.$(MANEXT) - -$(MDMANCREATE) $(MANDIR)/makedefs.$(MANEXT) + -$(GAMEMANCREATE) ${DESTDIR}$(MANDIR)/$(GAME).$(MANEXT) + -$(RCVRMANCREATE) ${DESTDIR}$(MANDIR)/recover.$(MANEXT) + -$(DLBMANCREATE) ${DESTDIR}$(MANDIR)/dlb.$(MANEXT) + -$(MDMANCREATE) ${DESTDIR}$(MANDIR)/makedefs.$(MANEXT) # manual creation for distribution DISTRIB = Guidebook.txt nethack.txt recover.txt \ diff --git a/games/xnethack/files/patch-sys-unix-Makefile.src b/games/xnethack/files/patch-sys-unix-Makefile.src index 306cfd00fab6..d9073ce22b96 100644 --- a/games/xnethack/files/patch-sys-unix-Makefile.src +++ b/games/xnethack/files/patch-sys-unix-Makefile.src @@ -1,154 +1,166 @@ ---- sys/unix/Makefile.src.orig 2021-03-22 22:28:14 UTC +--- sys/unix/Makefile.src.orig 2022-03-07 23:57:15 UTC +++ sys/unix/Makefile.src -@@ -169,9 +169,17 @@ SYSOBJ = $(TARGETPFX)ioctl.o $(TARGETPFX)unixmain.o $( +@@ -169,14 +169,22 @@ SYSOBJ = $(TARGETPFX)ioctl.o $(TARGETPFX)unixmain.o $( # flags for debugging: # CFLAGS = -g -I../include +CFLAGS += -I../include -I${LUA_INCDIR} +ifeq ("$(GRAPHICS)","X11_GRAPHICS") +CFLAGS += -DX11_GRAPHICS -I${LOCALBASE}/include +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +CFLAGS += -DQT_GRAPHICS +endif #CFLAGS = -O -I../include -#LFLAGS = +LFLAGS += -L${LUA_LIBDIR} -+LINK = $(CC) ++LINK ?= $(CC) # The Qt and Be window systems are written in C++, while the rest of # NetHack is standard C. If using Qt, uncomment the LINK line here to get -@@ -297,6 +305,29 @@ WINBEOBJ = + # the C++ libraries linked in. +-CXXFLAGS = $(CCXXFLAGS) -I. -I$(QTDIR)/include $(QTCXXFLAGS) ++CXXFLAGS += -I. -I../include -I${LUA_INCDIR} + CXX ?= g++ + MOC ?= moc + MOCPATH ?= $(QTDIR)/bin/$(MOC) +@@ -305,6 +313,29 @@ WINBEOBJ = # Curses - Karl Garrison, Tangles #WINSRC = $(WINCURSESSRC) #WINOBJ = $(WINCURSESOBJ) + +WINSRC = $(WINTTYSRC) $(WINCURSESSRC) +ifeq ("$(GRAPHICS)","X11_GRAPHICS") +WINSRC += $(WINX11SRC) +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +WINSRC += $(WINQTSRC) +endif +ifeq ("$(GRAPHICS)","GNOME_GRAPHICS") +WINSRC += $(WINGNOMESRC) +endif + +WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ) +ifeq ("$(GRAPHICS)","X11_GRAPHICS") +WINOBJ += $(WINX11OBJ) +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +WINOBJ += $(WINQTOBJ) +endif +ifeq ("$(GRAPHICS)","GNOME_GRAPHICS") +WINOBJ += $(WINGNOMEOBJ) +endif + # # on some systems the termcap library is in -ltermcap or -lcurses # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead -@@ -313,6 +344,7 @@ WINBEOBJ = +@@ -321,6 +352,7 @@ WINBEOBJ = # WINTTYLIB = -lcurses16 # WINTTYLIB = -lncurses #WINTTYLIB = -ltermlib +WINTTYLIB = -lncurses -L${LOCALBASE}/lib # # libraries for X11 # If USE_XPM is defined in config.h, you will also need -lXpm here. -@@ -320,10 +352,13 @@ WINBEOBJ = +@@ -328,16 +360,19 @@ WINBEOBJ = # WINX11LIB = -lXaw -lXmu -lXt -lX11 # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0 +WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${LOCALBASE}/lib # # # libraries for Qt 3 -WINQT3LIB = -L$(QTDIR)/lib -lqt +#WINQTLIB = -L$(QTDIR)/lib -lqt -+WINQT3LIB = ${QTCFGLIBS} ${LIBQT} -+WINQTLIB = ${QTCFGLIBS} ${LIBQT} ++#WINQT3LIB = ${QTCFGLIBS} ${LIBQT} ++#WINQTLIB = ${QTCFGLIBS} ${LIBQT} # # libraries for Qt 4 WINQT4LIB = `pkg-config QtGui --libs` -@@ -339,7 +374,7 @@ WINBELIB = -lbe + # + # libraries for Qt 5 (use with WINQTSRC and WINQTOBJ) +-WINQT5LIB = `pkg-config Qt5Gui Qt5Widgets Qt5Multimedia --libs` ++WINQTLIB = `pkg-config Qt5Gui Qt5Widgets Qt5Multimedia --libs` + # + # libraries for KDE (with Qt) + WINKDELIB = -lkdecore -lkdeui -lXext +@@ -347,7 +382,7 @@ WINBELIB = -lbe # # libraries for curses port # link with ncurses -WINCURSESLIB = -lncurses +WINCURSESLIB = -lncurses -L${LOCALBASE}/lib # link with pdcurses for SDL, installed in a separate directory #WINCURSESLIB = -L/usr/local/lib/pdcurses -lpdcurses -lSDL # same as above, for XCurses -@@ -349,6 +384,18 @@ WINCURSESLIB = -lncurses +@@ -357,6 +392,18 @@ WINCURSESLIB = -lncurses # # For Curses #WINLIB = $(WINCURSESLIB) + +WINLIB = $(WINTTYLIB) +ifeq ("$(GRAPHICS)","X11_GRAPHICS") +WINLIB += $(WINX11LIB) +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +WINLIB += $(WINQTLIB) +endif +ifeq ("$(GRAPHICS)","GNOME_GRAPHICS") +WINLIB += $(WINGNOMELIB) +endif + # # some platforms need to build the support libraries # BUILDMORE = $(TARGETPFX)pdcurses.a -@@ -384,7 +431,7 @@ WINCURSESLIB = -lncurses - # LIBS = - - # make NetHack --GAME = xnethack -+GAME = xnethack - # GAME = nethack.prg - GAMEBIN = $(GAME) +@@ -412,7 +459,7 @@ AWK = awk + # skip it--if nethack's sources don't reside in a git repository than + # the script which creates that file will fail benignly and 'makedefs -v' + # will proceed without it +-GITINFO=1 ++GITINFO=0 -@@ -412,7 +459,7 @@ GITINFO=1 + # if you change this to 1, feedback while building will omit -Dthis -Wthat + # -Isomewhere so that each file being compiled is listed on one short line; +@@ -420,7 +467,7 @@ GITINFO=1 # (rather than just in suffix default rule), such as is implemented by # gnu make and others which have picked up its extensions; # allowed values are 0, 1, and empty (which behaves like 0) -QUIETCC=1 +QUIETCC=0 # ---------------------------------------- # -@@ -465,7 +512,8 @@ PACKAGE=@true +@@ -473,7 +520,7 @@ PACKAGE=@true MAKEDEFS = ../util/makedefs # -lm required by lua --LUALIB = ../lib/lua/liblua.a -lm -+#LUALIB = ../lib/lua/liblua.a -lm -+LUALIB = -llua-${LUA_VER} -lm +-LUALIB = ../lib/lua/liblua.a -lm $(DLLIB) ++LUALIB = -llua-${LUA_VER} -lm $(DLLIB) # timestamp files to reduce `make' overhead and shorten .o dependency lists CONFIG_H = ../src/config.h-t -@@ -654,7 +702,7 @@ DUMB.Setup: ../include/extern.h +@@ -668,7 +715,7 @@ DUMB.Setup: ../include/extern.h cp ../include/extern.DUMB ../include/extern.h @touch DUMB.Setup -../lib/lua/liblua.a ../include/nhlua.h: +../include/nhlua.h: @( cd .. ; $(MAKE) lua_support ) # dependencies for makedefs and its outputs, which the util -@@ -673,11 +721,11 @@ objects.o: +@@ -687,11 +734,11 @@ objects.o: - # Qt 3 windowport meta-object-compiler output + # outdated Qt 3 windowport meta-object-compiler output qt3_kde0.moc: ../win/Qt3/qt3_kde0.h - $(QTDIR)/bin/moc -o qt3kde0.moc ../win/Qt3/qt3_kde0.h + ${MOC} -o qt3kde0.moc ../win/Qt3/qt3_kde0.h qt3_win.moc: ../win/Qt3/qt3_win.h - $(QTDIR)/bin/moc -o qt3win.moc ../win/Qt3/qt3_win.h + ${MOC} -o qt3win.moc ../win/Qt3/qt3_win.h qt3tableview.moc: ../win/Qt3/qt3tableview.h -- $(QTDIR)/bin/moc -o qt3tableview.moc ../win/Qt/qt3tableview.h -+ ${MOC} -o qt3tableview.moc ../win/Qt/qt3tableview.h +- $(QTDIR)/bin/moc -o qt3tableview.moc ../win/Qt3/qt3tableview.h ++ ${MOC} -o qt3tableview.moc ../win/Qt3/qt3tableview.h - # Qt 4 windowport meta-object-compiler output - qt_kde0.moc : ../win/Qt/qt_kde0.h + # build monst.o and objects.o before executing '$(MAKE) makedefs' + $(MAKEDEFS): $(FIRSTOBJ) \ diff --git a/games/xnethack/files/patch-sys-unix-Makefile.top b/games/xnethack/files/patch-sys-unix-Makefile.top index 7dd119a0717f..feff1aaed068 100644 --- a/games/xnethack/files/patch-sys-unix-Makefile.top +++ b/games/xnethack/files/patch-sys-unix-Makefile.top @@ -1,175 +1,152 @@ ---- sys/unix/Makefile.top.orig 2021-03-22 22:28:14 UTC +--- sys/unix/Makefile.top.orig 2022-03-07 23:57:15 UTC +++ sys/unix/Makefile.top -@@ -20,18 +20,18 @@ NHSROOT=. - - # make NetHack - #PREFIX = /usr --GAME = xnethack -+GAME = xnethack +@@ -25,15 +25,15 @@ NHSROOT=. + GAME = xnethack # GAME = nethack.prg #GAMEUID = games -#GAMEGRP = bin +GAMEGRP = games - # Permissions - some places use setgid instead of setuid, for instance - # See also the option "SECURE" in include/config.h + # Permissions - some places use setgid instead of setuid, for instance. + # See also the option "SECURE" in include/config.h. -#GAMEPERM = 04755 --FILEPERM = 0644 +GAMEPERM = 02755 -+FILEPERM = 0664 + FILEPERM = 0644 # VARFILEPERM = 0644 EXEPERM = 0755 -DIRPERM = 0755 +DIRPERM = 0775 # VARDIRPERM = 0755 - # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else HACKDIR -@@ -41,14 +41,15 @@ DIRPERM = 0755 - # therefore there should not be anything in HACKDIR that you want to keep - # (if there is, you'll have to do the installation by hand or modify the - # instructions) --#HACKDIR = $(PREFIX)/games/lib/$(GAME)dir + # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else HACKDIR +@@ -44,10 +44,12 @@ DIRPERM = 0755 + # keep (if there is, you'll have to do the installation by hand or + # modify the install commands below). + #HACKDIR = $(PREFIX)/games/lib/$(GAME)dir -#VARDIR = $(HACKDIR) -+HACKDIR = %%HACKDIR%% ++HACKDIR = %%HACKDIR%% ++INSTDIR = ${HACKDIR} +VARDIR = $(HACKDIR) -+INSTDIR = $(HACKDIR) - # Where nethack.sh in installed. If this is not defined, the wrapper is not used. + # Where nethack.sh is installed (as 'nethack'). + # If this is not defined, the shell wrapper script is not used. -#SHELLDIR = $(PREFIX)/games -+SHELLDIR = ${PREFIX}/bin ++SHELLDIR = $(PREFIX)/bin + # Extra data files depending upon the interface(s) built into nethack. # per discussion in Install.X11 and Install.Qt - #VARDATND = - # VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm --# VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm -+VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm - # for Atari/Gem - # VARDATND = nh16.img title.img GEM_RSC.RSC rip.img -@@ -75,7 +76,7 @@ VARDAT = $(VARDATD) $(VARDATND) - #CHGRP = chgrp - - # Lua version --LUA_VERSION = 5.4.2 -+LUA_VERSION = ${LUA_VER} +@@ -62,7 +64,7 @@ DIRPERM = 0755 + # X11 with GRAPHIC_TOMBSTONE (requires 'xpm'): + # VARDATND = x11tiles NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm + # both X11 and Qt: +-# VARDATND = x11tiles nhtiles.bmp NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm ++VARDATND = x11tiles nhtiles.bmp NetHack.ad pet_mark.xbm pilemark.xbm rip.xpm + # Qt without X11; assumes GRAPHIC_TOMBSTONE: + # VARDATND = nhtiles.bmp pet_mark.xbm pilemark.xbm rip.xpm - # - # end of configuration -@@ -108,7 +109,7 @@ all: $(ALLDEP) +@@ -123,7 +125,7 @@ all: $(ALLDEP) $(GAME): lua_support ( cd src ; $(MAKE) $(GAME) ) -lua_support: $(TOPLUALIB) include/nhlua.h +lua_support: include/nhlua.h @true - lib/lua-$(LUA_VERSION)/src/liblua.a: lib/lua-$(LUA_VERSION)/src/lua.h - ( cd lib/lua-$(LUA_VERSION)/src \ -@@ -116,13 +117,11 @@ lib/lua-$(LUA_VERSION)/src/liblua.a: lib/lua-$(LUA_VER - lib/lua/liblua.a: lib/lua-$(LUA_VERSION)/src/liblua.a - @( if [ ! -d lib/lua ] ; then mkdir -p lib/lua ; fi ) - cp lib/lua-$(LUA_VERSION)/src/liblua.a $@ + $(LUATOP)/liblua.a: $(LUAHEADERS)/lua.h + ( cd $(LUATOP) \ +@@ -131,13 +133,11 @@ $(LUATOP)/liblua.a: $(LUAHEADERS)/lua.h + lib/lua/liblua.a: $(LUATOP)/liblua.a + @( if test -d lib/lua ; then true ; else mkdir -p lib/lua ; fi ) + cp $(LUATOP)/liblua.a $@ -include/nhlua.h: $(TOPLUALIB) +include/nhlua.h: echo '/* nhlua.h - generated by top Makefile */' > $@ -- @echo '#include "../lib/lua-$(LUA_VERSION)/src/lua.h"' >> $@ +- @echo '#include "../$(LUAHEADERS)/lua.h"' >> $@ - @sed -e '/(lua_error)/!d' -e '/(lua_error)/s/;/ NORETURN;/1' \ -- < lib/lua-$(LUA_VERSION)/src/lua.h >> $@ -- @echo '#include "../lib/lua-$(LUA_VERSION)/src/lualib.h"' >> $@ -- @echo '#include "../lib/lua-$(LUA_VERSION)/src/lauxlib.h"' >> $@ +- < $(LUAHEADERS)/lua.h >> $@ +- @echo '#include "../$(LUAHEADERS)/lualib.h"' >> $@ +- @echo '#include "../$(LUAHEADERS)/lauxlib.h"' >> $@ + @echo '#include ' >> $@ + @echo '#include ' >> $@ + @echo '#include ' >> $@ @echo '/*nhlua.h*/' >> $@ - - # Note: many of the dependencies below are here to allow parallel make -@@ -234,39 +233,22 @@ dofiles: + # LUATESTTARGET is this by default + lib/lua-$(LUA_VERSION)/src/lua.h: +@@ -258,39 +258,22 @@ dofiles: -e '}' \ -e '$$s/.*/nodlb/p' < dat/options` ; \ $(MAKE) dofiles-$${target-nodlb} - cp src/$(GAME) $(INSTDIR) - cp util/recover $(INSTDIR) - -if test -n '$(SHELLDIR)'; then rm -f $(SHELLDIR)/$(GAME); fi +- if test -n '$(SHELLDIR)'; then \ + cp src/$(GAME) ${DESTDIR}$(INSTDIR)/$(GAME) + cp util/recover ${DESTDIR}$(INSTDIR) + -if test -n '${DESTDIR}$(SHELLDIR)'; then rm -f ${DESTDIR}$(SHELLDIR)/$(GAME); fi - if test -n '$(SHELLDIR)'; then \ ++ if test -n '${DESTDIR}$(SHELLDIR)'; then \ sed -e 's;/usr/games/lib/nethackdir;$(HACKDIR);' \ -e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \ < sys/unix/nethack.sh \ - > $(SHELLDIR)/$(GAME) ; fi -# set up their permissions - -( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) $(GAME) recover ; \ - $(CHGRP) $(GAMEGRP) $(GAME) recover ) - chmod $(GAMEPERM) $(INSTDIR)/$(GAME) - chmod $(EXEPERM) $(INSTDIR)/recover - -if test -n '$(SHELLDIR)'; then \ - $(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME); fi - if test -n '$(SHELLDIR)'; then \ - $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME); \ - chmod $(EXEPERM) $(SHELLDIR)/$(GAME); fi + > ${DESTDIR}$(SHELLDIR)/$(GAME) ; fi dofiles-dlb: check-dlb - ( cd dat ; cp nhdat $(DATNODLB) $(INSTDIR) ) -# set up their permissions - -( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) nhdat $(DATNODLB) ; \ - $(CHGRP) $(GAMEGRP) nhdat $(DATNODLB) ; \ - chmod $(FILEPERM) nhdat $(DATNODLB) ) + ( cd dat ; cp nhdat $(DATNODLB) ${DESTDIR}$(INSTDIR) ) dofiles-nodlb: # copy over the game files - ( cd dat ; cp $(DAT) $(INSTDIR) ) -# set up their permissions - -( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) $(DAT) ; \ - $(CHGRP) $(GAMEGRP) $(DAT) ; \ - chmod $(FILEPERM) $(DAT) ) + ( cd dat ; cp $(DAT) ${DESTDIR}$(INSTDIR) ) + # # This is not part of the dependency build hierarchy. # It requires an explicit "make fetch-Lua". -@@ -283,13 +265,9 @@ fetch-Lua: - update: $(GAME) recover $(VARDAT) spec_levs - # (don't yank the old version out from under people who're playing it) - -mv $(INSTDIR)/$(GAME) $(INSTDIR)/$(GAME).old -- -mv $(INSTDIR)/nhdat $(INSTDIR)/nhdat.old -+ -mv ${DESTDIR}$(INSTDIR)/nhdat ${DESTDIR}$(INSTDIR)/nhdat.old - # set up new versions of the game files - ( $(MAKE) dofiles ) --# touch time-sensitive files -- -touch -c $(VARDIR)/bones* $(VARDIR)/?lock* $(VARDIR)/wizard* -- -touch -c $(VARDIR)/save/* $(VARDIR)/whereis/* -- touch $(VARDIR)/perm $(VARDIR)/record - # and a reminder - @echo You may also want to install the man pages via the doc Makefile. - -@@ -300,25 +278,16 @@ install: rootcheck $(GAME) recover $(VARDAT) spec_levs +@@ -327,25 +310,17 @@ install: rootcheck $(GAME) recover $(VARDAT) spec_levs true; $(PREINSTALL) # set up the directories # not all mkdirs have -p; those that don't will create a -p directory - -if test -n '$(SHELLDIR)'; then \ - mkdir -p $(SHELLDIR); fi - rm -rf $(INSTDIR) $(VARDIR) - -mkdir -p $(INSTDIR) $(VARDIR) $(VARDIR)/save $(VARDIR)/whereis + -if test -n '${DESTDIR}$(SHELLDIR)'; then \ + mkdir -p ${DESTDIR}$(SHELLDIR); fi + rm -rf ${DESTDIR}$(INSTDIR) ${DESTDIR}$(VARDIR) -+ -mkdir -p ${DESTDIR}$(INSTDIR) ${DESTDIR}$(VARDIR) ${DESTDIR}$(VARDIR)/save ${DESTDIR}$(VARDIR)/whereis ++ -mkdir -p ${DESTDIR}$(INSTDIR) ${DESTDIR}$(VARDIR)/save ${DESTDIR}$(VARDIR)/whereis if test -d ./-p; then rmdir ./-p; fi - -$(CHOWN) $(GAMEUID) $(INSTDIR) $(VARDIR) $(VARDIR)/save $(VARDIR)/whereis - $(CHGRP) $(GAMEGRP) $(INSTDIR) $(VARDIR) $(VARDIR)/save $(VARDIR)/whereis # order counts here: - chmod $(DIRPERM) $(INSTDIR) - chmod $(VARDIRPERM) $(VARDIR) $(VARDIR)/save $(VARDIR)/whereis # set up the game files ( $(MAKE) dofiles ) # set up some additional files -- touch $(VARDIR)/perm $(VARDIR)/record $(VARDIR)/logfile \ -- $(VARDIR)/xlogfile $(VARDIR)/livelog -- -( cd $(VARDIR) ; \ -- $(CHOWN) $(GAMEUID) perm record logfile xlogfile livelog ; \ -- $(CHGRP) $(GAMEGRP) perm record logfile xlogfile livelog ; \ -- chmod $(VARFILEPERM) perm record logfile xlogfile livelog ) -+ touch ${DESTDIR}$(VARDIR)/perm ${DESTDIR}$(VARDIR)/record ${DESTDIR}$(VARDIR)/logfile ${DESTDIR}$(VARDIR)/xlogfile - true; $(POSTINSTALL) +- touch $(VARDIR)/perm $(VARDIR)/record $(VARDIR)/logfile $(VARDIR)/xlogfile \ +- $(VARDIR)/livelog +- -( cd $(VARDIR) ; $(CHOWN) $(GAMEUID) perm record logfile xlogfile livelog ; \ +- $(CHGRP) $(GAMEGRP) perm record logfile xlogfile livelog ; \ +- chmod $(VARFILEPERM) perm record logfile xlogfile livelog ) +- true; $(POSTINSTALL) ++ touch ${DESTDIR}$(VARDIR)/perm ${DESTDIR}$(VARDIR)/record \ ++ ${DESTDIR}$(VARDIR)/logfile ${DESTDIR}$(VARDIR)/xlogfile ${DESTDIR}$(VARDIR)/livelog # and a reminder @echo You may also want to reinstall the man pages via the doc Makefile. + diff --git a/games/xnethack/files/patch-sys-unix-Makefile.utl b/games/xnethack/files/patch-sys-unix-Makefile.utl index 10fd6bc5aa42..35c331bd7b72 100644 --- a/games/xnethack/files/patch-sys-unix-Makefile.utl +++ b/games/xnethack/files/patch-sys-unix-Makefile.utl @@ -1,33 +1,33 @@ ---- sys/unix/Makefile.utl.orig 2021-03-22 22:28:14 UTC +--- sys/unix/Makefile.utl.orig 2022-03-07 23:57:15 UTC +++ sys/unix/Makefile.utl -@@ -93,18 +93,25 @@ NHSROOT=.. +@@ -98,18 +98,25 @@ NHSROOT=.. # flags for debugging: # CFLAGS = -g -I../include -#CFLAGS = -O -I../include -#LFLAGS = +CFLAGS += -I../include -I${LUA_INCDIR} +ifeq ("$(GRAPHICS)","X11_GRAPHICS") +CFLAGS += -DX11_GRAPHICS +endif +ifeq ("$(GRAPHICS)","QT_GRAPHICS") +CFLAGS += -DQT_GRAPHICS +endif +ifeq ("$(GRAPHICS)","GNOME_GRAPHICS") +CFLAGS += -DGNOME_GRAPHICS +endif -# -lm required by lua -LFLAGS += -lm +LFLAGS = -L${LUA_LIBDIR} # we specify C preprocessor flags via CFLAGS; files built with default rules # might include $(CPPFLAGS) which could get a value from user's environment; # we avoid that by forcing it empty rather than by overriding default rules CPPFLAGS = -LIBS = +LIBS = -llua-${LUA_VER} -lm OBJDIR = ../src diff --git a/games/xnethack/files/patch-sys-unix-sysconf b/games/xnethack/files/patch-sys-unix-sysconf index 4629279cc86d..1647d57bd4ea 100644 --- a/games/xnethack/files/patch-sys-unix-sysconf +++ b/games/xnethack/files/patch-sys-unix-sysconf @@ -1,11 +1,11 @@ ---- sys/unix/sysconf.orig 2021-03-22 22:28:14 UTC +--- sys/unix/sysconf.orig 2022-03-07 23:57:15 UTC +++ sys/unix/sysconf -@@ -136,7 +136,7 @@ LLC_TURNS=3000 +@@ -134,7 +134,7 @@ LIVELOG=0x1FFF # %D current time, YYYYMMDDhhmmss format # %n player name # %N first character of player name -DUMPLOGFILE=/tmp/xnethack.%n.%d.log +DUMPLOGFILE=/tmp/nethack.%v.%u.%n.%D.log # End of game HTML dump. # Only available if NetHack was compiled with DUMPHTML diff --git a/games/xnethack/files/patch-util-makedefs.c b/games/xnethack/files/patch-util-makedefs.c index 13d38f3bfba0..e6770b1f0cd3 100644 --- a/games/xnethack/files/patch-util-makedefs.c +++ b/games/xnethack/files/patch-util-makedefs.c @@ -1,71 +1,71 @@ ---- util/makedefs.c.orig 2021-03-22 22:28:14 UTC +--- util/makedefs.c.orig 2022-03-07 23:57:15 UTC +++ util/makedefs.c @@ -116,6 +116,7 @@ static struct version_info version; #define MAXFNAMELEN 600 static char filename[MAXFNAMELEN]; +static char tempfilename[MAXFNAMELEN]; #ifdef FILE_PREFIX /* if defined, a first argument not starting with - is -@@ -229,6 +230,12 @@ main(int argc, char *argv[]) +@@ -230,6 +231,12 @@ main(int argc, char *argv[]) return 1; } + if (snprintf(tempfilename, sizeof(tempfilename), "%s.%d", "grep.tmp", getpid()) >= sizeof(tempfilename)) { + Fprintf(stderr, "Cannot create temporary filename."); + (void) fflush(stderr); + return 1; + } + #ifdef FILE_PREFIX if (argc >= 2 && argv[1][0] != '-') { file_prefix = argv[1]; -@@ -964,12 +971,12 @@ do_rnd_access_file(const char* fname, const char* defl - more likely to be picked than normal but it's nothing to worry about */ - (void) fputs(xcrypt(deflt_content), ofp); +@@ -989,12 +996,12 @@ do_rnd_access_file( + Strcat(buf, "\n"); /* so make sure that the default one does too */ + (void) fputs(xcrypt(padline(buf, padlength)), ofp); - tfp = getfp(DATA_TEMPLATE, "grep.tmp", WRTMODE, FLG_TEMPFILE); + tfp = getfp(DATA_TEMPLATE, tempfilename, WRTMODE, FLG_TEMPFILE); grep0(ifp, tfp, FLG_TEMPFILE); #ifndef HAS_NO_MKSTEMP ifp = tfp; #else - ifp = getfp(DATA_TEMPLATE, "grep.tmp", RDTMODE, 0); + ifp = getfp(DATA_TEMPLATE, tempfilename, RDTMODE, 0); #endif while ((line = fgetline(ifp)) != 0) { - if (line[0] != '#' && line[0] != '\n') -@@ -980,7 +987,7 @@ do_rnd_access_file(const char* fname, const char* defl + if (line[0] != '#' && line[0] != '\n') { +@@ -1007,7 +1014,7 @@ do_rnd_access_file( Fclose(ofp); #ifdef HAS_NO_MKSTEMP - delete_file(DATA_TEMPLATE, "grep.tmp"); + delete_file(DATA_TEMPLATE, templfilename); #endif return; } -@@ -1758,12 +1765,12 @@ do_dungeon(void) +@@ -1791,12 +1798,12 @@ do_dungeon(void) } Fprintf(ofp, "%s", Dont_Edit_Data); - tfp = getfp(DATA_TEMPLATE, "grep.tmp", WRTMODE, FLG_TEMPFILE); + tfp = getfp(DATA_TEMPLATE, tempfilename, WRTMODE, FLG_TEMPFILE); grep0(ifp, tfp, FLG_TEMPFILE); #ifndef HAS_NO_MKSTEMP ifp = tfp; #else - ifp = getfp(DATA_TEMPLATE, "grep.tmp", RDTMODE, 0); + ifp = getfp(DATA_TEMPLATE, tempfilename, RDTMODE, 0); #endif while ((line = fgetline(ifp)) != 0) { SpinCursor(3); -@@ -1779,7 +1786,7 @@ do_dungeon(void) +@@ -1812,7 +1819,7 @@ do_dungeon(void) Fclose(ofp); #ifdef HAS_NO_MKSTEMP - delete_file(DATA_TEMPLATE, "grep.tmp"); + delete_file(DATA_TEMPLATE, tempfilename); #endif return; } diff --git a/games/xnethack/files/patch-win-tty-termcap.c b/games/xnethack/files/patch-win-tty-termcap.c index 9338a9c87743..4569b7e54fcd 100644 --- a/games/xnethack/files/patch-win-tty-termcap.c +++ b/games/xnethack/files/patch-win-tty-termcap.c @@ -1,13 +1,13 @@ ---- win/tty/termcap.c.orig 2021-03-22 22:28:14 UTC +--- win/tty/termcap.c.orig 2022-03-07 23:57:15 UTC +++ win/tty/termcap.c -@@ -185,10 +185,6 @@ tty_startup(int *wid, int *hgt) +@@ -188,10 +188,6 @@ tty_startup(int *wid, int *hgt) error("Terminal must backspace."); #else if (!(BC = Tgetstr("bc"))) { /* termcap also uses bc/bs */ -#ifndef MINIMAL_TERM - if (!tgetflag("bs")) - error("Terminal must backspace."); -#endif BC = tbufptr; tbufptr += 2; *BC = '\b'; diff --git a/games/xnethack/files/patch-win_Qt_qt__pre.h b/games/xnethack/files/patch-win_Qt_qt__pre.h new file mode 100644 index 000000000000..5c32ef0f8dc0 --- /dev/null +++ b/games/xnethack/files/patch-win_Qt_qt__pre.h @@ -0,0 +1,11 @@ +--- win/Qt/qt_pre.h.orig 2022-03-11 00:02:45 UTC ++++ win/Qt/qt_pre.h +@@ -28,7 +28,7 @@ + #pragma GCC diagnostic ignored "-Wshadow" + #endif + +-#include ++#include + + /* QFontMetrics::width was deprecated in Qt 5.11 */ + #if QT_VERSION < QT_VERSION_CHECK(5, 11, 0) diff --git a/games/xnethack/pkg-plist b/games/xnethack/pkg-plist index 4cc6d9988bd1..28cdcc50fcee 100644 --- a/games/xnethack/pkg-plist +++ b/games/xnethack/pkg-plist @@ -1,179 +1,187 @@ @mode 555 bin/%%HACKNAME%% @owner games @group games @mode 02755 %%DATADIR%%/%%HACKNAME%% @mode %%DATADIR%%/Arc-fila.lua %%DATADIR%%/Arc-filb.lua %%DATADIR%%/Arc-goal.lua %%DATADIR%%/Arc-loca.lua %%DATADIR%%/Arc-strt.lua %%DATADIR%%/Bar-fila.lua %%DATADIR%%/Bar-filb.lua %%DATADIR%%/Bar-goal.lua %%DATADIR%%/Bar-loca.lua %%DATADIR%%/Bar-strt.lua %%DATADIR%%/Cav-fila.lua %%DATADIR%%/Cav-filb.lua %%DATADIR%%/Cav-goal.lua %%DATADIR%%/Cav-loca.lua %%DATADIR%%/Cav-strt.lua %%DATADIR%%/Hea-fila.lua %%DATADIR%%/Hea-filb.lua %%DATADIR%%/Hea-goal.lua %%DATADIR%%/Hea-loca.lua %%DATADIR%%/Hea-strt.lua %%DATADIR%%/Kni-fila.lua %%DATADIR%%/Kni-filb.lua %%DATADIR%%/Kni-goal.lua %%DATADIR%%/Kni-loca.lua %%DATADIR%%/Kni-strt.lua %%DATADIR%%/Mon-fila.lua %%DATADIR%%/Mon-filb.lua %%DATADIR%%/Mon-goal.lua %%DATADIR%%/Mon-loca.lua %%DATADIR%%/Mon-strt.lua %%DATADIR%%/NHdump.css %%DATADIR%%/NetHack.ad %%DATADIR%%/Pri-fila.lua %%DATADIR%%/Pri-filb.lua %%DATADIR%%/Pri-goal.lua %%DATADIR%%/Pri-loca.lua %%DATADIR%%/Pri-strt.lua %%DATADIR%%/Ran-fila.lua %%DATADIR%%/Ran-filb.lua %%DATADIR%%/Ran-goal.lua %%DATADIR%%/Ran-loca.lua %%DATADIR%%/Ran-strt.lua %%DATADIR%%/Rog-fila.lua %%DATADIR%%/Rog-filb.lua %%DATADIR%%/Rog-goal.lua %%DATADIR%%/Rog-loca.lua %%DATADIR%%/Rog-strt.lua %%DATADIR%%/Sam-fila.lua %%DATADIR%%/Sam-filb.lua %%DATADIR%%/Sam-goal.lua %%DATADIR%%/Sam-loca.lua %%DATADIR%%/Sam-strt.lua %%DATADIR%%/Tou-fila.lua %%DATADIR%%/Tou-filb.lua %%DATADIR%%/Tou-goal.lua %%DATADIR%%/Tou-loca.lua %%DATADIR%%/Tou-strt.lua %%DATADIR%%/Val-fila.lua %%DATADIR%%/Val-filb.lua %%DATADIR%%/Val-goal.lua %%DATADIR%%/Val-loca.lua %%DATADIR%%/Val-strt.lua %%DATADIR%%/Wiz-fila.lua %%DATADIR%%/Wiz-filb.lua %%DATADIR%%/Wiz-goal.lua %%DATADIR%%/Wiz-loca.lua %%DATADIR%%/Wiz-strt.lua %%DATADIR%%/air.lua %%DATADIR%%/asmodeus.lua %%DATADIR%%/astral.lua %%DATADIR%%/baalz.lua %%DATADIR%%/bigrm-1.lua %%DATADIR%%/bigrm-10.lua %%DATADIR%%/bigrm-11.lua +%%DATADIR%%/bigrm-12.lua %%DATADIR%%/bigrm-2.lua %%DATADIR%%/bigrm-3.lua %%DATADIR%%/bigrm-4.lua %%DATADIR%%/bigrm-5.lua %%DATADIR%%/bigrm-6.lua %%DATADIR%%/bigrm-7.lua %%DATADIR%%/bigrm-8.lua %%DATADIR%%/bigrm-9.lua %%DATADIR%%/bogusmon %%DATADIR%%/castle.lua %%DATADIR%%/cmdhelp %%DATADIR%%/data %%DATADIR%%/dungeon.lua %%DATADIR%%/earth.lua %%DATADIR%%/engrave %%DATADIR%%/epitaph %%DATADIR%%/fakewiz1.lua %%DATADIR%%/fakewiz2.lua %%DATADIR%%/fire.lua %%DATADIR%%/help %%DATADIR%%/hh %%DATADIR%%/history +%%DATADIR%%/invocation.lua %%DATADIR%%/juiblex.lua %%DATADIR%%/keyhelp %%DATADIR%%/knox.lua %%DATADIR%%/license +@sample(games,games,664) %%DATADIR%%/livelog.sample @sample(games,games,664) %%DATADIR%%/logfile.sample %%DATADIR%%/medusa-1.lua %%DATADIR%%/medusa-2.lua %%DATADIR%%/medusa-3.lua %%DATADIR%%/medusa-4.lua %%DATADIR%%/minefill.lua %%DATADIR%%/minend-1.lua %%DATADIR%%/minend-2.lua %%DATADIR%%/minend-3.lua %%DATADIR%%/minend-4.lua %%DATADIR%%/minetn-1.lua %%DATADIR%%/minetn-2.lua %%DATADIR%%/minetn-3.lua %%DATADIR%%/minetn-4.lua %%DATADIR%%/minetn-5.lua %%DATADIR%%/minetn-6.lua %%DATADIR%%/minetn-7.lua %%DATADIR%%/minetn-8.lua +%%DATADIR%%/nhcore.lua %%DATADIR%%/nhlib.lua +%%DATADIR%%/nhtiles.bmp %%DATADIR%%/opthelp %%DATADIR%%/options +%%DATADIR%%/optmenu %%DATADIR%%/oracle-1.lua %%DATADIR%%/oracle-2.lua %%DATADIR%%/oracle-3.lua %%DATADIR%%/oracles %%DATADIR%%/orcus.lua @mode 664 %%DATADIR%%/perm @mode %%DATADIR%%/pet_mark.xbm %%DATADIR%%/pilemark.xbm %%DATADIR%%/quest.lua @sample(games,games,664) %%DATADIR%%/record.sample @mode 02755 %%DATADIR%%/recover @mode +%%DATADIR%%/rip.xpm %%DATADIR%%/rumors %%DATADIR%%/sanctum.lua %%DATADIR%%/shirts %%DATADIR%%/soko1-1.lua %%DATADIR%%/soko1-2.lua %%DATADIR%%/soko2-1.lua %%DATADIR%%/soko2-2.lua %%DATADIR%%/soko3-1.lua %%DATADIR%%/soko3-2.lua %%DATADIR%%/soko4-1.lua %%DATADIR%%/soko4-2.lua %%DATADIR%%/symbols @sample(games,games,) %%DATADIR%%/sysconf.sample %%DATADIR%%/themerms.lua %%DATADIR%%/tower1.lua %%DATADIR%%/tower2.lua %%DATADIR%%/tower3.lua +%%DATADIR%%/tower4.lua %%DATADIR%%/tribute %%DATADIR%%/valley.lua %%DATADIR%%/water.lua %%DATADIR%%/wizard1.lua %%DATADIR%%/wizard2.lua %%DATADIR%%/wizard3.lua %%DATADIR%%/wizhelp %%DATADIR%%/x11tiles @sample(games,games,664) %%DATADIR%%/xlogfile.sample @owner @group man/man6/dlb.6.gz man/man6/makedefs.6.gz man/man6/recover.6.gz man/man6/%%HACKNAME%%.6.gz %%PORTDOCS%%%%DOCSDIR%%/Guidebook.txt @dir(games,games,0775) %%DATADIR%%/save @dir(games,games,0775) %%DATADIR%%/whereis @dir(games,games,0775) %%DATADIR%%