summaryrefslogtreecommitdiff
path: root/games/maelstrom-x11/patches/patch-ae
blob: 397d66a2f7b335925c0a55964ecb0cdb06f2fba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ae,v 1.1.1.1 2002/07/11 13:26:14 wiz 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)"; \