$NetBSD: patch-ae,v 1.3 1998/09/14 19:34:23 garbled Exp $ --- Makefile.orig Wed Feb 5 06:12:18 1997 +++ Makefile Mon Sep 14 12:10:06 1998 @@ -18,7 +18,7 @@ @echo "Installing binaries in $(BINDIR)..." @for i in $(MAELSTROM) ; do \ strip $$i; \ - $(INSTALL) -m 755 $$i $(BINDIR); \ + $(INSTALL) -c -m 755 $$i $(BINDIR); \ done @if [ ! -d $(LIBDIR) ]; then \ mkdir $(LIBDIR); chmod 755 $(LIBDIR); \ @@ -26,10 +26,11 @@ @echo "Installing data files in $(LIBDIR) ..." @tar cf - $(DATAFILES) | (cd $(LIBDIR); tar xvf -) @chmod -R +r $(LIBDIR) - @if [ ! -f "$(LIBDIR)/Maelstrom-Scores" ]; then \ + @chown -R ${BINOWN}:${BINGRP} $(LIBDIR) + @if [ ! -f "/var/games/Maelstrom-Scores" ]; then \ echo "Installing Maelstrom high-scores file"; \ - $(INSTALL) -m 666 Maelstrom-Scores $(LIBDIR); \ - chmod 666 $(LIBDIR)/Maelstrom-Scores; \ + $(INSTALL) -c -m 666 Maelstrom-Scores /var/games; \ + chmod 666 /var/games/Maelstrom-Scores; \ fi @-if [ "$(SYSTEM)" = "Linux" ]; then \ echo "Fixing permissions for Maelstrom (set-uid root)"; \