$NetBSD: patch-aa,v 1.3 2010/02/14 08:17:12 dholland Exp $ --- Makefile.in.orig 2000-08-22 12:52:56.000000000 +0000 +++ Makefile.in @@ -28,10 +28,10 @@ srcdir = @srcdir@ VPATH = @srcdir@ GAMEUID = games -GAMEGRP = bin +GAMEGRP = games -GAMEPERM = 04755 -DIRPERM = 0755 +GAMEPERM = 02755 +DIRPERM = 0775 FILEPERM = 0644 SHELL = /bin/sh @@ -255,9 +255,9 @@ install-dirs: @for i in $(MAKEDIRS) ; do \ echo Making $$i... ; \ parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \ - if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \ - if [ ! -d $$i ] ; then \ - if mkdir $$i ; then \ + if [ -d $(DESTDIR)$$parent ] ; then true ; else mkdir $(DESTDIR)$$parent ; fi ; \ + if [ ! -d $(DESTDIR)$$i ] ; then \ + if mkdir $(DESTDIR)$$i ; then \ true ; \ else \ exit 1 ; \ @@ -266,9 +266,9 @@ install-dirs: true ; \ fi ; \ done - chown $(GAMEUID) $(scoresdir) - chgrp $(GAMEGRP) $(scoresdir) - chmod $(DIRPERM) $(scoresdir) + #chown $(GAMEUID) $(DESTDIR)$(scoresdir) + #chgrp $(GAMEGRP) $(DESTDIR)$(scoresdir) + #chmod $(DIRPERM) $(DESTDIR)$(scoresdir) clean: @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do