From e6838d71c5f48786e0e7ce3a0ff47d9b1f71abcf Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 21 Aug 1999 06:30:11 +0000 Subject: Don't chown installed files or directories if UNPRIVILEGED is defined. "make build" should now work as a non-root user (tested on Alpha). mtree spits out lots of warnings during "make distrib-dirs", but these are non-fatal. --- phantasia/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phantasia/Makefile b/phantasia/Makefile index 25b344a8..1b84a0ca 100644 --- a/phantasia/Makefile +++ b/phantasia/Makefile @@ -1,6 +1,8 @@ -# $NetBSD: Makefile,v 1.17 1998/12/06 09:06:46 dbj Exp $ +# $NetBSD: Makefile,v 1.18 1999/08/21 06:30:11 simonb Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 +.include # for UNPRIVILEGED + PROG= phantasia SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c @@ -25,7 +27,9 @@ setup.o: ${.CURDIR}/setup.c afterinstall: DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc +.if !defined(UNPRIVILEGED) chown games:games ${DESTDIR}/var/games/phantasia/* +.endif # Make Phantasia map. Change the map commands reflect your installation. # PLOTDEVICE is used for plotting the map. Change as appropriate. -- cgit v1.2.3