head	1.26;
access;
symbols
	RELENG_4_11_0_RELEASE:1.20.2.4
	RELENG_4_11:1.20.2.4.0.10
	RELENG_4_11_BP:1.20.2.4
	RELENG_4_10_0_RELEASE:1.20.2.4
	RELENG_4_10:1.20.2.4.0.8
	RELENG_4_10_BP:1.20.2.4
	RELENG_4_9_0_RELEASE:1.20.2.4
	RELENG_4_9:1.20.2.4.0.6
	RELENG_4_9_BP:1.20.2.4
	RELENG_4_8_0_RELEASE:1.20.2.4
	RELENG_4_8:1.20.2.4.0.4
	RELENG_4_8_BP:1.20.2.4
	RELENG_4_7_0_RELEASE:1.20.2.4
	RELENG_4_7:1.20.2.4.0.2
	RELENG_4_7_BP:1.20.2.4
	RELENG_4_6_2_RELEASE:1.20.2.2
	RELENG_4_6_1_RELEASE:1.20.2.2
	RELENG_4_6_0_RELEASE:1.20.2.2
	RELENG_4_6:1.20.2.2.0.2
	RELENG_4_6_BP:1.20.2.2
	RELENG_4_5_0_RELEASE:1.20.2.1
	RELENG_4_5:1.20.2.1.0.4
	RELENG_4_5_BP:1.20.2.1
	RELENG_4_4_0_RELEASE:1.20.2.1
	RELENG_4_4:1.20.2.1.0.2
	RELENG_4_4_BP:1.20.2.1
	RELENG_4_3_0_RELEASE:1.20
	RELENG_4_3:1.20.0.4
	RELENG_4_3_BP:1.20
	RELENG_4_2_0_RELEASE:1.20
	RELENG_4_1_1_RELEASE:1.20
	PRE_SMPNG:1.20
	RELENG_4_1_0_RELEASE:1.20
	RELENG_3_5_0_RELEASE:1.18.2.1
	RELENG_4_0_0_RELEASE:1.20
	RELENG_4:1.20.0.2
	RELENG_4_BP:1.20
	RELENG_3_4_0_RELEASE:1.18.2.1
	RELENG_3_3_0_RELEASE:1.18.2.1
	RELENG_3_2_PAO:1.18.0.4
	RELENG_3_2_PAO_BP:1.18
	RELENG_3_2_0_RELEASE:1.18
	RELENG_3_1_0_RELEASE:1.18
	RELENG_3:1.18.0.2
	RELENG_3_BP:1.18
	RELENG_2_2_8_RELEASE:1.7.2.1
	RELENG_3_0_0_RELEASE:1.17
	RELENG_2_2_7_RELEASE:1.7.2.1
	RELENG_2_2_6_RELEASE:1.7.2.1
	RELENG_2_2_5_RELEASE:1.7
	RELENG_2_2_2_RELEASE:1.7
	RELENG_2_2_1_RELEASE:1.7
	RELENG_2_2_0_RELEASE:1.7
	RELENG_2_1_7_RELEASE:1.4.4.1
	RELENG_2_1_6_1_RELEASE:1.4.4.1
	RELENG_2_1_6_RELEASE:1.4.4.1
	RELENG_2_2:1.7.0.2
	RELENG_2_2_BP:1.7
	RELENG_2_1_5_RELEASE:1.4.4.1
	RELENG_2_1_0_RELEASE:1.4
	RELENG_2_1_0:1.4.0.4
	RELENG_2_1_0_BP:1.4
	RELENG_2_0_5_RELEASE:1.4
	RELENG_2_0_5:1.4.0.2
	RELENG_2_0_5_BP:1.4
	RELENG_2_0_5_ALPHA:1.3
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.2
	games:1.1.1.1;
locks; strict;
comment	@# @;


1.26
date	2002.10.21.07.40.12;	author markm;	state dead;
branches;
next	1.25;

1.25
date	2002.07.29.09.40.06;	author ru;	state Exp;
branches;
next	1.24;

1.24
date	2002.07.18.12.07.45;	author ru;	state Exp;
branches;
next	1.23;

1.23
date	2001.12.17.15.23.57;	author ru;	state Exp;
branches;
next	1.22;

1.22
date	2001.03.26.14.20.57;	author ru;	state Exp;
branches;
next	1.21;

1.21
date	2001.03.20.18.08.38;	author ru;	state Exp;
branches;
next	1.20;

