summaryrefslogtreecommitdiff
path: root/games/xconq/patches/patch-aa
blob: c1fd81771e567436a775180d6dba111a0b3b5f4e (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$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