fix perms on nethack and clones.

As noticed by grunk@
This commit is contained in:
espie 2008-01-26 19:07:40 +00:00
parent 5c7bf26f55
commit 4927b9e25f
11 changed files with 42 additions and 32 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.16 2008/01/04 17:48:34 espie Exp $
# $OpenBSD: Makefile,v 1.17 2008/01/26 19:07:40 espie Exp $
COMMENT= NetHack derivative
VERSION= 1.9.3
DISTNAME= nethack_source_331_jtp_${VERSION:S/.//g}
PKGNAME= falconseye-${VERSION}p1
PKGNAME= falconseye-${VERSION}p2
CATEGORIES= games x11
EXTRACT_SUFX= .zip

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:08 espie Exp $
@comment $OpenBSD: PLIST,v 1.4 2008/01/26 19:07:40 espie Exp $
@group games
bin/falconseye
bin/frecover
@ -228,7 +228,7 @@ ${GAMEDIR}/record
@mode
${GAMEDIR}/rumors
${GAMEDIR}/sanctum.lev
@mode 0575
@mode 0570
${GAMEDIR}/save/
@mode
${GAMEDIR}/soko1-1.lev

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.43 2008/01/04 17:48:35 espie Exp $
# $OpenBSD: Makefile,v 1.44 2008/01/26 19:07:40 espie Exp $
# $FreeBSD: Makefile,v 1.13 1997/12/25 22:29:17 asami Exp $
COMMENT= dungeon explorin', hackin', game. Piece of cake
V=3.4.3
DISTNAME= nethack-$V
PKGNAME= ${DISTNAME}p1
PKGNAME= ${DISTNAME}p2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nethack/} \

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.10 2004/09/18 12:43:28 espie Exp $
@comment $OpenBSD: PLIST,v 1.11 2008/01/26 19:07:40 espie Exp $
@option no-default-conflict
@conflict nethack-${V}
@comment bin/nethack
@ -133,7 +133,7 @@ ${GAMEDIR}/record
@mode
${GAMEDIR}/rumors
${GAMEDIR}/sanctum.lev
@mode 0575
@mode 0570
${GAMEDIR}/save/
@mode
${GAMEDIR}/soko1-1.lev

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2008/01/04 17:48:35 espie Exp $
# $OpenBSD: Makefile,v 1.16 2008/01/26 19:07:40 espie Exp $
COMMENT= dungeon explorin', hackin', game. Hard
DISTNAME= se007e7f1
@ -16,7 +16,7 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c termlib
PKGNAME=slash-em-3.4.3.7e7f1p0
PKGNAME=slash-em-3.4.3.7e7f1p1
V= 3.4.3.7e7f1
WRKDIST=${WRKDIR}/slashem-0.0.7E7F1

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.7 2005/12/12 14:07:02 espie Exp $
@comment $OpenBSD: PLIST,v 1.8 2008/01/26 19:07:40 espie Exp $
@option no-default-conflict
@conflict slash-em-${V}
@comment bin/slashem
@ -182,7 +182,7 @@ ${GAMEDIR}/record
${GAMEDIR}/recover
${GAMEDIR}/rumors
${GAMEDIR}/sanctum.lev
@mode 0575
@mode 0570
${GAMEDIR}/save/
@mode
${GAMEDIR}/sea.lev

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.32 2008/01/04 17:48:35 espie Exp $
# $OpenBSD: Makefile,v 1.33 2008/01/26 19:07:40 espie Exp $
COMMENT= dungeon explorin', hackin' game, but harder than nethack
DISTNAME= slash-e8
PKGNAME= slash-3.2.2-e8
PKGNAME= slash-3.2.2-e8p0
CATEGORIES= games
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.2/src/ \
@ -13,7 +13,7 @@ MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.2/src/ \
MASTER_SITES0= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.3/src/
MASTER_SITES1= http://www.rz.tu-ilmenau.de/~wi019/Slash/
DISTFILES= nethack-3.2.2.tar.gz Slash-Unix.tar.gz:1
DISTFILES= nethack-3.2.2.tar.gz Slash-Unix.tar.gz:1
PATCHFILES=nh-3.2.2-3.2.3.diff:0

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-include_system_h,v 1.1 2000/04/16 21:19:07 espie Exp $
--- include/system.h.orig Fri Apr 14 15:10:24 2000
+++ include/system.h Fri Apr 14 15:10:49 2000
@@ -511,6 +511,9 @@ E struct tm *FDECL(localtime, (const tim
$OpenBSD: patch-include_system_h,v 1.2 2008/01/26 19:07:40 espie Exp $
--- include/system.h.orig Sun Dec 30 13:56:29 2007
+++ include/system.h Sun Dec 30 13:56:29 2007
@@ -511,6 +511,9 @@ E struct tm *FDECL(localtime, (const time_t *));
# endif
# endif

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-sys_unix_Makefile_src,v 1.1 2000/04/16 21:19:07 espie Exp $
$OpenBSD: patch-sys_unix_Makefile_src,v 1.2 2008/01/26 19:07:40 espie Exp $
--- sys/unix/Makefile.src.orig Tue Dec 10 21:20:09 1996
+++ sys/unix/Makefile.src Fri Apr 14 15:10:49 2000
+++ sys/unix/Makefile.src Sun Dec 30 13:56:29 2007
@@ -1,6 +1,7 @@
# NetHack Makefile.
# SCCS Id: @(#)Makefile.src 3.2 96/10/26
@ -9,18 +9,19 @@ $OpenBSD: patch-sys_unix_Makefile_src,v 1.1 2000/04/16 21:19:07 espie Exp $
# newer makes predefine $(MAKE) to 'make' and do smarter processing of
# recursive make calls if $(MAKE) is used
# these makes allow $(MAKE) to be overridden by the environment if someone
@@ -124,9 +125,7 @@ SYSOBJ = ioctl.o unixmain.o unixtty.o un
@@ -124,10 +125,8 @@ SYSOBJ = ioctl.o unixmain.o unixtty.o unixunix.o
# flags for debugging:
# CFLAGS = -g -I../include
-CFLAGS = -O -I../include
-LFLAGS =
-
+CFLAGS += -DHACKDIR=\"${NHDIR}\" -DHAVE_SYS_PARAM_H -I../include
-
# Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired
# combination of windowing systems. Also set windowing systems in config.h.
@@ -146,9 +145,6 @@ WINX11OBJ = Window.o dialogs.o winX.o wi
#
@@ -146,9 +145,6 @@ WINX11OBJ = Window.o dialogs.o winX.o winmap.o winmenu
winmisc.o winstat.o wintext.o winval.o tile.o
#
#

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-sys_unix_Makefile_top,v 1.1 2000/04/16 21:19:07 espie Exp $
--- sys/unix/Makefile.top.orig Fri Apr 14 15:10:48 2000
+++ sys/unix/Makefile.top Fri Apr 14 15:10:49 2000
$OpenBSD: patch-sys_unix_Makefile_top,v 1.2 2008/01/26 19:07:40 espie Exp $
--- sys/unix/Makefile.top.orig Sun Dec 30 13:56:29 2007
+++ sys/unix/Makefile.top Sun Dec 30 14:15:13 2007
@@ -13,17 +13,19 @@
# execute things like 'data' and 'rumors')
# MAKE = make
@ -10,12 +10,12 @@ $OpenBSD: patch-sys_unix_Makefile_top,v 1.1 2000/04/16 21:19:07 espie Exp $
-GAMEUID = games
-GAMEGRP = bin
+include ${NETHACKCONFIG}
+
+# this is slash
+GAME = slash
+GAMEUID = bin
+GAMEGRP = games
+
# Permissions - some places use setgid instead of setuid, for instance
# See also the option "SECURE" in include/config.h
-GAMEPERM = 04755
@ -44,7 +44,7 @@ $OpenBSD: patch-sys_unix_Makefile_top,v 1.1 2000/04/16 21:19:07 espie Exp $
# VARDATND = x11tiles pet_mark.xbm
# VARDATND = x11tiles pet_mark.xbm rip.xpm
@@ -63,7 +66,7 @@ DATHELP = help hh cmdhelp history opthel
@@ -63,7 +66,7 @@ DATHELP = help hh cmdhelp history opthelp wizhelp
SPEC_LEVS = *.lev
@ -53,6 +53,15 @@ $OpenBSD: patch-sys_unix_Makefile_top,v 1.1 2000/04/16 21:19:07 espie Exp $
cav2fill.lev cavefill.lev demogorg.lev dispater.lev dragons.lev \
fakewiz?.lev geryon.lev guild.lev juiblex.lev knox.lev kobold-?.lev \
lich.lev mall-?.lev mall.lev medusa-?.lev mine_end.lev minefill.lev \
@@ -80,7 +83,7 @@ DAT = $(DATNODLB) $(DATDLB)
$(GAME):
( cd src ; $(MAKE) )
-all: $(GAME) Guidebook $(VARDAT) dungeon spec_levs check-dlb
+all: $(GAME) .WAIT Guidebook $(VARDAT) dungeon spec_levs check-dlb
@echo "Done."
Guidebook:
@@ -143,7 +146,7 @@ dofiles:
$(MAKE) dofiles-$${target-nodlb}
cp src/$(GAME) $(GAMEDIR)

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.8 2004/09/15 00:46:10 espie Exp $
@comment $OpenBSD: PLIST,v 1.9 2008/01/26 19:07:40 espie Exp $
@group games
bin/slash
bin/srecover
@ -177,7 +177,7 @@ ${GAMEDIR}/record
@mode
${GAMEDIR}/rumors
${GAMEDIR}/sanctum.lev
@mode 0575
@mode 0570
${GAMEDIR}/save/
@mode
${GAMEDIR}/sea.lev