1.20
date	99.12.10.21.13.37;	author billf;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	99.06.23.04.26.37;	author obrien;	state Exp;
branches;
next	1.18;

1.18
date	98.12.27.15.04.28;	author bde;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	98.08.15.07.56.07;	author jb;	state Exp;
branches;
next	1.16;

1.16
date	98.07.07.01.41.58;	author bde;	state Exp;
branches;
next	1.15;

1.15
date	98.03.06.07.00.28;	author bde;	state Exp;
branches;
next	1.14;

1.14
date	97.09.24.17.43.46;	author ache;	state Exp;
branches;
next	1.13;

1.13
date	97.09.24.12.29.23;	author ache;	state Exp;
branches;
next	1.12;

1.12
date	97.09.24.10.00.29;	author ache;	state Exp;
branches;
next	1.11;

1.11
date	97.09.24.09.45.57;	author ache;	state Exp;
branches;
next	1.10;

1.10
date	97.09.24.08.58.40;	author ache;	state Exp;
branches;
next	1.9;

1.9
date	97.09.24.00.07.08;	author ache;	state Exp;
branches;
next	1.8;

1.8
date	97.02.09.02.52.18;	author wosch;	state Exp;
branches;
next	1.7;

1.7
date	96.10.19.20.11.45;	author jkh;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	96.05.15.16.54.04;	author nate;	state Exp;
branches;
next	1.5;

1.5
date	95.07.25.00.30.42;	author bde;	state Exp;
branches;
next	1.4;

1.4
date	95.05.30.03.36.15;	author rgrimes;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	94.11.26.16.15.44;	author ats;	state Exp;
branches;
next	1.2;

1.2
date	94.09.11.21.32.03;	author rgrimes;	state Exp;
branches;
next	1.1;

1.1
date	94.09.04.04.02.53;	author jkh;	state Exp;
branches
	1.1.1.1;
next	;

1.20.2.1
date	2001.04.25.09.28.56;	author ru;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	2002.02.18.16.02.42;	author ru;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2002.07.18.13.31.21;	author ru;	state Exp;
branches;
next	1.20.2.4;

1.20.2.4
date	2002.08.07.16.31.41;	author ru;	state Exp;
branches;
next	1.20.2.5;

1.20.2.5
date	2012.11.17.07.22.44;	author svnexp;	state Exp;
branches;
next	;

1.18.2.1
date	99.06.23.04.30.05;	author obrien;	state Exp;
branches;
next	;

1.7.2.1
date	98.02.15.15.11.50;	author jkh;	state Exp;
branches;
next	;

1.4.4.1
date	96.05.15.17.00.04;	author nate;	state Exp;
branches;
next	;

1.1.1.1
date	94.09.04.04.02.54;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.26
log
@Deorbit complete. We dont build these anymore, so into the attic they go.
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
# $FreeBSD: src/games/hack/Makefile,v 1.25 2002/07/29 09:40:06 ru Exp $

PROG=	hack
SRCS=	alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
	hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
	hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
	hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
	hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
	hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
	hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
	hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
	hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
	hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
	hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c \
	hack.onames.h
MAN=	hack.6
DPADD=	${LIBTERMCAP} ${LIBCOMPAT}
LDADD=	-ltermcap -lcompat
CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
FILES=	rumors help hh data
FILESMODE_rumors=	440
FILESGRP=	${BINGRP}
FILESDIR=	/var/games/hackdir
HIDEGAME=hidegame
CLEANFILES=hack.onames.h makedefs makedefs.o

build-tools: makedefs

hack.onames.h: makedefs def.objects.h
	./makedefs ${.CURDIR}/def.objects.h > hack.onames.h

makedefs: makedefs.o
	${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}

beforeinstall:
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
	    ${DESTDIR}/var/games/hackdir/perm
.if !exists(${DESTDIR}/var/games/hackdir/record)
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
	    ${DESTDIR}/var/games/hackdir/record
.endif
#	rm -f ${DESTDIR}/var/games/hackdir/bones* \
#	    ${DESTDIR}/var/games/hackdir/save/*

.include <bsd.prog.mk>
@


1.25
log
@Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.24
log
@s/${INSTALL} -c/${INSTALL} ${COPY}/
@
text
@d37 1
a37 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
d40 1
a40 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
@


1.23
log
@Install files via FILES.
@
text
@d37 1
a37 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
d40 1
a40 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
@


