summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>1997-11-20 00:12:30 +0000
committermrg <mrg@NetBSD.org>1997-11-20 00:12:30 +0000
commit8893b883616b2b171a87b60e7d95bcb16292c127 (patch)
tree963d6083d4b9a03a495ca80c5ad0ccb5352a808c
parentb928254366573a02520c543335f03bd8c5038511 (diff)
downloadbsdgames-darwin-8893b883616b2b171a87b60e7d95bcb16292c127.tar.gz
bsdgames-darwin-8893b883616b2b171a87b60e7d95bcb16292c127.tar.zst
bsdgames-darwin-8893b883616b2b171a87b60e7d95bcb16292c127.zip
install games that need it setgid.
-rw-r--r--Makefile.inc6
-rw-r--r--atc/Makefile3
-rw-r--r--battlestar/Makefile3
-rw-r--r--canfield/canfield/Makefile3
-rw-r--r--cribbage/Makefile3
-rw-r--r--hack/Makefile3
-rw-r--r--larn/Makefile3
-rw-r--r--phantasia/Makefile3
-rw-r--r--robots/Makefile3
-rw-r--r--rogue/Makefile3
-rw-r--r--sail/Makefile3
-rw-r--r--snake/snake/Makefile3
-rw-r--r--tetris/Makefile3
13 files changed, 29 insertions, 13 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 87762acd..68a953cf 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1,10 +1,14 @@
-# $NetBSD: Makefile.inc,v 1.8 1997/11/19 08:23:16 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.9 1997/11/20 00:12:30 mrg Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93
.if defined(HIDEGAME) && defined(PROG)
BINDIR?= /usr/games/hide
BINGRP?= games
+.if defined(SETGIDGAME)
+BINMODE?= 2550
+.else
BINMODE?= 550
+.endif
SYMLINKS+= dm /usr/games/${PROG}
.else
BINDIR?= /usr/games
diff --git a/atc/Makefile b/atc/Makefile
index 6b461a7c..24c78a89 100644
--- a/atc/Makefile
+++ b/atc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 1997/10/22 02:01:17 lukem Exp $
+# $NetBSD: Makefile,v 1.14 1997/11/20 00:12:31 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= atc
@@ -13,6 +13,7 @@ GAMES= ATC_scores Game_List Killer crossover default easy game_2 \
game_4 novice two-corners
CLEANFILES=grammar.c y.tab.h lex.c
HIDEGAME=hidegame
+SETGIDGAME=yes
FILES=${GAMES:S@^@${.CURDIR}/games/@g}
FILESDIR=/usr/share/games/atc
FILESMODE=400
diff --git a/battlestar/Makefile b/battlestar/Makefile
index f187de46..355ccecc 100644
--- a/battlestar/Makefile
+++ b/battlestar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 1995/03/21 15:06:38 cgd Exp $
+# $NetBSD: Makefile,v 1.6 1997/11/20 00:12:32 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= battlestar
@@ -9,5 +9,6 @@ MAN= battlestar.6
DPADD= ${LIBCURSES} ${LIBTERMCAP}
LDADD= -lcurses -ltermlib
HIDEGAME=hidegame
+SETGIDGAME=yes
.include <bsd.prog.mk>
diff --git a/canfield/canfield/Makefile b/canfield/canfield/Makefile
index 58772169..dd24e132 100644
--- a/canfield/canfield/Makefile
+++ b/canfield/canfield/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 1995/03/21 15:08:28 cgd Exp $
+# $NetBSD: Makefile,v 1.6 1997/11/20 00:12:33 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= canfield
@@ -6,6 +6,7 @@ MAN= canfield.6
DPADD= ${LIBCURSES} ${LIBTERM}
LDADD= -lcurses -ltermcap
HIDEGAME=hidegame
+SETGIDGAME=yes
.include "../../Makefile.inc"
diff --git a/cribbage/Makefile b/cribbage/Makefile
index 77518c01..40abb34b 100644
--- a/cribbage/Makefile
+++ b/cribbage/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1997/03/24 22:15:41 christos Exp $
+# $NetBSD: Makefile,v 1.8 1997/11/20 00:12:34 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= cribbage
@@ -7,6 +7,7 @@ LDADD= -lcurses -ltermlib
SRCS= extern.c crib.c cards.c instr.c io.c score.c support.c
MAN= cribbage.6
HIDEGAME=hidegame
+SETGIDGAME=yes
FILES= cribbage.n
FILESNAME=cribbage.instr
FILESDIR=/usr/share/games
diff --git a/hack/Makefile b/hack/Makefile
index 7cbb4fba..556fc884 100644
--- a/hack/Makefile
+++ b/hack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 1997/10/22 05:24:11 lukem Exp $
+# $NetBSD: Makefile,v 1.26 1997/11/20 00:12:35 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
PROG= hack
@@ -19,6 +19,7 @@ MAN= hack.6
DPADD+= ${LIBTERM} ${LIBCOMPAT}
LDADD+= -ltermcap
HIDEGAME=hidegame
+SETGIDGAME=yes
CLEANFILES+=hack.onames.h makedefs
FILES=help hh data
FILESDIR=/var/games/hackdir
diff --git a/larn/Makefile b/larn/Makefile
index f3b2c83a..d5ee0972 100644
--- a/larn/Makefile
+++ b/larn/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 1997/10/22 05:29:13 lukem Exp $
+# $NetBSD: Makefile,v 1.14 1997/11/20 00:12:36 mrg Exp $
# @(#)Makefile 5.12 (Berkeley) 5/30/93
# EXTRA
@@ -64,6 +64,7 @@ SRCS= main.c object.c create.c tok.c display.c global.c data.c io.c \
DPADD= ${LIBTERM}
LDADD= -ltermcap
HIDEGAME=hidegame
+SETGIDGAME=yes
DAT=larnmaze larnopts larn.help
FILES=${DAT:S@^@${.CURDIR}/datfiles/@g}
FILESDIR=/usr/share/games/larn
diff --git a/phantasia/Makefile b/phantasia/Makefile
index 65348b14..2ab61d51 100644
--- a/phantasia/Makefile
+++ b/phantasia/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 1997/10/13 02:18:06 lukem Exp $
+# $NetBSD: Makefile,v 1.13 1997/11/20 00:12:37 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= phantasia
@@ -7,6 +7,7 @@ SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
LDADD= -lm -lcurses -ltermlib -lcompat
HIDEGAME=hidegame
+SETGIDGAME=yes
USETBL=
MAN= phantasia.6
CLEANFILES+=map setup setup.o host_phantglobs.o
diff --git a/robots/Makefile b/robots/Makefile
index 55557cae..39308bc5 100644
--- a/robots/Makefile
+++ b/robots/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1997/10/22 05:05:46 lukem Exp $
+# $NetBSD: Makefile,v 1.10 1997/11/20 00:12:38 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= robots
@@ -9,6 +9,7 @@ MAN= robots.6
DPADD= ${LIBCURSES} ${LIBTERM}
LDADD= -lcurses -ltermlib
HIDEGAME=hidegame
+SETGIDGAME=yes
FILES= /dev/null
FILESNAME=robots_roll
diff --git a/rogue/Makefile b/rogue/Makefile
index 07d58085..96c14954 100644
--- a/rogue/Makefile
+++ b/rogue/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1997/10/22 05:09:36 lukem Exp $
+# $NetBSD: Makefile,v 1.10 1997/11/20 00:12:39 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= rogue
@@ -9,6 +9,7 @@ SRCS= curses.c hit.c init.c inventory.c level.c machdep.c main.c \
DPADD= ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
LDADD= -lcurses -ltermlib -lcompat
HIDEGAME=hidegame
+SETUIDGAME=yes
MAN= rogue.6
.if make(install)
diff --git a/sail/Makefile b/sail/Makefile
index 267a53ea..67e51a27 100644
--- a/sail/Makefile
+++ b/sail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1997/10/13 19:42:53 christos Exp $
+# $NetBSD: Makefile,v 1.8 1997/11/20 00:12:40 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= sail
@@ -9,5 +9,6 @@ MAN= sail.6
DPADD= ${LIBCURSES} ${LIBTERM}
LDADD= -lcurses -ltermlib
HIDEGAME=hidegame
+SETGIDGAME=yes
.include <bsd.prog.mk>
diff --git a/snake/snake/Makefile b/snake/snake/Makefile
index ab465a34..38554aef 100644
--- a/snake/snake/Makefile
+++ b/snake/snake/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 1995/04/22 08:34:27 cgd Exp $
+# $NetBSD: Makefile,v 1.7 1997/11/20 00:12:41 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= snake
@@ -7,6 +7,7 @@ MAN= snake.6
DPADD= ${LIBM} ${LIBTERM} ${LIBCOMPAT}
LDADD= -lm -ltermcap -lcompat
HIDEGAME=hidegame
+SETGIDGAME=yes
.include "../../Makefile.inc"
.include <bsd.prog.mk>
diff --git a/tetris/Makefile b/tetris/Makefile
index c49b261c..b3650e3e 100644
--- a/tetris/Makefile
+++ b/tetris/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1995/04/22 07:42:31 cgd Exp $
+# $NetBSD: Makefile,v 1.4 1997/11/20 00:12:42 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= tetris
@@ -7,5 +7,6 @@ MAN= tetris.6
DPADD= ${LIBTERM}
LDADD= -ltermcap
HIDEGAME=hidegame
+SETGIDGAME=yes
.include <bsd.prog.mk>