aboutsummaryrefslogtreecommitdiffstats
path: root/games/nethack33
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-06-14 12:14:38 +0800
committerknu <knu@FreeBSD.org>2002-06-14 12:14:38 +0800
commite7d6b45ce0e9037ea24b77d04438eb5ccd9e36ed (patch)
tree691746be9115112bd764683687f7fa8ab07b1e4a /games/nethack33
parentb9afa1cbba0596324b2bc3d5b53f44febf09e3d6 (diff)
downloadfreebsd-ports-gnome-e7d6b45ce0e9037ea24b77d04438eb5ccd9e36ed.tar.gz
freebsd-ports-gnome-e7d6b45ce0e9037ea24b77d04438eb5ccd9e36ed.tar.zst
freebsd-ports-gnome-e7d6b45ce0e9037ea24b77d04438eb5ccd9e36ed.zip
Make nethack33 ports a master port and the slaves, and unbreak
nethack33-gnome. PR: ports/38220 Submitted by: KATO Tsuguru <tkato@prontomail.com> No response from: MAINTAINERs
Diffstat (limited to 'games/nethack33')
-rw-r--r--games/nethack33/Makefile61
-rw-r--r--games/nethack33/files/patch-aa15
-rw-r--r--games/nethack33/files/patch-ac6
-rw-r--r--games/nethack33/files/patch-ad113
-rw-r--r--games/nethack33/files/patch-ae23
-rw-r--r--games/nethack33/files/patch-af21
-rw-r--r--games/nethack33/files/patch-ag21
-rw-r--r--games/nethack33/files/patch-ah10
-rw-r--r--games/nethack33/pkg-descr6
-rw-r--r--games/nethack33/pkg-plist269
10 files changed, 353 insertions, 192 deletions
diff --git a/games/nethack33/Makefile b/games/nethack33/Makefile
index ea19b7314b8f..74c514073470 100644
--- a/games/nethack33/Makefile
+++ b/games/nethack33/Makefile
@@ -7,28 +7,73 @@
PORTNAME= nethack
PORTVERSION= 3.3.1
-CATEGORIES= games
+PORTREVISION= 1
+CATEGORIES?= games
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh${PORTVERSION:S/.//g}/src/
-MASTER_SITE_SUBDIR= nethack
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
-MAINTAINER= dscheidt@enteract.com
+MAINTAINER?= dscheidt@enteract.com
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USE_XPM= yes
+
USE_GMAKE= yes
+MAKE_ENV= CXX="${CXX}" GRAPHICS="${GRAPHICS}"
+
MAN6= dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6
+.if defined(WITH_GNOME_GRAPHICS)
+CATEGORIES= games gnome
+PKGNAMESUFFIX= -gnome
+LIB_DEPENDS+= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+USE_GNOME= yes
+GRAPHICS= GNOME_GRAPHICS
+.elif defined(WITH_QT_GRAPHICS)
+PKGNAMESUFFIX= -qt
+USE_QT_VER= 2
+MAKE_ENV+= QTCPPFLAGS="${QTCPPFLAGS}" QTCFGLIBS="${QTCFGLIBS}" \
+ MOC="${MOC}" LIBQT="-l${QTNAME}"
+GRAPHICS= QT_GRAPHICS
+.elif defined(WITH_TTY_GRAPHICS) || defined(WITHOUT_X11)
+PKGNAMESUFFIX= -nox11
+.else
+USE_XPM= yes
+GRAPHICS= X11_GRAPHICS
+.endif
+
+pre-everything::
+.if defined(WITH_GNOME_GRAPHICS) || defined(WITH_QT_GRAPHICS) \
+ || defined(WITH_TTY_GRAPHICS) || defined(WITHOUT_X11)
+ @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @${ECHO_MSG} " You cannot install nethack and ${PKGBASE} in parallel "
+ @${ECHO_MSG} " But ${PKGBASE} read your prior nethack scores "
+ @${ECHO_MSG} " Don't forget to backup your nethack libdir if it's "
+ @${ECHO_MSG} " important for you "
+ @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+.else
+ @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @${ECHO_MSG} " You may use the following build options: "
+ @${ECHO_MSG} " WITH_GNOME_GRAPHICS=yes build with GNOME GUI "
+ @${ECHO_MSG} " WITH_QT_GRAPHICS=yes build with Qt GUI "
+ @${ECHO_MSG} " WITH_TTY_GRAPHICS=yes build with no GUI "
+ @${ECHO_MSG} " WITHOUT_X11=yes same as above "
+ @${ECHO_MSG} " "
+ @${ECHO_MSG} " By default, nethack port is built with X11 GUI. "
+ @${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+.endif
+
+post-patch:
+ @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/include/config.h
+ @${PERL} -pi -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
+
pre-configure:
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
post-install:
- @cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
- @cd ${WRKSRC}/doc; PREFIX=${PREFIX} ${MAKE} manpages
+ @cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} manpages
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/nethack
- ${CP} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/games/nethack33/files/patch-aa b/games/nethack33/files/patch-aa
index 00fdb88cfdef..8d5758e3ab86 100644
--- a/games/nethack33/files/patch-aa
+++ b/games/nethack33/files/patch-aa
@@ -1,14 +1,5 @@
---- ./include/config.h.orig Sat Jul 22 11:13:51 2000
-+++ ./include/config.h Fri Oct 13 09:31:24 2000
-@@ -43,7 +43,7 @@
- * Some combinations make no sense. See the installation document.
- */
- #define TTY_GRAPHICS /* good old tty based graphics */
--/* #define X11_GRAPHICS */ /* X11 interface */
-+#define X11_GRAPHICS /* X11 interface */
- /* #define QT_GRAPHICS */ /* Qt interface */
- /* #define GNOME_GRAPHICS */ /* Gnome interface */
-
+--- include/config.h.orig Sat Jul 22 10:13:51 2000
++++ include/config.h Sat May 18 06:27:54 2002
@@ -110,7 +110,7 @@
* would allow:
* xpmtoppm <x11tiles.xpm | pnmscale 1.25 | ppmquant 90 >x11tiles_big.xpm
@@ -39,7 +30,7 @@
*/
# ifndef HACKDIR
-# define HACKDIR "/usr/games/lib/nethackdir" /* nethack directory */
-+# define HACKDIR "/usr/local/share/nethack" /* nethack directory */
++# define HACKDIR "%%PREFIX%%/lib/nethack" /* nethack directory */
# endif
/*
diff --git a/games/nethack33/files/patch-ac b/games/nethack33/files/patch-ac
index 69afffdc04f2..d2eec6982326 100644
--- a/games/nethack33/files/patch-ac
+++ b/games/nethack33/files/patch-ac
@@ -1,5 +1,5 @@
---- ./include/unixconf.h.orig Mon Jul 17 11:03:51 2000
-+++ ./include/unixconf.h Fri Oct 13 10:06:57 2000
+--- include/unixconf.h.orig Mon Jul 17 11:03:51 2000
++++ include/unixconf.h Fri Oct 13 10:06:57 2000
@@ -47,7 +47,7 @@
* job control (note that AIX is SYSV otherwise)
* Also define this for AIX 3.2 */
@@ -14,7 +14,7 @@
*/
-#define MAIL /* Deliver mail during the game */
-+/* #define MAIL /* Deliver mail during the game */
++/* #define MAIL */ /* Deliver mail during the game */
/* The Andrew Message System does mail a little differently from normal
* UNIX. Mail is deposited in the user's own directory in ~/Mailbox
diff --git a/games/nethack33/files/patch-ad b/games/nethack33/files/patch-ad
index 55ac0004fdf5..51e4a09f5a54 100644
--- a/games/nethack33/files/patch-ad
+++ b/games/nethack33/files/patch-ad
@@ -1,51 +1,114 @@
---- ./sys/unix/Makefile.src.orig Sat Aug 5 20:52:57 2000
-+++ ./sys/unix/Makefile.src Fri Oct 13 10:10:21 2000
-@@ -144,8 +144,8 @@
+--- sys/unix/Makefile.src.orig Sat Aug 5 19:52:57 2000
++++ sys/unix/Makefile.src Sat May 18 01:19:31 2002
+@@ -139,19 +139,28 @@
+ # directories. The ones given below is the usual spot for linux systems.
+ # The paths are for glibconfig.h and gnomesupport.h respectively.
+ #
+-GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome
++GNOMEINC= $(shell ${GNOME_CONFIG} --cflags gnomeui)
+
# flags for debugging:
# CFLAGS = -g -I../include
++CFLAGS += -I../include
++ifeq ("$(GRAPHICS)","X11_GRAPHICS")
++CFLAGS += -DX11_GRAPHICS -I${X11BASE}/include
++endif
++ifeq ("$(GRAPHICS)","QT_GRAPHICS")
++CFLAGS += -DQT_GRAPHICS
++endif
++ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
++CFLAGS += -DGNOME_GRAPHICS
++endif
-CFLAGS = -O -I../include
--LFLAGS =
-+CFLAGS += -O -I../include -I${X11BASE}/include
-+LFLAGS = -L${X11BASE}/lib
+ LFLAGS =
# The Qt and Be window systems are written in C++, while the rest of
# NetHack is standard C. If using Qt, uncomment the LD line here to get
-@@ -203,8 +203,8 @@
+ # the C++ libraries linked in.
+-CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include
+-CXX=g++
++CXXFLAGS += -I. -I../include ${QTCPPFLAGS}
++#CXX=g++
+ #LD=g++
+ # Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired
+@@ -204,7 +213,26 @@
#
#
--WINSRC = $(WINTTYSRC)
--WINOBJ = $(WINTTYOBJ)
-+WINSRC = $(WINTTYSRC) $(WINX11SRC)
-+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
+ WINSRC = $(WINTTYSRC)
++ifeq ("$(GRAPHICS)","X11_GRAPHICS")
++WINSRC += $(WINX11SRC)
++endif
++ifeq ("$(GRAPHICS)","QT_GRAPHICS")
++WINSRC += $(WINQTSRC)
++endif
++ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
++WINSRC += $(WINGNOMESRC)
++endif
++
+ WINOBJ = $(WINTTYOBJ)
++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
-@@ -224,7 +224,7 @@
+@@ -224,19 +252,19 @@
#
# libraries for X11
# If USE_XPM is defined in config.h, you will also need -lXpm here.
-WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
-+WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
++WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -L${X11BASE}/lib
# 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
-@@ -244,7 +244,7 @@
- # libraries for BeOS
+ #
+ # libraries for Qt
+-WINQTLIB = -L$(QTDIR)/lib -lqt
++WINQTLIB = ${QTCFGLIBS} ${LIBQT}
+ #
+ # libraries for KDE (with Qt)
+ WINKDELIB = -lkdecore -lkdeui -lXext
+ #
+ # libraries for Gnome
+-WINGNOMELIB = -lgnomeui -lgnome -lart_lgpl -lgtk -lgdk -lpopt
++WINGNOMELIB = $(shell ${GNOME_CONFIG} --libs gnomeui) -lgnugetopt
+ #
+ # libraries for Gem port
+ WINGEMLIB = -le_gem -lgem
+@@ -245,6 +273,15 @@
WINBELIB = -lbe
--WINLIB = $(WINTTYLIB)
-+WINLIB = $(WINTTYLIB) $(WINX11LIB)
+ WINLIB = $(WINTTYLIB)
++ifeq ("$(GRAPHICS)","X11_GRAPHICS")
++WINLIB += $(WINX11LIB)
++endif
++ifeq ("$(GRAPHICS)","QT_GRAPHICS")
++WINLIB += $(WINQTLIB)
++endif
++ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
++WINLIB += $(WINGNOMELIB)
++endif
# any other strange libraries your system needs (for Sysunix only -- the more
# specialized targets should already be right)
-@@ -271,7 +271,7 @@
- # IRIX 4.0.x needs -lsun if NIS (YP) is being used for passwd file lookup
- # LIBS = -lsun
- #
--LIBS =
-+LIBS = -lSM -lICE
+@@ -445,10 +482,10 @@
+
+ # Qt windowport meta-object-compiler output
+ qt_kde0.moc: ../include/qt_kde0.h
+- $(QTDIR)/bin/moc ../include/qt_kde0.h > qt_kde0.moc
++ ${MOC} ../include/qt_kde0.h > qt_kde0.moc
+
+ qt_win.moc: ../include/qt_win.h
+- $(QTDIR)/bin/moc ../include/qt_win.h > qt_win.moc
++ ${MOC} ../include/qt_win.h > qt_win.moc
- # make NetHack
- GAME = nethack
+ $(MAKEDEFS): ../util/makedefs.c $(CONFIG_H) ../include/permonst.h \
+ ../include/objclass.h ../include/monsym.h \
diff --git a/games/nethack33/files/patch-ae b/games/nethack33/files/patch-ae
index e655d0e9ff0b..42d88c741d3f 100644
--- a/games/nethack33/files/patch-ae
+++ b/games/nethack33/files/patch-ae
@@ -1,5 +1,5 @@
---- ./sys/unix/Makefile.top.orig Tue Jul 4 10:42:05 2000
-+++ ./sys/unix/Makefile.top Fri Oct 13 10:13:50 2000
+--- sys/unix/Makefile.top.orig Tue Jul 4 09:42:05 2000
++++ sys/unix/Makefile.top Tue Oct 9 22:21:45 2001
@@ -14,18 +14,17 @@
# MAKE = make
@@ -23,15 +23,28 @@
# GAMEDIR also appears in config.h as "HACKDIR".
# VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR
-@@ -35,9 +34,9 @@
+@@ -35,12 +34,12 @@
# therefore there should not be anything in GAMEDIR that you want to keep
# (if there is, you'll have to do the installation by hand or modify the
# instructions)
-GAMEDIR = $(PREFIX)/games/lib/$(GAME)dir
-+GAMEDIR = $(PREFIX)/share/$(GAME)
++GAMEDIR = $(PREFIX)/lib/$(GAME)
VARDIR = $(GAMEDIR)
-SHELLDIR = $(PREFIX)/games
+SHELLDIR = $(PREFIX)/bin
# per discussion in Install.X11 and Install.Qt
- VARDATND =
+-VARDATND =
++# VARDATND =
+ # VARDATND = x11tiles pet_mark.xbm
+ # VARDATND = x11tiles pet_mark.xbm rip.xpm
+ # for Atari/Gem
+@@ -48,7 +47,7 @@
+ # for BeOS
+ # VARDATND = beostiles
+ # for Gnome
+-# VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm
++VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm
+
+ VARDATD = data oracles options quest.dat rumors
+ VARDAT = $(VARDATD) $(VARDATND)
diff --git a/games/nethack33/files/patch-af b/games/nethack33/files/patch-af
index 3a01201d6ae6..2527c7b4128e 100644
--- a/games/nethack33/files/patch-af
+++ b/games/nethack33/files/patch-af
@@ -1,6 +1,6 @@
---- ./sys/unix/Makefile.doc.orig Mon Dec 13 14:49:15 1999
-+++ ./sys/unix/Makefile.doc Mon Dec 13 14:44:53 1999
-@@ -31,7 +31,7 @@
+--- sys/unix/Makefile.doc.orig Sat Jan 15 05:49:48 2000
++++ sys/unix/Makefile.doc Sat Aug 11 11:08:33 2001
+@@ -34,15 +34,15 @@
GAME = nethack
@@ -9,7 +9,20 @@
MANEXT = 6
# manual installation for most BSD-style systems
-@@ -48,11 +48,11 @@
+-GAMEMANCREATE = cp nethack.6
+-LEVMANCREATE = cp lev_comp.6
+-DGNMANCREATE = cp dgn_comp.6
+-RCVRMANCREATE = cp recover.6
+-DLBMANCREATE = cp dlb.6
++GAMEMANCREATE = ${BSD_INSTALL_MAN} nethack.6
++LEVMANCREATE = ${BSD_INSTALL_MAN} lev_comp.6
++DGNMANCREATE = ${BSD_INSTALL_MAN} dgn_comp.6
++RCVRMANCREATE = ${BSD_INSTALL_MAN} recover.6
++DLBMANCREATE = ${BSD_INSTALL_MAN} dlb.6
+ # manual installation for most SYSV-style systems
+ # GAMEMANCREATE = nroff -man nethack.6 >
+ # LEVMANCREATE = nroff -man lev_comp.6 >
+@@ -51,11 +51,11 @@
# DLBMANCREATE = nroff -man dlb.6 >
manpages:
diff --git a/games/nethack33/files/patch-ag b/games/nethack33/files/patch-ag
new file mode 100644
index 000000000000..340e20d6467c
--- /dev/null
+++ b/games/nethack33/files/patch-ag
@@ -0,0 +1,21 @@
+--- sys/unix/Makefile.utl.orig Mon Apr 17 22:36:44 2000
++++ sys/unix/Makefile.utl Wed Oct 10 19:48:36 2001
+@@ -89,7 +89,17 @@
+ # flags for debugging:
+ # CFLAGS = -g -I../include
+
+-CFLAGS = -O -I../include
++CFLAGS += -I../include
++ifeq ("$(GRAPHICS)","X11_GRAPHICS")
++CFLAGS += -DX11_GRAPHICS
++endif
++ifeq ("$(GRAPHICS)","QT_GRAPHICS")
++CFLAGS += -DQT_GRAPHICS
++endif
++ifeq ("$(GRAPHICS)","GNOME_GRAPHICS")
++CFLAGS += -DGNOME_GRAPHICS
++endif
++
+ LFLAGS =
+
+ LIBS =
diff --git a/games/nethack33/files/patch-ah b/games/nethack33/files/patch-ah
new file mode 100644
index 000000000000..d271baba9fef
--- /dev/null
+++ b/games/nethack33/files/patch-ah
@@ -0,0 +1,10 @@
+--- win/gnome/gnmain.c.orig Sat Aug 5 19:53:33 2000
++++ win/gnome/gnmain.c Sat May 18 03:12:16 2002
+@@ -672,6 +672,7 @@
+ euid = geteuid();
+ if (uid != euid)
+ setuid(uid);
++ setregid(getegid(), -1);
+ gnome_init ("nethack", VERSION_STRING, argc, argv);
+ parse_args (argc, argv);
+
diff --git a/games/nethack33/pkg-descr b/games/nethack33/pkg-descr
index 4579f0f864dc..00c5ff4f67c8 100644
--- a/games/nethack33/pkg-descr
+++ b/games/nethack33/pkg-descr
@@ -1,6 +1,6 @@
-This is version 3.3.1 of nethack, a clasic hack'n'slash adventure game.
-You and your faithful feline (or commited canine) are on a quest to retrieve
-the lost Amulet of Yendor. Good luck!
+This is nethack, a classic hack'n'slash adventure game.
+You and your faithful feline (or commited canine) are on a quest
+to retrieve the lost Amulet of Yendor. Good luck!
WWW: http://www.nethack.org/
diff --git a/games/nethack33/pkg-plist b/games/nethack33/pkg-plist
index f5efba70be15..c6c951c2129c 100644
--- a/games/nethack33/pkg-plist
+++ b/games/nethack33/pkg-plist
@@ -1,134 +1,139 @@
bin/nethack
-share/nethack/nethack
-@exec mkdir %D/share/nethack/save
-@exec chmod -R 775 %D/share/nethack
-@exec chmod 2755 %D/share/nethack/nethack
-@exec chown games:games %D/share/nethack/save
-@unexec rm -rf %D/share/nethack/save
-share/doc/nethack/Guidebook.txt
-share/nethack/Arc-fila.lev
-share/nethack/Arc-filb.lev
-share/nethack/Arc-goal.lev
-share/nethack/Arc-loca.lev
-share/nethack/Arc-strt.lev
-share/nethack/Bar-fila.lev
-share/nethack/Bar-filb.lev
-share/nethack/Bar-goal.lev
-share/nethack/Bar-loca.lev
-share/nethack/Bar-strt.lev
-share/nethack/Cav-fila.lev
-share/nethack/Cav-filb.lev
-share/nethack/Cav-goal.lev
-share/nethack/Cav-loca.lev
-share/nethack/Cav-strt.lev
-share/nethack/Hea-fila.lev
-share/nethack/Hea-filb.lev
-share/nethack/Hea-goal.lev
-share/nethack/Hea-loca.lev
-share/nethack/Hea-strt.lev
-share/nethack/Kni-fila.lev
-share/nethack/Kni-filb.lev
-share/nethack/Kni-goal.lev
-share/nethack/Kni-loca.lev
-share/nethack/Kni-strt.lev
-share/nethack/Mon-fila.lev
-share/nethack/Mon-filb.lev
-share/nethack/Mon-goal.lev
-share/nethack/Mon-loca.lev
-share/nethack/Mon-strt.lev
-share/nethack/Pri-fila.lev
-share/nethack/Pri-filb.lev
-share/nethack/Pri-goal.lev
-share/nethack/Pri-loca.lev
-share/nethack/Pri-strt.lev
-share/nethack/Ran-fila.lev
-share/nethack/Ran-filb.lev
-share/nethack/Ran-goal.lev
-share/nethack/Ran-loca.lev
-share/nethack/Ran-strt.lev
-share/nethack/Rog-fila.lev
-share/nethack/Rog-filb.lev
-share/nethack/Rog-goal.lev
-share/nethack/Rog-loca.lev
-share/nethack/Rog-strt.lev
-share/nethack/Sam-fila.lev
-share/nethack/Sam-filb.lev
-share/nethack/Sam-goal.lev
-share/nethack/Sam-loca.lev
-share/nethack/Sam-strt.lev
-share/nethack/Tou-fila.lev
-share/nethack/Tou-filb.lev
-share/nethack/Tou-goal.lev
-share/nethack/Tou-loca.lev
-share/nethack/Tou-strt.lev
-share/nethack/Val-fila.lev
-share/nethack/Val-filb.lev
-share/nethack/Val-goal.lev
-share/nethack/Val-loca.lev
-share/nethack/Val-strt.lev
-share/nethack/Wiz-fila.lev
-share/nethack/Wiz-filb.lev
-share/nethack/Wiz-goal.lev
-share/nethack/Wiz-loca.lev
-share/nethack/Wiz-strt.lev
-share/nethack/air.lev
-share/nethack/asmodeus.lev
-share/nethack/astral.lev
-share/nethack/baalz.lev
-share/nethack/bigrm-1.lev
-share/nethack/bigrm-2.lev
-share/nethack/bigrm-3.lev
-share/nethack/bigrm-4.lev
-share/nethack/bigrm-5.lev
-share/nethack/castle.lev
-share/nethack/cmdhelp
-share/nethack/data
-share/nethack/dungeon
-share/nethack/earth.lev
-share/nethack/fakewiz1.lev
-share/nethack/fakewiz2.lev
-share/nethack/fire.lev
-share/nethack/help
-share/nethack/hh
-share/nethack/history
-share/nethack/juiblex.lev
-share/nethack/knox.lev
-share/nethack/license
-share/nethack/medusa-1.lev
-share/nethack/medusa-2.lev
-share/nethack/minefill.lev
-share/nethack/minend-1.lev
-share/nethack/minend-2.lev
-share/nethack/minetn-1.lev
-share/nethack/minetn-2.lev
-share/nethack/opthelp
-share/nethack/options
-share/nethack/oracle.lev
-share/nethack/oracles
-share/nethack/orcus.lev
-share/nethack/quest.dat
-share/nethack/rumors
-share/nethack/sanctum.lev
-share/nethack/soko1-1.lev
-share/nethack/soko1-2.lev
-share/nethack/soko2-1.lev
-share/nethack/soko2-2.lev
-share/nethack/soko3-1.lev
-share/nethack/soko3-2.lev
-share/nethack/soko4-1.lev
-share/nethack/soko4-2.lev
-share/nethack/tower1.lev
-share/nethack/tower2.lev
-share/nethack/tower3.lev
-share/nethack/valley.lev
-share/nethack/water.lev
-share/nethack/wizard1.lev
-share/nethack/wizard2.lev
-share/nethack/wizard3.lev
-share/nethack/wizhelp
+lib/nethack/nethack
+@exec mkdir %D/lib/nethack/save
+@exec chmod -R 775 %D/lib/nethack
+@exec chmod 2755 %D/lib/nethack/nethack
+@exec chown games:games %D/lib/nethack/save
+@unexec rm -rf %D/lib/nethack/save
+lib/nethack/Arc-fila.lev
+lib/nethack/Arc-filb.lev
+lib/nethack/Arc-goal.lev
+lib/nethack/Arc-loca.lev
+lib/nethack/Arc-strt.lev
+lib/nethack/Bar-fila.lev
+lib/nethack/Bar-filb.lev
+lib/nethack/Bar-goal.lev
+lib/nethack/Bar-loca.lev
+lib/nethack/Bar-strt.lev
+lib/nethack/Cav-fila.lev
+lib/nethack/Cav-filb.lev
+lib/nethack/Cav-goal.lev
+lib/nethack/Cav-loca.lev
+lib/nethack/Cav-strt.lev
+lib/nethack/Hea-fila.lev
+lib/nethack/Hea-filb.lev
+lib/nethack/Hea-goal.lev
+lib/nethack/Hea-loca.lev
+lib/nethack/Hea-strt.lev
+lib/nethack/Kni-fila.lev
+lib/nethack/Kni-filb.lev
+lib/nethack/Kni-goal.lev
+lib/nethack/Kni-loca.lev
+lib/nethack/Kni-strt.lev
+lib/nethack/Mon-fila.lev
+lib/nethack/Mon-filb.lev
+lib/nethack/Mon-goal.lev
+lib/nethack/Mon-loca.lev
+lib/nethack/Mon-strt.lev
+lib/nethack/Pri-fila.lev
+lib/nethack/Pri-filb.lev
+lib/nethack/Pri-goal.lev
+lib/nethack/Pri-loca.lev
+lib/nethack/Pri-strt.lev
+lib/nethack/Ran-fila.lev
+lib/nethack/Ran-filb.lev
+lib/nethack/Ran-goal.lev
+lib/nethack/Ran-loca.lev
+lib/nethack/Ran-strt.lev
+lib/nethack/Rog-fila.lev
+lib/nethack/Rog-filb.lev
+lib/nethack/Rog-goal.lev
+lib/nethack/Rog-loca.lev
+lib/nethack/Rog-strt.lev
+lib/nethack/Sam-fila.lev
+lib/nethack/Sam-filb.lev
+lib/nethack/Sam-goal.lev
+lib/nethack/Sam-loca.lev
+lib/nethack/Sam-strt.lev
+lib/nethack/Tou-fila.lev
+lib/nethack/Tou-filb.lev
+lib/nethack/Tou-goal.lev
+lib/nethack/Tou-loca.lev
+lib/nethack/Tou-strt.lev
+lib/nethack/Val-fila.lev
+lib/nethack/Val-filb.lev
+lib/nethack/Val-goal.lev
+lib/nethack/Val-loca.lev
+lib/nethack/Val-strt.lev
+lib/nethack/Wiz-fila.lev
+lib/nethack/Wiz-filb.lev
+lib/nethack/Wiz-goal.lev
+lib/nethack/Wiz-loca.lev
+lib/nethack/Wiz-strt.lev
+lib/nethack/air.lev
+lib/nethack/asmodeus.lev
+lib/nethack/astral.lev
+lib/nethack/baalz.lev
+lib/nethack/bigrm-1.lev
+lib/nethack/bigrm-2.lev
+lib/nethack/bigrm-3.lev
+lib/nethack/bigrm-4.lev
+lib/nethack/bigrm-5.lev
+lib/nethack/castle.lev
+lib/nethack/cmdhelp
+lib/nethack/data
+lib/nethack/dungeon
+lib/nethack/earth.lev
+lib/nethack/fakewiz1.lev
+lib/nethack/fakewiz2.lev
+lib/nethack/fire.lev
+lib/nethack/help
+lib/nethack/hh
+lib/nethack/history
+lib/nethack/juiblex.lev
+lib/nethack/knox.lev
+lib/nethack/license
+lib/nethack/mapbg.xpm
+lib/nethack/medusa-1.lev
+lib/nethack/medusa-2.lev
+lib/nethack/minefill.lev
+lib/nethack/minend-1.lev
+lib/nethack/minend-2.lev
+lib/nethack/minetn-1.lev
+lib/nethack/minetn-2.lev
+lib/nethack/opthelp
+lib/nethack/options
+lib/nethack/oracle.lev
+lib/nethack/oracles
+lib/nethack/orcus.lev
+lib/nethack/pet_mark.xbm
+lib/nethack/quest.dat
+lib/nethack/rip.xpm
+lib/nethack/rumors
+lib/nethack/sanctum.lev
+lib/nethack/soko1-1.lev
+lib/nethack/soko1-2.lev
+lib/nethack/soko2-1.lev
+lib/nethack/soko2-2.lev
+lib/nethack/soko3-1.lev
+lib/nethack/soko3-2.lev
+lib/nethack/soko4-1.lev
+lib/nethack/soko4-2.lev
+lib/nethack/tower1.lev
+lib/nethack/tower2.lev
+lib/nethack/tower3.lev
+lib/nethack/valley.lev
+lib/nethack/water.lev
+lib/nethack/wizard1.lev
+lib/nethack/wizard2.lev
+lib/nethack/wizard3.lev
+lib/nethack/wizhelp
+lib/nethack/x11tiles
@mode 664
-share/nethack/logfile
-share/nethack/record
-share/nethack/perm
-@dirrm share/nethack
-@dirrm share/doc/nethack
+lib/nethack/logfile
+lib/nethack/record
+lib/nethack/perm
+@mode
+%%PORTDOCS%%share/doc/nethack/Guidebook.txt
+%%PORTDOCS%%@dirrm share/doc/nethack
+@dirrm lib/nethack