1.22
log
@- Backout botched attempt to intoduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/games/hack/Makefile,v 1.21 2001/03/20 18:08:38 ru Exp $
d21 4
a42 5
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
	    ${DESTDIR}/var/games/hackdir/rumors
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
	    ${.CURDIR}/help  ${.CURDIR}/hh ${.CURDIR}/data \
	    ${DESTDIR}/var/games/hackdir
@


1.21
log
@Set the default manual section for games/ to 6.
@
text
@d2 1
a2 1
# $FreeBSD: src/games/hack/Makefile,v 1.20 1999/12/10 21:13:37 billf Exp $
d17 1
@


1.20
log
@1. Don't overwrite scorefiles if they already exist.

PR:		bin/13068
Submitted by:	Dominic Mitchell <Dom.Mitchell@@palmerharvey.co.uk>

2. Sprinkle $FreeBSD$ around.
@
text
@d2 1
a2 1
# $FreeBSD$
a16 1
MAN6=	hack.6
@


1.20.2.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/games/hack/Makefile,v 1.20 1999/12/10 21:13:37 billf Exp $
d17 1
a17 1
MAN=	hack.6
@


1.20.2.2
log
@MFC: Install files via FILES.
@
text
@d2 1
a2 1
# $FreeBSD$
a20 4
FILES=	rumors help hh data
FILESMODE_rumors=	440
FILESGRP=	${BINGRP}
FILESDIR=	/var/games/hackdir
d39 5
@


1.20.2.3
log
@MFC: s/${INSTALL} -c/${INSTALL} ${COPY}/
@
text
@d37 1
a37 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
d40 1
a40 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
@


1.20.2.4
log
@MFC: Drop support for COPY.
@
text
@d37 1
a37 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
d40 1
a40 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
@


1.20.2.5
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/games/hack/Makefile 101469 2002-08-07 16:32:02Z ru $
@


1.19
log
@Create score files root:games rather than bin:{games,bin}.

related-to-PR:	bin/8440
Submitted by:	Stephen J. Roznowski sjr@@home.net
@
text
@d2 1
d35 1
d38 1
d44 2
a45 2
	rm -f ${DESTDIR}/var/games/hackdir/bones* \
	    ${DESTDIR}/var/games/hackdir/save/*
@


1.18
log
@Fixed CLEANFILES.
@
text
@d32 1
a32 1
	${INSTALL} -c -o bin -g bin -m ${NOBINMODE} /dev/null \
d34 1
a34 1
	${INSTALL} -c -o bin -g ${BINGRP} -m 460 /dev/null \
d36 1
a36 1
	${INSTALL} -c -o bin -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
d38 1
a38 1
	${INSTALL} -c -o bin -g bin -m ${NOBINMODE} \
@


1.18.2.1
log
@MFC: rev 1.19 (score file ownerships)

Related-to-PR:	bin/8440
Submitted by:	Stephen J. Roznowski <sjr@@home.net>
@
text
@d32 1
a32 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
d34 1
a34 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
d36 1
a36 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
d38 1
a38 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
@


1.17
log
@Build the makedefs program static to avoid trying to use the shared
loader before it has been installed in an aout to elf transition build.
@
text
@d21 1
a21 1
CLEANFILES+= hack.onames.h makedefs
@


1.16
log
@Added a `build-tools' target for internal tools.

Honor LDFLAGS for building internal tools.

Always build intermediate object files explicitly so that binaries don't
change when they are rebuilt.

Fixed some style bugs.
@
text
@d29 1
a29 1
	${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
@


1.15
log
@Don't use the FreeBSD misfeature DPSRCS or give explicit dependencies
on generated headers.  Just put generated headers in SRCS so that
bsd.*.mk can generate better dependencies.
@
text
@d23 2
d28 2
a29 2
makedefs: makedefs.c
	${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c
d39 2
a40 2
		${.CURDIR}/help  ${.CURDIR}/hh ${.CURDIR}/data \
		${DESTDIR}/var/games/hackdir
d42 1
a42 1
	      ${DESTDIR}/var/games/hackdir/save/*
@


1.14
log
@Make hack non-setuid back, it is possible because hackdir hierarchy
are not more readable/writeable by anyone except "games" group
@
text
@d14 2
a15 1
	hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
a20 1
DPSRCS+= hack.onames.h
a21 2

.depend: hack.onames.h
@


1.13
log
@Includes cleanup
Fix nonull flag detecting from termcap
Use usleep to handle nonull case
Prevent overflow on genocided getenv
Install most files not owned by games.games to prevent
data modifications
Fix path for gethdate()
@
text
@a22 6
#
# Need to be suid for created savefiles and bones, they must not be
# altered by user and can't be pre-created
#
SUIDGAME=suidgame

d34 1
a34 1
	${INSTALL} -c -o bin -g ${BINGRP} -m 464 /dev/null \
@


1.12
log
@Use SUIDGAME hook now
@
text
@d38 1
a38 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
d40 1
a40 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
d42 1
a42 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 660 ${.CURDIR}/rumors \
d44 1
a44 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
@


1.11
log
@Since hack suid now, add -fschg to install flags to prevent this
binary to be overwritted
@
text
@d25 1
a25 1
# altered by user
d27 1
a27 3
BINOWN=         games
BINMODE=        4550
INSTALLFLAGS+=  -fschg
@


1.10
log
@Make hack suid "games" (additionly to sgid "games" as run),
it is needed for savegames and bones, they
intendent to not be altered by user and can't be pre-created as scorefile.
Clear savegames on install: target too, not only bones
Install rumors not readable by all.
Cleanup includes a little.
@
text
@d29 1
@


1.9
log
@Do not install 3 files writeable by all (666), change it to 664
@
text
@d23 7
d43 1
a43 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/rumors \
d48 2
a49 1
	rm -f ${DESTDIR}/var/games/hackdir/bones*
@


1.8
log
@444 -> ${NOBINMODE}
/usr/share -> ${SHAREDIR}
/usr/games -> ${BINDIR}
@
text
@d32 1
a32 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
d34 1
a34 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
d36 1
a36 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${.CURDIR}/rumors \
@


1.7
log
@Install the rumors file.
Submitted-By: koshy@@india.hp.com
Closes-PR#: 1883
@
text
@d38 3
a40 2
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/help \
	    ${.CURDIR}/hh ${.CURDIR}/data ${DESTDIR}/var/games/hackdir
@


1.7.2.1
log
@MFC: Selected security fixes and bogosity rectification.  Couldn't
     bring the srandomdev() changes in since we don't have that in 2.2.
     Pity.
@
text
@d32 1
a32 1
	${INSTALL} -c -o bin -g bin -m ${NOBINMODE} /dev/null \
d34 1
a34 1
	${INSTALL} -c -o bin -g ${BINGRP} -m 460 /dev/null \
d36 1
a36 1
	${INSTALL} -c -o bin -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
d38 3
a40 5
	${INSTALL} -c -o bin -g bin -m ${NOBINMODE} \
		${.CURDIR}/help  ${.CURDIR}/hh ${.CURDIR}/data \
		${DESTDIR}/var/games/hackdir
	rm -f ${DESTDIR}/var/games/hackdir/bones* \
	      ${DESTDIR}/var/games/hackdir/save/*
@


1.6
log
@The Makefile assumed that builder had '.' in it's path, which is a
security hole for root.  Fix this oversight and clean up the build of
'hack.onames.h' which should be built everytime.

Tested with/without obj directories and .depend files.

Noticed by:	"Christoph P. Kukulies" <kuku@@gilberto.physik.rwth-aachen.de>
@
text
@d36 2
@


1.5
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
@
text
@d18 1
a18 1
CFLAGS+= -fwritable-strings
d20 4
d26 1
a26 1
	makedefs ${.CURDIR}/def.objects.h > hack.onames.h
@


1.4
log
@Remove trailing whitespace.
@
text
@d28 1
a28 1
	install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
d30 1
a30 1
	install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
d32 1
a32 1
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/help \
@


1.4.4.1
log
@Bring in changes from the HEAD.

- makedefs and hack.onames.h build
- Changed install to ${INSTALL}
@
text
@d18 1
a18 1
CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
a19 4
DPSRCS+= hack.onames.h
CLEANFILES+= hack.onames.h makedefs

.depend: hack.onames.h
d22 1
a22 1
	./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
d28 1
a28 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
d30 1
a30 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \
d32 1
a32 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/help \
@


1.3
log
@Add a -fwritable-strings to the CFLAGS. hack need it :-).
@
text
@d27 1
a27 1
beforeinstall: 
@


1.2
log
@Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
@
text
@d18 1
@


1.1
log
@Initial revision
@
text
@d16 1
a16 1
DPADD=	${LIBTERM} ${LIBCOMPAT}
@


1.1.1.1
log
@Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games.  I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way.  Bleah.
Submitted by:	jkh
@
text
@@
